Implement a Field Control Using a Business Add-in (`BAdI`)
Hide Prices for a Specified User Using a Business Add-in (`BAdI`) for a Purchase Requisition
You will learn
- How to logon to SAP S/4HANA Cloud ABAP Environment
- How to create an ABAP package
- How to find relevant existing
BAdI
enhancement spots for your line of business, in this case Materials-Management-Purchasing - How to hide a field, Price, by changing the status of a field control
Prerequisites
- You have a license for SAP S/4HANA Cloud and have a developer user in this system
- You have installed SAP ABAP Development Tools (ADT), latest version, and have created an ABAP Cloud project for your SAP S/4HANA Cloud System in it
- You are familiar with the concept of extensions to the SAP standard and with
BAdIs
in particular. If not, see the More Information section at the end of this tutorial
The administrator receives an welcome e-mail after provisioning. This e-mail includes the system URL. By removing
/ui
you can log into the SAP S/4HANA Cloud ABAP Environment system. Further information can be found Developer Extensibility: Connect to the ABAP System.
A Business Add-In (BAdI
) enables you to implement enhancements to standard SAP applications without modifying the original code.
In this case, the BAdI
is implemented in the SAP Fiori app as follows:
- Use an existing enhancement spot
MM_PUR_S4_PR_FLDCNTRL_SIMPLE
, with an existingBADI
definitionMM_PUR_S4_PR_FLDCNTRL_SIMPLE
- Create a container ( enhancement implementation ) in the enhancement spot
- Create a
BADI
implementation for theBADI
definition.

Throughout this tutorial, objects name include a prefix, such as xx
or suffix, such as XXX
. Always replace this with your group number or initials.