cancel
Showing results for 
Search instead for 
Did you mean: 

How to Remove Business Partner Address using DI Server

Former Member
0 Kudos

Hello,

I need to remove Business Partner Addresses using DI Server, the example in the SDK only mentions the remove of the entire business partner, but I need to delete only one of the business partner addresses, how can it be done?

Accepted Solutions (1)

Accepted Solutions (1)

bastian_schaefer
Active Contributor
0 Kudos

Hi,

the usage of the "UpdateWithSubDeletion" method of B1 object atom might be an option.

You need to update the complete business Partner with the changed amount of addresses.

The usage is tricky, you need to retrieve the BP, which you want to update, first via synchronous retrieval method using import/export mode.

From the retrieval result you should start to update every segment with all fields including the BPAddresses segment in exactly the same sorting order as displayed from the synchronous retrieval.

Best regards

Bastian

Former Member
0 Kudos

I'm just wondering what exactly has to change in the update request object compared to a normal update of businesspartner addresses using DI server?

edit: or are you using the business service update request?

bastian_schaefer
Active Contributor
0 Kudos

Hi,

my answer above is related to the Integration Framework of SAP Business One.
The mentioned method "UpdateWithSubDeletion" uses the regular B1 object call with the delete/insert logic of "UpdateFromXML" provided by DI API.

Best regards

Bastian

Answers (0)