cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Business Partner via B1WS web services

Former Member
0 Kudos

Hi,

I get an error when I try to update (through the 'update' function of the BusinessPartnersService object) a BP that has already a bank account; even if I populate the BPBankAccounts property with the existing info of bank account, I get:

Bank account is in use and therefore cannot be removed or changed [(----) 705-20]

My code is:

BusinessPartnersService px = NewBPService(LoginDefault());

BusinessPartner bp = new BusinessPartner();

bp.CardCode = "CADRIAT0000";

bp.Phone1 = "041666666";

BusinessPartnerBPBankAccount[] bpba = new BusinessPartnerBPBankAccount[1];

bpba[0] = new BusinessPartnerBPBankAccount();

bpba[0].BPCode = "CADRIAT0000";

bpba[0].IBAN = "IT42L0350012500000000021179";

bpba[0].Branch = "12500";

bpba[0].BankCode = "03500";

bpba[0].AccountNo = "000000021179";

bp.BPBankAccounts = bpba;

px.Update(bp);

Does anyone know ho to update correctly a BP with an existing bank account?

Thanks,

Alessio

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

First Use the getbykey to get the Business partnet then update.

sample code is available with B1WS package

Regards.

Former Member
0 Kudos

Hi Aslam

Can you send me link from where to get Setup and source code of B1WS for SAP B1 2007 B.

I found for 2007 A and not for B. So can you help me please.

Thanks in advance