Symptom
Error message M8186 "Balance is not equal to zero" happens when using API Supplier Invoice - Create (A2A, Inbound, Asynchronous) to create supplier invoice with purchase order reference.
Environment
S/4HANA Cloud system all version
Reproducing the Issue
- Maintain correct InvoiceGrossAmount and SupplierInvoiceItemAmount value in PurchaseOrderReference node.
- Post supplier invoice using SOAP API SupplierInvoiceS4Request_In.
Cause
The purchase order reference item contains a value for the amount, but it does not contain a value for the quantity. The system needs both quantity and amount to post a supplier invoice with purchase order reference.
Resolution
Please maintain the purchase order quantity field QuantityInPurchaseOrderUnit in the payload to resolve this error.
Keywords
SupplierInvoiceS4Request_In, SAP_COM_0240, M8186, Balance is not equal to zero, QuantityInPurchaseOrderUnit, PurchaseOrderReference , KBA , MM-FIO-IV , Fiori UI for Invoice Verification , Problem