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: 

Table Relation : User Exit/BADI and Programs

Former Member
0 Kudos

Hi,

Is there any standard table that can give the names of Userexits and BADI s implemented in a particular program. I found two table ENHINCINX and ENHOBJ in which the details of enhancement spot, implementations and Programs. But i couldn't find a way to get relation between BADI / Exits and Programs. It would be helpful if you share your knowlege in the same.

Thanks and Regards,

Alex

4 REPLIES 4

hiriyappa_myageri
Participant
0 Kudos

Hi Alex,

There is Standard Transaction that helps u find the BAdI and Exits for Particular Transaction.

That is 'SMOD' .

There U can Give Your Standard Program for Example For 'XD02' the program name is SAPMF02D.

Now Follow these Steps Enter 'SMOD' Trasaction in Command Filed.

Press display here You Will Get USer exits names or Customer Exits names.

These are the Tables having the BADI Names and their Desription.

SXS_ATTR->Exit: Definition side: Attributes for an enhancement

SXS_ATTRT->Exit: Definition side: Attributes, Text table

SXS_FCODE->Exit: Definition side: Component function codes

SXS_FCODET->Exit, definition side: component function codes, text table

SXS_INTER->Exit: Definition side: Interfaces.

SXS_MLCO->Exit: Definition side: Interfaces

Thanks and Regards,

Hiriz..

Former Member
0 Kudos

Dear for enhancement we have two standard Tcode.

SMOD and CMOD.

SMOD : this is used when you want to search some Enhancement for a Screen.

CMOD: THis is used when you want to make create some enhancement.

So for you SMOD is useful. Try to open that and explore it.

You can find more help on Google by Searching " SMOD in ABAP SAP "  . We can provide you exact details also. but if we do that then for next enhancement you will  start a new thread, so try to explore more in the SMOD so next time you can give reply to someone.

former_member250987
Participant
0 Kudos

Hi Alex,

In order to find BADIs or exits follow following sequence.

STEPS

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at line "CALL METHOD cl_exithandler=>get_class_name_by_interfac

4) Execute SAP standard transaction
5) now  the debugger will on and Check the values of variable 'exit_name' by pressing F6 OR F7.

6.)You will get a list of badis

7.)to know which badi suits your requirement from the list of BADIs found go to each BADI implementation and keep break point in each BADI and execute your transaction .

for example there are 3 screens in your tcode for which you want to know badi for 2nd screen

then when second screen arrived in your tcode .now automatically debugger ill on and it ill take you to appropriate BADI which is releated to that screen as we already kept breakpoint in that BADI.

Hope it helps you,

Siva

 


former_member192971
Participant
0 Kudos

Hi Alex,

Basically we have 3 ways to search for a Exit.

Using Call Customer Function.

Using SMOD and CMOD .

Using SE84, SE24.

And after Finding the exact exit and you can know the table names using where-used list.

Steps using SE24 :-

*  Goto SE24

* Display class cl_exithandler

* Double click on the method GET_INSTANCE.

* Put a break point at line "CALL METHOD cl_exithandler=>get_class_name_by_interfac

* Execute any Transaction you want to enhance
* Now  the debugger will on and Check the values of variable 'exit_name' by pressing F6 OR F7.

* You will get a list of badis

* To know which badi suits your requirement from the list of BADIs found , Go to each BADI implementation and keep break point in each BADI and execute your transaction .

Thanks,

Uday.