SAP Knowledge Base Article - Public

3383434 - BAdI for changing ERS Data in Supplier Invoice


The business need is to change ERS data of a Supplier Invoice, such as 'Reference' field, posting date and invoice date.


SAP S/4Hana Cloud (All Versions)


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.


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.

Additional information:

  • In the BAdI it is also possible to change the posting date and invoice date.



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 , Fiori UI for Invoice Verification , How To


SAP S/4HANA Cloud 2202 ; SAP S/4HANA Cloud 2208 ; SAP S/4HANA Cloud 2302 ; SAP S/4HANA Cloud 2308 ; SAP S/4HANA Cloud 2402 ; SAP S/4HANA Cloud 2408