cancel
Showing results for 
Search instead for 
Did you mean: 

Check Deposit through SAP SDK

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (0)