The data records of an IDoc are created in an internal table with structure EDIDD. The relevant fields are shown below.
Field |
Description |
segnam |
Segment type of the IDoc data record |
sdata |
1000 byte-long character field for the data used by the IDoc |
The remaining fields in EDIDD should be left initial.
All the segment types and their sequence are specified in the IDoc structure. The data records are structured according to this sequence and included in the internal table.
For each segment type of the IDoc structure, there is a DDIC structure with the same name. A field string with this structure is used for creating a data record. The application data is mapped to the field string. The segment type is written to the field SEGNAM, and the field string is written to the field SDATA. This data record is then appended to the internal table with the structure EDIDD.
When creating IDoc data records, note the following design guidelines: