cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when Add new Business Partner

Former Member
0 Kudos

Hi All,

When I using DI/API to add new Business Partner I have the Error msg: "Accounts receivable/payable is missing [OCRD.DebPayAcct]"

My code:

oBP = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)

oBP.CardCode = MyCardCode

oBP.CardName = MyCardNme

oBP.CardType = BoCardTypes.cCustomer

oBP.AccountRecivablePayables.SetCurrentLine(0)

oBP.AccountRecivablePayables.AccountCode = MyAccount

oBP.AccountRecivablePayables.Add()

RetVal = oBP.Add()

Please help me to fix this problem. Tks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello freind

first cheak in yur business partnet accounting tab where yu find acc pable and receivable.if there is not find account by system then it give such type of error

so for this yu can take charted account two types

user defiend account

(2)indian account

so pls select this during creating new company in the system

Former Member
0 Kudos

Hi All,

I checked and have account when click at the Accounts Receivable information. I think code lines have problem:

oBP.AccountRecivablePayables.SetCurrentLine(0)

oBP.AccountRecivablePayables.AccountCode = MyAccount

oBP.AccountRecivablePayables.Add()

Please help me fix this error. thanks

Answers (0)