on 11-01-2016 7:55 PM - last edited on 02-03-2024 5:59 PM by postmig_api_4
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!
User | Count |
---|---|
6 | |
5 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.