SAP Knowledge Base Article - Public

3194665 - Amount of invoice item is not updated when creating invoice via SOAP API Supplier Invoice - Create (B2B, Inbound, Asynchronous)

Symptom

When using SOAP API INVOICEREQUEST_IN "Supplier Invoice - Create (B2B, Inbound, Asynchronous)"  to create supplier invoice, the log shows the invoice was created successfully. But in the created invoice the invoice item amount is zero, even though NetAmount and InvoicedQuantity are filled in the payload. The invoice status is "With errors" (RBKP-RBSTAT = 3).

Environment

SAP S/4HANA Cloud Public Edition

Cause

Goods receipt has not been done for the purchase order item.

The NetAmount and InvoicedQuantity which are filled in the payload, will be saved for Amount (WRBTR) & AmountAccordingToInvoicingParty (RBWWR) and Quantity(MENGE) & QuantityAsPerInvoicingParty (RBMNG). When creating invoice via this API, the system tries to derive a suggestion value according to the posted goods receipt. If no goods receipt exists for that item, the suggested value will be provided as 0.00. However, the entered NetAmount will still be saved for "AmountAccordingToInvoicingParty", which then triggers an amount variance and thus leads the invoice to be saved as "With errors".

Resolution

Post goods receipt for that item when providing a NetAmount via payload, in order to process a valid invoice via SOAP API.

See Also

Supplier Invoice - Create (B2B, Inbound, Asynchronous)

Keywords

INVOICEREQUEST_IN, invoice with errors, NetAmount, Amount, WRBTR, AmountAccordingToInvoicingParty, RBWWR, goods receipt , KBA , MM-IV-GF-ES , Enterprise Services in Invoice Verification , Problem

Product

SAP S/4HANA Cloud Public Edition all versions