Skip to Content

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

BPAdresses remove

Hello,

We are able to add and update the BPAddressess Object of a BussinessPartners Object with a DI server.

But how do we delete one BPAddresses object related to one Business Partner?

Best regards

Marcelo

Tags:
replied

Hi Marcelo,

To remove an object you have added using the DI server you can just use the "Remove" command of the DI server and provide it with the key of the object you are deleteing.

Please see the help file which has a sample of removing an object -> Help Center -> DI Server -> SOAP Message Types -> Data Manipulation Messages -> RemoveObject:

<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
 <env:Header>
  <SessionID>A6B1DE48-9E2B-535C-4538-8EB5509D77A9</SessionID>
 </env:Header>
 <env:Body>
  <dis:RemoveObject xmlns:dis="http://www.sap.com/SBO/DIS">
   <BOM>
    <BO>
     <AdmInfo>
      <Object>oItems</Object>
     </AdmInfo>
     <QueryParams>
      <ItemCode>100</ItemCode>
     </QueryParams>
    </BO>
   </BOM>
  </dis:RemoveObject>
</env:Body>
</env:Envelope>

If you are still running into difficulties, post up the XML you are using and we can take a look at it.

Regards

Niall

SAP Business One Forums.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question