on 10-13-2008 2:24 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<object> Which object is responsible for BusinessPartnerAddresses ????
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.