cancel
Showing results for 
Search instead for 
Did you mean: 

BPAdresses remove

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

former_member591057
Participant
0 Kudos

Hi Marcello ,

Recently I am facing the same problem I have tried to remove the BP Address in the following way but it is not working please suggest how you have overcome this problem

<env:Body>

          <dis:RemoveObject  xmlns:dis="http://www.sap.com/SBO/DIS" >

            <BOM>

              <BO>

                <AdmInfo>

                  <Object>BPAddresses</Object>

                </AdmInfo>

                <QueryParams>

                  <CardCode>C23000</CardCode>

                  <RowNum>2</RowNum>

                 

                </QueryParams>

              </BO>

            </BOM>

          </dis:RemoveObject >

        </env:Body>

Thanks and Regards

Utpal Maity

Former Member
0 Kudos

<object> Which object is responsible for BusinessPartnerAddresses ????

Former Member
0 Kudos

Hi Marcelo,

The object you can use for this is "BPAddresses". The helpfile gives a full list of all its properties for reference.

Regards,

Niall

SAP Business One Forums