The IDoc data record EDI_DD contains a 55 byte header section with reference information and hierarchy information as well as a data section of up to 1000 bytes. The size of the data section is determined by the length of the IDoc segment transferred there.
When the R/3 system is receiving or transmitting data, the sequence of the individual data records transferred is determined directly from table EDI_DD. The same is true for data that is being transmitted. The data records are also numbered sequentially in transmission.
Field name |
Format |
Req’d |
Significance |
TABNAM |
CHAR 10 |
Name of the table structure | |
MANDT |
CHAR 03 |
Client | |
DOCNUM |
NUMC 16 |
X |
Number of the IDoc |
SEGNUM |
NUMC 06 |
sequential number | |
SEGNAM |
CHAR 10 |
X |
IDoc segment name |
PSGNUM |
NUMC 06 |
Number of hierarchically superior segment | |
HLEVEL |
CHAR 02 |
Hierarchy level of the segment | |
DTINT2 |
CHAR 02 |
SAP-internal field, do not fill | |
SDATA |
LCHR 1000 |
X |
Data in the form of an IDoc segment |
If, for example, you are transmitting two IDocs with shipment documents from a subsystem to an R/3 system, each with a shipment header, an action code and an assigned delivery - therefore each containing three segments, then you must use one EDI_DC record and three EDI_DD records per IDoc. When you call function module ‘INBOUND_IDOC_PROCESS’ via RFC, a total of two EDI_DC records and six EDI_DD records are transferred. The three segments of an IDoc are grouped using the unique number of the IDoc or intermediate document.
The DOCNUM is also used to identify the corresponding EDI_DC record. The R/3 client has the logical system description LS S11MAND002; the subsystem is defined using LS TRANSPLAN1.
EDI_DD
IDoc number |
Segment name |
Data |
Significance |
9000000000123456 |
E2TPSHH |
0010000101AD01ED... |
Shipment header |
9000000000123456 |
E2TPACC |
C |
Action code |
9000000000123456 |
E2TPSHI |
0001008400035465 |
Delivery |
9000000000123457 |
E2TPSHH |
0010000102AD01ED... |
Shipment header |
9000000000123457 |
E2TPACC |
C |
Action code |
9000000000123457 |
E2TPSHI |
0001008400035467 |
Delivery |
EDI_DC
IDoc number |
Receiving partner |
Sending partner |
Mess. type |
IDoc type |
9000000000123456 |
LS S11MAND002 |
LS TRANSPLAN1 |
SHIPPL |
TPSSHT01 |
9000000000123457 |
LS S11MAND002 |
LS TRANSPLAN1 |
SHIPPL |
TPSSHT01 |