cancel
Showing results for 
Search instead for 
Did you mean: 

Incoming Payment with two or more invoices

costas_ioannou2
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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:

costas_ioannou2
Active Participant
0 Kudos

Thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

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.