cancel
Showing results for 
Search instead for 
Did you mean: 

Create Supplier Invoice via API_SUPPLIERINVOICE_PROCESS_SRV reference to PO with multi assignment

jnestares
Participant
0 Kudos
666

error-m8416.png

body-supplier-invoice-with-reference-to-po-without.txtHi,

we are trying to create a supplier invoice with reference to a Purchase Order with multi account assignment via API. The Purchase Order has no GR based Invoice verification check. The error we are getting from Postman (when calling the API) is M8/416 (please see the attached documents, one with the error snapshot, another with the Body of the message to call the API to create the supplier invoice)

Would really appreciate your help, because we have only seen this error when the Purchase Order has check GR based Inv verification unflagged.

KR,

Jose

View Entire Topic
rodleo92
Participant
0 Kudos

SOLUTION PROVIDED:

Hello,

I am a colleague of Jose Antonio Nestares and we have found a solution to the error.

First of all, SAP found a bug in the API due to the error that occurred when sending all the cost allocation information in the section "to_SupplierInvoiceItmAcctAssgmt". This fix will be available from Release 2208.

Alternatively, to be able to create an invoice from a purchase order that has a cost allocation in the items and also has Goods Receipt, simply not reporting the fields referring to the cost objects will post. I.e. the following fields in the section "to_SupplierInvoiceItmAcctAssgmt" would have to be sent empty:

<CostCenter/>

<ControllingArea/>

<ProfitCenter/>

<FunctionalArea/>

<GLAccount/>

<WBSElement/>

This works both for orders with a single account assignment (a single Cost Centre or WBS Element) and for orders with multiple account assignment (various assignment to Cost Centre or WBS Element).

If the purchase order does not have Goods Receipt, you would have to send the information in these fields. In these cases, the API does not give error.

I hope this helps.

Regards.

lokesh2
Advisor
Advisor
0 Kudos

We helped you to accept the answer, since there were no updates after 7 days.

You can unaccept it anytime if the answer provided was not helpful enough and you have further questions.