Creating the XML Document for Inbound IDocs 
Use
When using the IDoc Connector for XML to send inbound IDocs, you provide an XML document, and the IDoc Connector for XML component translates it to an IDoc.
While the IDoc Connector for XML component checks the syntax of the XML document, it does not check or validate the resulting IDoc.
It is your responsibility to provide an XML document that contains:
The Contents of the XML Document
The XML document is built as a hierarchy of all the IDoc segments and their fields.
The XML tags represent either an IDoc segment or field name.
Field values are included within each tag.
The order of the XML tags for the segments and field should be in their order of appearance in the resulting IDoc.
Example
The following is a section from the beginning of an XML document for IDoc type ORDERS01:
<?xml version="1.0"?>
<ORDERS01>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC</TABNAM>
<MESTYP>ORDERS</MESTYP>
<DIRECT>2</DIRECT>
<SNDPRN>IDOCCLASS</SNDPRN>
<SNDPRT>LS</SNDPRT>
<SNDPOR>A000000009</SNDPOR>
<STDMES>ORDERS</STDMES>
<IDOCTYP>ORDERS01</IDOCTYP>
</EDI_DC40>
<E1EDK01 SEGMENT="1">
<SEGNAM>E2EDK01</SEGNAM>
<CURCY>DEM</CURCY>
<WKURS>1.00000</WKURS>
<ZTERM>0001</ZTERM>
<BSART>NB</BSART>
<BELNR>4500000329</BELNR>
<RECIPNT_NO>WTBLIEF</RECIPNT_NO>
</E1EDK01>
Using SAP Assistant to Start the XML Document
Using the
SAP Assistant product (which is a part of
SAP Automation) you can get a blank XML file (containing tags without values) for a specific IDoc type. You can then use this XML file as a skeleton for creating the complete XML document.
Prerequisites
SAP Assistant product for how to define destinations.
Procedure
You can now use this skeleton to build the complete XML document. You can do so with an XML editor or you can do so programmatically.
Regardless of whether you are building the XML document interactively or through your program, your goal is to:
See the
SAP Assistant documentation for general instructions on using the product.