The IDoc data record EDI_DD contains a 55 byte header section with reference information and hierarchy information as well as a user data section of up to 1000 bytes. The size of the user data section is determined by the length of the IDoc segment transferred there.
When the SAP system is receiving or transmitting data, the sequence of the individual data records transferred is determined directly from table EDI_DD. When data is being transmitted, the data records are also numbered sequentially.
Field name |
Format |
Oblig.field |
Significance |
---|---|---|---|
TABNAM |
CHAR 10 |
Name of table structure |
|
MANDT |
CHAR 03 |
Client |
|
DOCNUM |
NUMC 16 |
X |
Number of intermediate document |
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 segment |
|
DTINT2 |
CHAR 02 |
SAP-internal field, do not fill |
|
SDATA |
LCHR 1000 |
X |
User data in the form of an IDoc segments |
Example
If, for example, you are transmitting two IDocs with shipment documents from a subsystem to an SAP 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 SAP client has the logical system description ‘LSS11MAND002’, the subsystem is defined using ‘LSTRANSPLAN1’.
IDoc number |
Segment name |
User data |
Significance |
---|---|---|---|
9000000000123456 |
E2TPSHH |
0010000101AD01ED... |
Shipment header |
9000000000123456 |
E2TPACC |
C |
Actions code |
9000000000123456 |
E2TPSHI |
0001008400035465 |
Delivery |
9000000000123457 |
E2TPSHH |
0010000102AD01ED... |
Shipment header |
9000000000123457 |
E2TPACC |
C |
Actions code |
9000000000123457 |
E2TPSHI |
0001008400035467 |
Delivery |
IDoc number |
Receiving partner |
Transmitting partner |
Mess.type |
IDoc type |
---|---|---|---|---|
9000000000123456 |
LSS11MAND002 |
LSTRANSPLAN1 |
SHIPPL |
TPSSHT01 |
9000000000123457 |
LSS11MAND002 |
LSTRANSPLAN1 |
SHIPPL |
TPSSHT01 |