on 10-02-2009 8:50 AM
Hi,
I want to create an Incoming payment using the DI API, but I want to pay 2 or more invoices with the same incoming payment. How do I add more than one invoice?
Thanks
Hi,
Use the Invoices collection of the Payment object:
You can find useful information in the help at Payment Object:
vPay.Invoices.DocEntry = 8
vPay.Invoices.InvoiceType = 13
vPay.Invoices.LineNum = 0
vPay.Invoices.SumApplied = 5031.2
Call vPay.Invoices.Add
Call vPay.Invoices.SetCurentLine(1)
vPay.Invoices.DocEntry = 11
vPay.Invoices.InvoiceType = it_Invoice
vPay.Invoices.LineNum = 1
vPay.Invoices.SumApplied = 1000
The example connects the payment with ivoice 8 and 11
Regards,
J:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Everytime we create an invoice sap B1 is hanging. I think it could be a PLD error as I made some PLD amendments earlier, I made some headings fonts 'Bold' and since then the system just hangs when it tries to create an invoice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.