Skip to Content
avatar image
Former Member

Error Incoming Payment (Checks)

Hello experts ,

I am trying to add an incoming payment with check and i received the following error : "one of the check details is wrong :country or bank" .Any idea?

The code i use :

 Dim oPymt As SAPbobsCOM.Payments
                    oPymt = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
                    oPymt.CardCode = rsUDO.Fields.Item("U_CardCode").Value.ToString
oPymt.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice
                        oPymt.Invoices.DocEntry = rsDocEntry.Fields.Item("DocEntry").Value.ToString
                        oPymt.Invoices.SumApplied = rsUDOLines.Fields.Item("U_RecAmount").Value.ToString
oPymt.Checks.CountryCode = "EL"
                        oPymt.Checks.BankCode = Bank
                        oPymt.Checks.CheckSum = poso2
lretcode = oPymt.Add()

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 05, 2017 at 06:25 AM


    Are you sure that the Country Code and the Bank Code correct in the code?

    oPymt.Checks.CountryCode ="EL"
                            oPymt.Checks.BankCode = Bank



    Add comment
    10|10000 characters needed characters exceeded