‎2008 Jun 16 12:37 PM
hi all,
As i am new can any one tell me how to find out the exact badi for the given transaction
Regards
‎2008 Jun 16 12:40 PM
<copy&paste_and_everything_else_removed_by_moderator>
Edited by: Julius Bussche on Sep 3, 2008 9:07 AM
‎2008 Jun 16 12:40 PM
<copy&paste_and_everything_else_removed_by_moderator>
Edited by: Julius Bussche on Sep 3, 2008 9:07 AM
‎2008 Jun 16 12:40 PM
Hi,
There are multiple ways of searching for BADI.
Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
Finding BADI Using SQL Trace (TCODE-ST05).
Finding BADI Using Repository Information System (TCODE- SE84).
Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
Go to the Transaction, for which we want to find the BADI,
Get the Program Name of Corresponding Transaction.
(Click on System->Status. Double Click on 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.
Finding BADI Using SQL Trace (TCODE-ST05).
/people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
Finding BADI Using Repository Information System (TCODE- SE84).
Go to Maintain Transaction (TCODE- SE93).
Enter the Transaction VD02 for which you want to find BADI.
Click on the Display push buttons.
Get the Package Name. (Package VS in this case)
Go to TCode: SE84->Enhancements->Business Add-inns->Definition
Enter the Package Name and Execute.
Regards.
‎2008 Jun 16 12:42 PM
Hi,
For the given transaction goto> tcode se93give the tcode and execute . you will get the development class there.
goto tcode se84>ENVIR>Exit techniques>Bussiness addins> give the development class and execute.
regards,
Sharath
‎2008 Jun 16 12:43 PM
Hi,
1.
Go to SE93 and give ur T.Code=>display=>Get the Package
2.
go to SE80=>palce ur PAckage here under PAckage=>Enter
Check for Enhancements or BADI in the navigation Tree.
3.
And also u can get using T.code SE18 by searching through proper Application area
Thanks
Vikranth
‎2008 Jun 16 12:47 PM
Hi ,
I can give you the techniques to findout the badi by debugging.
This is the best possible core way.
Go to SE24. Put class name as CL_EXITHANDLER .
In that go to methods tab . Double click on the method GET_INSTANCE.
By forward navigation you will lead to the source code of this method.
In the source code pu breakpoint on the
CALL METHOD cl_exithandler=>get_class_name_by_interface.
This method has a parameter EXIT_NAME which will contain the name of BADI at runtime.
After putting breakpoint go to your transaction and execute it .
Every time you will go into that place where you have put the break-point.
So the point where you want to trigger the BADI check the name of the BADI in the variable EXIT_NAME at that moment,
and note the name of the badi . Now through SE18 and SE19 you can implement your BADI.
I hope this will help you.If any issue you can come back to me.