Skip to Content
avatar image
Former Member

Deposit (object type 25) with Business Partner

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);

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

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

    Diego

    All branchs are assigned for Business Partner.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2017 at 03:37 PM

    Diego

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 21, 2017 at 02:39 PM

    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

    Add comment
    10|10000 characters needed characters exceeded