ERPConnect offers support for both the IDoc schema and IDoc data located in XML-files.
The two screenshots below show an IDoc schema file (of the ORDERS01 type) and an IDoc data file. Creating an Schema is possible with the IDoc Schema Generator. Please refer to chapter IDoc-Schema-Generator.
To create an IDoc object from 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 previous ORDER-Example). The example below shows how to load the IDoc data from a data file by using the method LoadXMLData.
Click to open C# example.Click to open VB example.