Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple iDocs in a single file

Former Member
0 Kudos

Hello,

I'm working on some integration to send a purchase order change file into SAP from BizTalk.  Everything works when we send every change as its own iDoc, or when we send all changes for a single PO in a single file, but when we try and include multiple iDocs in a single send, we get an error that it has to many elements.  The definition below is of the idocData element which indicates it can send more than one:

<xs:elementxmlns:q2="http://Microsoft.LobServices.Sap/2007/03/Types/Idoc/3/PORDCH03//711"minOccurs="1" maxOccurs="2147483647" name="idocData" nillable="true"type="q2:PORDCH03">

A sample of the file:

<?xml version="1.0"?>
<ns0:Send xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:ns2="http://Microsoft.LobServices.Sap/2007/03/Types/Idoc/Common/" xmlns:ns1="http://Microsoft.LobServices.Sap/2007/03/Types/Idoc/3/PORDCH03//711" xmlns:ns0="http://Microsoft.LobServices.Sap/2007/03/Idoc/3/PORDCH03//711/Send">
     <ns0:idocData>
        <ns1:EDI_DC40>
        ....
        </ns1:EDI_DC40>
        <ns1:E2PORDCH000GRP>
        ......
        </ns1:E2PORDCH000GRP>
    </ns0:idocData>
    <ns0:idocData>
        <ns1:EDI_DC40>
        ....
        </ns1:EDI_DC40>
        <ns1:E2PORDCH000GRP>
        ......
      
     </ns1:E2PORDCH000GRP>

    </ns0:idocData>
</ns0:Send>

1 REPLY 1

0 Kudos

Hey Josh,

Hope your issue is fixed by now.

If not please check the Inbound Process code of the Order which is triggering Idoc in the SAP System.

You have to modify that as per se your need.

Thanks.