SAP Knowledge Base Article - Public

3236661 - Error message M8186 "Balance is not equal to zero" happens when using API to create supplier invoice

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

  1. Maintain correct InvoiceGrossAmount and SupplierInvoiceItemAmount value in PurchaseOrderReference node.
  2. 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

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions