on 12-29-2005 7:23 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
}
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.