IDOC Configuration Step by Step
• What is an IDoc?
IDoc is an Intermediate document used for exchanging business data between SAP
and non-SAP systems. It acts as a Data container, facilitating smooth
communication across different modules or systems.
Every IDoc has a unique Number.
1. Ensures seamless data exchange between SAP and external systems.
2. Standardizes business communication across different SAP landscapes.
3. Reduces manual intervention, making processes faster and more efficient.
• IDocs Process:
1. Inbound IDoc: It means data coming into SAP from an external system.
2. Outbound IDoc: It means data sent from SAP to an external system.
• Key Components of IDoc:
1. Control Record: It contains the Inbound / Outbound records such as Port Number,
Partner Number, Message Type, IDoc Number, Direction, Start Date – End Date of
IDoc etc.
Table: EDIDC (All records found in this table).
2. Data Record: Holds the actual business data in segments.
Table: EDID4 (All records found in this table).
3. Status Record: It shows the IDoc Status whether it is in the error or success state.
Table: EDIDS (All records found in this table).
Inbound Status Code: 50 To 75.
Outbound Status Code: 01 To 49.
Ahmed Zanaty 1
• Configuration Steps in IDOC for LSMW:
Ahmed Zanaty 2
• Step 1: Create a port in transaction WE21 which shows the target system’s RFC
destination.
Ahmed Zanaty 3
• Step 2: In transaction WE20, create a partner profile and mention the message type
details. In case of Outbound IDOC’s, mention the message types under Outbound
Parameters. In the case of Inbound IDOC’s, mention the message types under
Inbound Parameters. For outbound parameters, maintain port and IDOC details,
because port describes to which system the IDOC must flow. Whereas in Inbound
IDOC,mention the process code details which determines the inbound function
module for processing the data.
Ahmed Zanaty 4
• Step 3: Choose a particular message type and maintain the below settings. Under
the receiver port mention the port created in transaction WE21. In Output mode,
choose Transfer IDOC immediately. In IDOC type mention the IDOC associated with
the Message Type.
Ahmed Zanaty 5
Ahmed Zanaty 6
• Step 4: Return back to LSMW
Ahmed Zanaty 7
Ahmed Zanaty 8
• Step 5: Apart from the above steps we can use Transaction WE02/WE05 to display
any IDOC and WE60 for IDOC Documentation. To reprocess any IDOC use
transaction WE19 and input the IDOC number, a new number gets generated. Any
IDOC has 3 record types – Control, Data and Status. Control Records display the
direction of the IDOC, message type/basic type details. Data record displays the data
under multiple segments. In Status Record we can check the IDOC status whether it
is a success or failure.
Ahmed Zanaty 9
Ahmed Zanaty 10
• Real-world Use Cases:
1. Sales Order Processing (ORDERS05 IDoc) – Automating sales order creation between
SAP and external vendors.
2. Invoice Processing (INVOIC02 IDoc) – Seamless invoice exchange between
customers and suppliers.
3. Material Master Data Distribution (MATMAS05 IDoc) – Synchronizing material master
data across SAP systems.
4. Goods Movement (MBGMCR IDoc) – Automating stock transfers and inventory
updates.
• Conclusion: IDocs are the backbone of SAP’s integration framework, enabling
smooth and structured communication between systems. Whether you’re handling
sales orders, invoices, or material master data, IDocs ensure efficiency, accuracy,
and automation.
Ahmed Zanaty 11