adsense

Sunday, 16 June 2013

BAdi Implementation : Sequence of steps



BAdi Implementation : Sequence of steps
 
1.Find the corresponding BAdi for the SAP transaction
2.Create a custom Implementation for the BAdi
3.From the methods available in the BAdi and select the appropriate method
4.Enter custom code in the method and activate
5.Execute SAP transaction and test if method with custom code is being invoked
  
 
 
To find a BAdi for any SAP transaction do the following:
Click on System->Status.
Double click on the program name. - Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
Make sure the radio button – ‘In main program’ is checked.
A list of all the programs with call to the BAdis will be listed.
The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. 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. (To do this double click on the Interface variable name and go to its definition and see the Interface it refers to).
  
Conclusion:
 
§Business Add-Ins are a new SAP enhancement technique based on ABAP Objects.
§Business Add-Ins are defined through transaction SE18 and implemented through transaction SE19.
§
 

No comments:

Post a Comment