Definition
All IDocs are structured according to specific rules: This is thegeneral structure (the record types) of an IDoc. Special rules affect the differentIDoc types.
Structure
General Structure
IDocs containadministration information for technical processing, as well as the actual application data, which is stored insegments. A segment comprisessegment fields as the smallest unit of the IDoc – comparable with the data elements from the EDIFACT standard.
In the SAP System, the processing status (“what has happened to the IDoc before now?”) is stored in the IDocstatus information. The status information also contains details about errors and indicates the data in which the error occurred. This status information is not forwarded as part of the IDoc but separately using “status processing”.
IDoc Types (Special Structure)
An IDoc type is defined through its permitted segments. Segments can be dependent on each other (parent and child segments). For example, segment E1EDPT1 (document item text identification) is a child segment of segment E1EDP01 (document item data, general) in IDoc type EXPINV01 (export billing) and a child segment of E1EDP07 (order data shipping notification) in IDoc type DESADV01 (shipping notification). The segment, therefore, is used in several contexts and is the “child” of several “parents”.
The figure below shows the basic structure of an IDoc and which parts are transferred to and from the external system. The parent-child segment hierarchy is shown here as a tree structure. A total of 3hierarchy levels can be seen.
The IDoc Interface can check for each IDoc whether the segments contained are compatible with the definition of its type. This syntax check is activated or deactivated in thepartner profiles (separately for inbound and outbound processing).
More Information
For more information, see also