Skip to Content

Check Deposit through SAP SDK

Nov 01, 2016 at 07:55 PM


avatar image


I am having trouble with the creation of a check deposit through the DI API.

Error message: No matching records found

Here's my code:

Dim oService As SAPbobsCOM.CompanyService = oCompany.GetCompanyService

Dim dpService As SAPbobsCOM.DepositsService = CType(oService.GetBusinessService(SAPbobsCOM.ServiceTypes.DepositsService), SAPbobsCOM.DepositsService)

Dim dpsAddCash As SAPbobsCOM.Deposit = CType(dpService.GetDataInterface(SAPbobsCOM.DepositsServiceDataInterfaces.dsDeposit), SAPbobsCOM.Deposit)

dpsAddCash.DepositType = SAPbobsCOM.BoDepositTypeEnum.dtChecks

dpsAddCash.DepositAccount = Cuenta.Text

dpsAddCash.BankAccountNum = getCuenta(DepositType.Text)

dpsAddCash.DepositCurrency = Moneda.Text

dpsAddCash.TotalLC = TablaCheques.Rows(currentrow).Cells("ChequeTotal").Value

dpsAddCash.JournalRemarks = Comentario.Text

dpsAddCash.ReconcileAfterDeposit = SAPbobsCOM.BoYesNoEnum.tYES

Dim dpsParamAddCash As SAPbobsCOM.DepositParams = dpService.AddDeposit(dpsAddCash)


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

0 Answers