Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI

Former Member
0 Likes
570

hi all,

As i am new can any one tell me how to find out the exact badi for the given transaction

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
539

<copy&paste_and_everything_else_removed_by_moderator>

Edited by: Julius Bussche on Sep 3, 2008 9:07 AM

5 REPLIES 5
Read only

Former Member
0 Likes
540

<copy&paste_and_everything_else_removed_by_moderator>

Edited by: Julius Bussche on Sep 3, 2008 9:07 AM

Read only

Former Member
0 Likes
539

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 BADI’s 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.

Read only

Former Member
0 Likes
539

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

Read only

Former Member
0 Likes
539

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

Read only

Former Member
0 Likes
539

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.