cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create A/R Invoice + Payment using Service Layer

ivarsk2
Explorer
0 Kudos
634

Dear experts,

Please advise how to create the "A/R Invoice + Payment" type document in SAP B1 using the Service Layer. I can successfully create an A/R Invoice separately and Payment separately, but how do I post the A/R Invoice + Payment (in one SL call or multiple) so that the document appears in the "A/R Invoice + Payment" list in SAP B1 ?

Inspecting and comparing the fields I get when reading both the A/R Inv + Payment and just the A/R Inv documents (both using the Invoices service, created manually in the client) I can only idenfity the difference being the InvoicePayment = tYes and InvoicePayment = tNo respectively. Creating Invoice and Payment separately and then PATCHing the Invoice to set the InvoicePayment = tYes does not seem to accomplish the task, the InvoicePayment remains tNo for me.

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ivarsk2,

As far as I know, it is not possible in Service Layer.

You will have to do it separately only but can be done in a single request.

In a Batch request, create the Invoice first and later create the Payment for the created Invoice.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support