Skip to Content

Check Deposit through SAP SDK

Hello,

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)

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers