Skip to Content
0

Deposit (object type 25) with Business Partner

Jul 21, 2017 at 01:28 PM

58

avatar image
Former Member

Hi

When I try to add a deposit where the AccountType is a business partner an error is displayed telling you to specify a branch that is not disabled in JDT1.

SAPbobsCOM.CompanyService companyService = oCompany.GetCompanyService();
SAPbobsCOM.DepositsService dpService = (SAPbobsCOM.DepositsService)companyService.GetBusinessService(SAPbobsCOM.ServiceTypes.DepositsService);
SAPbobsCOM.Deposit dpsAddCreditCard = dpService.GetDataInterface(SAPbobsCOM.DepositsServiceDataInterfaces.dsDeposit);
SAPbobsCOM.DepositParams dpParams;
SAPbobsCOM.CreditLines odepositLines = dpsAddCreditCard.Credits;
SAPbobsCOM.CreditLine odepositLine;

dpsAddCreditCard.BPLID = 1; //(Is active)

dpsAddCreditCard.DepositDate = DateTime.Now;
dpsAddCreditCard.DepositType = SAPbobsCOM.BoDepositTypeEnum.dtCredit;
dpsAddCreditCard.ReconcileAfterDeposit = SAPbobsCOM.BoYesNoEnum.tNO;

//Test BankAccount
//dpsAddCreditCard.DepositAccountType = SAPbobsCOM.BoDepositAccountTypeEnum.datBankAccount;
//dpsAddCreditCard.DepositAccount = _BanckAcct;
//dpsAddCreditCard.VoucherAccount = _BanckAcct;

//Test Business Partner
dpsAddCreditCard.DepositAccountType = SAPbobsCOM.BoDepositAccountTypeEnum.datBusinessPartner;
dpsAddCreditCard.DepositAccount = _CardCode; 

odepositLine = odepositLines.Add();
odepositLine.AbsId = 999;

dpParams = dpService.AddDeposit(dpsAddCreditCard);

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Jul 21, 2017 at 02:59 PM
0

Diego

All branchs are assigned for Business Partner.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 21, 2017 at 03:37 PM
0

Diego

It was the first configuration I checked and all the branches are marked

Share
10 |10000 characters needed characters left characters exceeded
DIEGO LOTHER Jul 21, 2017 at 02:39 PM
0

Hi Francisco,

Check if this branch(1) is assigned to your business partner.

Maybe this can cause the problem.

Hope it helps.

Kind Regards,

Diego Lother


img.png (119.5 kB)
Share
10 |10000 characters needed characters left characters exceeded