Skip to Content
0
Jun 21, 2018 at 04:55 PM

Incoming payments No matching records found (ODBC -2028)

116 Views

Hello everyone

I have a problem when i try to create an incoming payment via DI api, when i add 2 lines on lObjIncomingPayment.Invoices works fine, but when i add more No matching records found (ODBC -2028) appears on lObjIncomingPayment.Add(). Here my code:

lObjIncomingPayment.Invoices.SetCurrentLine(count); lObjIncomingPayment.Invoices.DocLine = count; lObjIncomingPayment.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry;

lObjIncomingPayment.Invoices.DocEntry = lLstPagosAntcByDocNum[p].TransId; lObjIncomingPayment.Invoices.AppliedFC = -10;

count++;

lObjIncomingPayment.Invoices.Add();

Thanks.