Definition of a Classic BAdI
Use
An application developer who wishes to have a Business Add-In in a particular program defines the interface for an enhancement in the BAdI Builder. In the following step, he or she programs the interface call in the application program at the appropriate place. Customers can then select the add-in and implement it according to their needs.
Procedure
- From the SAP menu, choose Tools → ABAP Workbench → Utilities → Business Add-Ins (transaction SE18).
- Enter a name with a maximum of 20 characters for the Business Add-In.

- Choose Create.
- On the following screen, enter a short text as the description for the BAdI.
Option: Function: If the customer selects this option for an Add-In, he or she has no option for creating his or her own implementations for this BAdI or for using them. In the input help, Business Add-Ins with this flag are not displayed. For more information on the checkbox Within SAP, refer to the section Definition of a BAdI in the Enterprise Core.
In this example, we are dealing with a simple enhancement. None of the above options is selected.
- Choose the Interfacetab. The interface name is generated automatically and can be changed here.

Under the FCodes tab, you can create Menu Enhancements, and under the Subscreens tab you can create Screen Enhancements.
- Double-click on the interface name field. The system branches to the Class Builder.
- Confirm that you want to save the entries you have made. Assign a package to the Business Add-In.
- Use the Class Builder to assign a method to the interface.

- Now define a parameter with the following attributes:

- Save and activate your entries. Use the pushbutton Back to navigate back to the Business Add-In definition.
- Save your entries and use the Documentation pushbutton to create a description for your new Business Add-In. Remember that this documentation is very important for users to be able to understand the purpose behind the Add-In.
- Choose Goto → Default Coding / Sample Coding if you with to create default coding and/ or sample coding for the Business Add-In. The default implementation is executed only if no other active implementation is available. This applies also to filter-dependent Business Add-Ins.
For more information: