Skip to Content
0

Error Incoming Payment (Checks)

Jun 02, 2017 at 04:17 PM

90

avatar image
Former Member

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.Invoices.Add()
oPymt.Checks.CountryCode = "EL"
                        oPymt.Checks.BankCode = Bank
                        oPymt.Checks.CheckSum = poso2
                        oPymt.Checks.Add()
lretcode = oPymt.Add()

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

1 Answer

Jitin Chawla
Jun 05, 2017 at 06:25 AM
0

Hi,

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

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

Regards,

Jitin


                            
Share
10 |10000 characters needed characters left characters exceeded