ERPConnect offers support for both IDoc schema and IDoc data located in XML-files. You can create an IDoc schema with the IDoc Schema Generator, which is included in the program folder of ERPConnect. The screenshot below shows an IDoc schema file for the ORDERS01 type.
To create an IDoc object out of the schema we use the method LoadIdocSchema. After doing so, it is possible to create segment objects by using the method CreateSegment (as we did in the other ORDER-Example). The example below shows how to load the IDoc data from a data file by using the method LoadXMLData.