Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Adding and Updating Batch record for oOrders with DISERVER-DI SERVER BATCH

Hi,

Can you please share a valid XML call to DIServer for creating and updating a batch for oOrders?

The only example I was able to find is in the docs, which is for oDeliveryNotes:

<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
 <env:Header>
  <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
 </env:Header>
 <env:Body>
  <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
  <BOM>
   <BO>
    <AdmInfo>
     <Object>oDeliveryNotes</Object>
    </AdmInfo>
    <Documents>
     <row>
      <CardCode>BPForBatch</CardCode>
     </row>
    </Documents>
   <Document_Lines>
    <row>
     <ItemCode>ItemToBatch1</ItemCode>
     <Quantity>10</Quantity>
     <Price>10</Price>
     <TaxCode>My Tax</TaxCode>
    </row>
    <row>
     <ItemCode>ItemToBatch2</ItemCode>
     <Quantity>8</Quantity>
     <Price>10</Price>
     <TaxCode>My Tax</TaxCode>
    </row>
   </Document_Lines>
   <BatchNumbers>
     <row>
     <BatchNumber>AA</BatchNumber>
     <Quantity>5</Quantity>
     <BaseLineNumber>0</BaseLineNumber>
    </row>
    <row>
     <BatchNumber>AA</BatchNumber>
     <Quantity>5</Quantity>
     <BaseLineNumber>0</BaseLineNumber>
    </row>
    <row>
     <BatchNumber>AB</BatchNumber>
     <Quantity>5</Quantity>
     <BaseLineNumber>1</BaseLineNumber>
    </row>
    <row>
     <BatchNumber>AB</BatchNumber>
     <Quantity>3</Quantity>
     <BaseLineNumber>1</BaseLineNumber>
    </row>
   </BatchNumbers>
   </BO>
  </BOM>
  </dis:AddObject>
 </env:Body>
</env:Envelope>

Thank you very much,

Mike

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question