How To Find BADI for Any T-code ?



This article covers various ways of finding BADI for any tcode or a program.

Method 1:

1) Get the program name of the transaction using SE93 t-code (Lets say Sales Order: VA01)


2) Click on program and go to attributes to get the package name of the program.

3) Goto transaction SE84 >> Enhancements >> expand Business Add-ins and double click on Definitions


4) Enter package name and execute to get the list of BADIs related to that transaction.


Method 2 (To find Classic Badi):

1) Goto SE24 and enter class CL_EXITHANDLER.

2) Put breakpoint in GET_INSTANCE method


3) Execute the transaction and perform the activity in transaction.


4) Before every BADI call, the GET_INSTANCE method gets triggered.



5) Click on exit_name to know the BADI name.

Method 3 (To find New or Kernel BADI):

1) While executing any transaction enter debugging mode by using /h command and Create breakpoint on statement CALL BADI or GET BADI to get the BADI name 

(or)

2) Goto SE18 tcode and click F4 on Badi name > New Selection

3) Enter package name and click OK to get list of all BADIs for that package.


Method 4:

1) Using function module SXV_GET_CLIF_BY_NAME.

- Set breakpoint inside the FM SXV_GET_CLIF_BY_NAME and execute the transaction to know list of BADIs getting triggered in that process.



Post a Comment

Previous Post Next Post