Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
From the methods available in the BAdI select the appropriate method
Execute SAP transaction and test if method with custom code is being invoked
Finding BADI
1. Using SPRO
– Click on System->Status
– A list of all the programs with call to the BAdIs will be listed.
– The changing parameter ‘INSTANCE’ will have the interface assigned to it.
If the BAdI name is not specified in the CL_EXITHANDLER=>GET_INSTANCE method call, you can find
out the BAdI name by removing the prefix IF_EX_ from the interface name
Place your cursor in the Definitions field and hit F4 for help
Alternatively you could go to the first screen of SE18 and hit F4 in the definition name field to get the same
result
In SE81 Drill down through the component hierarchy and select a component. All BAdI’s related to this
application area will be displayed in the tree
Go to your transaction.
That will give you name of the BADI that is provided in your transaction.
Creating an implementation
– Choose ABAP Workbench -> Utilities -> Business Add-Ins (transaction SE19) from the SAP menu
Enter the name of the BAdI you want to create an implementation for.
− Choose Create Impl.
Enter a name for the implementation.
In the interface tab you will find the Interface name and a list of methods included in the BAdI Interface
Double clicking on Interface name you will find a list of Methods. Select a line (method) and hit
Parameters. (If associated type is also an Interface then select the Parameter and double click on Associated
Type, select a method and hit Parameter again).
Double clicking on any of the methods will take you into the Class Builder where you can enter custom
code for the corresponding method, using the parameters you found with the above procedure.