The Main SAP Transaction for IDOC processing is WEDI. AS soon as you go there you will see all the t-code associated with the IDOC will appear. This contains all the IDOC t-codes from creating to processing to configuration.
Here we are going to look in to a business case and see how we can configure the IDOC and how to process the IDOC. We have a Text file coming from a 3rd party with customer first name, last name and Age.
We need to create a new message type and store this information as idoc. Once we received this IDOC we need to process the data and load this data to a table(real life we call a SAP BAPI or sap function module normally BP create).
The text file format is as follows
First name char(20), last name char(20) and age number (3).
All of the following things are transportable. Save the transports. You can move the same config and the data from one system to another using this transport.
Create and/or Configure New IDOC segments: T-Code is WE31. Create a new Segment type ZTEST_CUST. Click create and see the following screen shot. Now the Segment is created we are ready to create Idoc types and Message type. Create and/or Configure New IDOC types: T-Code is WE31. Create a new IDOC type ZTEST_IDOC_TYPE. Click create that will take you to the next screen. Click on the create segment. A pop-up will display. Select the created segment type and click continue. Now click save and save the IDOC type. Now we have a IDOC structure that can have the first,last name and the age.Now let us go to the message type.