As I received some comments that requested to have a step by step how-to create IDOC, I will try to explain the step here…
In IDOC the main configuration will be in Partner Profile (WE20)
1) Create a Logical system to use in the logical system as Partner No in WE20
Tcode: SALE -> Sending and Receiving Systems -> Logical System -> Define Logical System
2) In WE20 create new partner number and put in the logical system name that you created in the 1st step and partner type = LS.
3) In Outbound/ Inbound Parameter fill in the relevant message type.
4) For Outbound you will require to fill in Receiver port. Before this you have to create a port using WE21 by filling in your RFC destination name.
Notes: If your destination are using RFC create the port under Transaction RFC. File are used if the data are send using file format and same as XML File.
5) Fill in the basic type or Extension if necessary under Outbound Options.
6) Fill in also data under message control tab for application, message type, process code and other relevant info.
7) For Inbound parameters it has less info to fill in. You need to fill in the process code. This process code will tie to the Function module. Just double click on the process code to check on the function module.
WE41 – Outbound process code
WE42 – Inbound process code
8) After you have completed these steps create the relevant document eg: Sales order (VA01) and make sure you put in the output type in the Sales order. Check your IDOC created under WE02. If no IDOC is created check your partner profile and make sure all the partner function, message type in your SO output type fullfill the requirement in partner profile.
These are the basic steps you are required to setup IDOC. Hope these steps are clear for you to start your own IDOC