Symptom
The business need is to change ERS data of a Supplier Invoice, such as 'Reference' field, posting date and invoice date.
Environment
SAP S/4HANA Cloud Public Edition (All Versions)
Cause
The standard behavior regarding Reference (In ERS job) and Delivery Note is, that the Delivery Note is taken over to the Reference field on Purchase Order Item level.
Resolution
There is a Cloud BAdI which can be implemented for ERS. See documentation: Business Add-Ins (BAdIs) for Invoice Processing
Name: MRM_ERS_DATA_MODIFY_CE "Change Evaluated Receipt Settlement (ERS) Data"
- In the BAdI it is possible to change the reference fields (SupplierInvoiceIDByInvcgParty)
- However please consider the fact, that there could be several Goods Receipts /Purchase Order items per invoice depending on how ERS is used. If there are several delivery note numbers, it is not possible to put all numbers in the reference field due to length restrictions of 16 characters.
- Furthermore please also note, that the Reference field of the ERS job is semantically different than the Reference field in Change Supplier Invoice – Advanced app (MIR4).
- The one in Change Supplier Invoice – Advanced app (MIR4) in the basic data tab is on Supplier Invoice header level
- The one in the ERS job is the Reference field on Supplier Invoice item level
Additional information:
- In the BAdI it is also possible to change the posting date and invoice date.
Keywords
BAdi, Change, ERS, Data, Supplier Invoice, Reference, Field, Posting Date, Invoice Date, Change Supplier Invoice – Advanced app, MIR4, Header, Item, Level, MRM_ERS_DATA_MODIFY_CE, SupplierInvoiceIDByInvcgParty , KBA , MM-FIO-IV-2CL , Fiori UI for Invoice Verification (Public Cloud) , How To