You are on page 1of 2

IDOC Process in SAP:

 Control Record
 Data Record -> Segments -> Fields
 Status Record

IDOC can be sent in 3 ways:

 Using a FM, MASTER_IDOC_DISTRIBUTE


 Message Control – Process code is updated in the Partner Profile – Outbound Parameters.
 Change Documents/Change Pointers – Via BD61, BD50, BD52, SWO1, SWEC, PFTC
(https://blogs.sap.com/2013/06/26/outbound-idoc-by-change-pointers-and-customized-triggering-
events/)

Step to be done in Source & Destination Client:

 SALE/BD54 -> Define Logical systems and assign logical system to client.
 SALE/SCC4 -> Create/View Clients

Steps to be done in Source Client:

1. WE31 -> Create segments. Here you must mention all the fields mentioned in the database table.
2. WE30 -> Create basic IDOC type and release the segments and basic type.
3. WE81 -> Create message type.
4. WE82 -> Assign message type to basic IDOC type.
5. SM59 -> Create Logical Destination. Click Connection test icon after marking the current user
checkbox in logon and security tab.
6. WE21 -> Create port for IDOC processing.
7. BD64 -> Click on Display/change button
8. Click on Edit menu -> model view -> create (Or click on ‘Create model view’)
9. Specify description and technical name and press continue.
10. Select your model view -> click edit -> Add message type (Or click on ‘Add message type’)
11. In dialog box specify sender, receiver, and message type and continue.
12. Click on environment menu -> generate partner profile
13. Select your model view and click on execute. It will show the partner profile log in next screen.
14. Click on back button 2 times it will take to distribution model screen.
15. Click on Edit -> Model view -> Distribute
16. In displayed dialog box select the partner system and continue.
17. Then it will show the log of model view distribution.
18. WE20 -> Check partner profile.
19. SE38 -> Write the report program to create IDOC control records and transfer it to
destination partner system.
20. WE02 -> Check the generated IDOC control records.
Steps to be done in Destination client:

1. Go to transaction SE37 to create the function module for updating the table from IDOC segments.
2. Specify import, export and table parameters.
3. Go to transaction WE57 for assigning the FM to logical system. Click on Display/ change button.
4. Specify FM name, function type, basic type (IDOC), message type and direction then save it.
5. Go to transaction BD51 to define input method for inbound function module and click on
Display change button
6. Specify your function module and input type by clicking the new entries.
7. Go to transaction WE42 and create process code.
8. Go to transaction BD64 and generate the partner profile again.
9. Got to transaction SE 38 and execute the transaction in source system (client100).
10. Check in destination system (client 800). Go to Transaction WE02 and check your table in SE11. (You
can get the transferred entries in that table).

You might also like