SAP Knowledge Base Article - Public

3762662 - Credit Memo via api_supplierinvoice_process_srv fails with error "reverse qty greater than qty credited so far"

Symptom

When doing credit memo through API "API_SUPPLIERINVOICE_PROCESS_SRV" faces error  "Reverse qty greater than qty credited so far".

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create a supplier return scenario (for example, create purchase order, post goods movements, create a return purchase order, and post the return goods movement).
  2. Call API API_SUPPLIERINVOICE_PROCESS_SRV to post a supplier credit memo for the return.
  3. Submit the request and observe the error: "Reverse qty greater than qty credited so far".

Cause

The API payload for creating the supplier credit memo did not include the required header indicator "SupplierInvoiceIsCreditMemo": "s", therefore the document was not treated as a credit memo and the quantity validation failed.

Resolution

In the API_SUPPLIERINVOICE_PROCESS_SRV payload, add the header field SupplierInvoiceIsCreditMemo with value "s" (for example, "SupplierInvoiceIsCreditMemo": "s").

Resend the request to create the supplier credit memo using the corrected payload.

Verify the credit memo is created successfully without the "Reverse qty greater than qty credited so far" error.

See Also

Keywords

API_SUPPLIERINVOICE_PROCESS_SRV, SupplierInvoiceIsCreditMemo, credit memo, supplier invoice, invoice verification, reverse qty greater than qty credited so far, OData API, return purchase order, goods return, quantity credited, error message, posting credit memo, S/4HANA Cloud, procurement, invoice processing , KBA , MM-FIO-IV-2CL , Fiori UI for Invoice Verification (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions