Real Time Information Director User Documentation
RTID Metadata Language
Hewlett-Packard Company 24 529618-002
XML IDoc Format
The next several pages show excerpts from an actual ORDERS05 IDoc. Looking at the
structure of the IDoc will make it easier to understand how to specify different kinds of
elements in the document definition.
<?xml version="1.0" encoding="iso-8859-1"?>
<ORDERS05>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT>016</MANDT>
<DOCNUM>0000000001651543</DOCNUM>
<DOCREL>46C</DOCREL>
<STATUS>30</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>2</OUTMOD>
<IDOCTYP>ORDERS05</IDOCTYP>
<CIMTYP>ORDERS05</CIMTYP>
<MESTYP>ORDRSP</MESTYP>
<SNDPOR>SAPAPL</SNDPOR>
…
<CREDAT>20030916</CREDAT>
<CRETIM>040122</CRETIM>
<SERIAL>20030916040120</SERIAL>
</EDI_DC40>
Here is the start of the IDoc. The top tag identifies it as an ORDERS05 IDoc.
<?xml version="1.0" encoding="iso-8859-1"?>
<ORDERS05>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT>016</MANDT>
<DOCNUM>0000000001651543</DOCNUM>
<DOCREL>46C</DOCREL>
<STATUS>30</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>2</OUTMOD>
<IDOCTYP>ORDERS05</IDOCTYP>
<CIMTYP>ORDERS05</CIMTYP>
<MESTYP>ORDRSP</MESTYP>
<SNDPOR>SAPAPL</SNDPOR>
…
<CREDAT>20030916</CREDAT>
<CRETIM>040122</CRETIM>
<SERIAL>20030916040120</SERIAL>
</EDI_DC40>
The EDI_DC40 segment is the IDoc header. This header is the same for all IDocs; the
only differences in the format of the header are between different releases of SAP.