Application Development 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: 

Material Master-Regarding

Former Member
0 Kudos

How i can identify a BADI/Exit for MM01 Tranasaction? how i can add a new sub-screen for any view in mateial creation?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Searching a BADI/Exit: Go to SE81 and look for all Customer functions related to Dev. class (Package) for the Dev. class of MM01 t-code.

In a raw manner, just go to the program of MM01 and global search for 'call customer' for User exit or 'BADI' for BADI. Note this option is not for accurate search of any Exit.

2 REPLIES 2

Former Member
0 Kudos

Searching a BADI/Exit: Go to SE81 and look for all Customer functions related to Dev. class (Package) for the Dev. class of MM01 t-code.

In a raw manner, just go to the program of MM01 and global search for 'call customer' for User exit or 'BADI' for BADI. Note this option is not for accurate search of any Exit.

Former Member
0 Kudos

Hi Ramnath,

You can find BADI's in different ways...

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).

1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. 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 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. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.

2. Start transaction ST05 (Performance Analysis).

3. 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.

Here you get a list of all the Enhancement BADI’s for the given package MB.

4. Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..

The simplese way for finding BADI is

1. chooes Tcode Program & package for that Tcode.

2. Go to Tcode se18

3. Press F4

4. search by package or by program.

User Exits:

If you want to find any SCREEN EXITS for any transaction, follow the link below there is a program where you copy it and paste it ina se38 report and excute it enter the trasaction and the type of exit you want to know.

http://www.sap-basis-abap.com/abap/how-to-find-a-screen-exit-in-a-given-sap-standard-t-code.htm

If at all you need all the USER EXITS then follow the below link

http://www.erpgenie.com/abap/code/abap26.htm

Hope this will help you.

Regards,

Nitin.