cancel
Showing results for 
Search instead for 
Did you mean: 

Incoming Payment Error

Former Member
0 Kudos

Hi Guys

My problem is as follows:

I tried to add documents of payment in the Incoming Payment screen, but system gave me this message:

Confirmation amount must be greater than zero

And I could not find the right reason for this message.

Anyone can help me?

Cheers

Sky

Accepted Solutions (1)

Accepted Solutions (1)

rasmuswulff_jensen
Active Contributor
0 Kudos

You need to selcet which documents you want to pay and then show the system how to pay (cash, bank transfer, ect.) . Open payment means using CTRL+Y

Former Member
0 Kudos

Thank you Rasmus, but in this way I have to put the total payment first and then do the payment means. However, this field doesnot show any info in debug informaiton therefore I could not put the value to it programatically. Could you please give me any hints, if possible, could you please give me the Payment Means's in DI API. Thanks a million.

Sky

rasmuswulff_jensen
Active Contributor
0 Kudos

I've done the thing you want both DI and UI and both places its possible (UI is kind of a hack).... Are you planning a DI or UI solution?

Answers (3)

Answers (3)

Former Member
0 Kudos

I found the problem, maybe. If the invoice already has the credit card Name, it wont use the one i set programatically. For example, in OEC_Computer, BUsiness Partner C40003, Stone always uses American Express as its credit card, therefore i could not set it as skyMIS which I set by coding. As a result, Strangely, it looks not reasonable, doesnot it?

rasmuswulff_jensen
Active Contributor
0 Kudos

This is the basic examaple (One invoice, bank transfer)


Payments p = (SAPbobsCOM.Payments)SboCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments);
p.CardCode = CardCode;
p.Invoices.DocEntry = 1234;
p.TransferAccount = "2340";
p.TransferDate = DateTime.Today;
p.TransferSum = 10000.23;
p.Remarks = "Remarks";
if(p.Add()!=0) {
  //error
}
else {
  //ok
}

Former Member
0 Kudos

The following is part of my code, some values extract from CSV file.

...

' Bank incoming payment for Credit Card

Dim oIncomingPayment As SAPbobsCOM.Payments

oIncomingPayment = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)

...

'Add Incoming payment header

oIncomingPayment.CardCode = oCardCode

oIncomingPayment.DocType=SAPbobsCOM.BoRcptTypes.rCustomer

oIncomingPayment.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO

oIncomingPayment.DocDate = oDate

oIncomingPayment.DocCurrency = oCurrency

oIncomingPayment.TaxGroup = oTaxCode

oIncomingPayment.Remarks = "pieTime purchased at " + oTransactionTime

oIncomingPayment.Invoices.DocEntry = oInvoiceDocEntry 'DocEntry

oIncomingPayment.CreditCards.CreditCard = 4 'This index is mapping Company's Credit Card type

oIncomingPayment.CreditCards.CreditAcct = oAccountCode

oIncomingPayment.CreditCards.CreditCardNumber = "skyMIS"

oIncomingPayment.CreditCards.VoucherNum = "skyMIS"

oIncomingPayment.CreditCards.CardValidUntil = "10/10"

oIncomingPayment.CreditCards.FirstPaymentSum = oAmount

oIncomingPayment.CreditCards.CreditSum = oAmount

'This code sometimes popup -2028 error which mayhaps is a data problem cos I am using demo company for testing. However, some data sometimes run with no problem but sometimes they have, which make me think there is some more problem other than the data, maybe the code.

Anybody can help me will be appreciated with tears

Sky

Former Member
0 Kudos

ITs DI solution, could you please give me some code. Sorry, My company just introduced this SBO system,I am a real amateur.

CHeers

SKy