An IDoc (Intermediate Document) is a standard SAP data structure used for exchanging information between SAP systems or between SAP and non-SAP systems. It acts as a container for data that can be transmitted electronically, supporting both inbound (receiving data) and outbound (sending data) processes. Each IDoc represents a specific business transaction such as a sales order, invoice, or material master update.
Technically, an IDoc consists of three main parts:
Control Record – contains metadata like IDoc type, sender, receiver, and message type.
Data Records – contain actual business data segments defined by the IDoc type (e.g., E1KNA1M for customer master).
Status Records – log the current status of the IDoc (e.g., sent, processed, error).
When data is sent, SAP creates an outbound IDoc using a Message Type (like ORDERS) and an IDoc Type (like ORDERS05). This IDoc is then passed to the ALE layer, which determines the receiver system through a Distribution Model and Partner Profile configuration.
In the receiving system, the IDoc is processed via an inbound function module that updates the target application tables. IDocs enable asynchronous communication, ensuring data consistency even when systems are temporarily offline. In summary, IDocs are the backbone of SAP’s system-to-system data integration framework, ensuring standardized, reliable, and auditable data exchange.