Symptom
- When a credit memo is created with the same Company Code, Reference, and Invoice Date as an already posted supplier invoice, the system allows posting without any duplicate warning or error.
- No duplicate invoice check occurs between a supplier invoice and a credit memo.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- set the "Check Double Invoice" in the supplier master data and make the necessary configuration for duplicate invoice check.
- Post a supplier invoice.
- Open the Create Supplier Invoice app.
- Create a Credit Memo using the same Company Code, Reference, and Invoice Date as the posted supplier invoice (and the same invoicing party).
- Post the credit memo.
- Observe that no duplicate warning or error is shown and the document is posted.
Cause
Standard system behavior: the duplicate invoice check compares documents of the same type only (invoice-to-invoice or credit memo-to-credit memo). It does not compare a supplier invoice with a credit memo.
Resolution
If business requirements demand preventing a credit memo when a matching supplier invoice exists, implement a custom validation using BAdI MRM_CHECK_INVOICE_CLOUD to perform a cross-document-type duplicate check.
Keywords
duplicate invoice check, credit memo, supplier invoice, duplicate validation, no warning, no error, create supplier invoice app, invoice verification, badi mrm_check_invoice_cloud, s/4hana cloud public edition, duplicate prevention, reference field, invoice date, company code, fiori invoice posting , KBA , MM-FIO-IV-2CL , Fiori UI for Invoice Verification (Public Cloud) , Problem
SAP Knowledge Base Article - Public