Skip to Content
0

Check Deposit through SAP SDK

Nov 01, 2016 at 07:55 PM

38

avatar image

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!

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

0 Answers