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: 

How to find a BADI

Former Member

Hi,

I am new to ABAP, Please let me how to find a badi for one screen.

1 ACCEPTED SOLUTION

Former Member

you can find all the Badi's and User Exits by following this steps also...

suppose for Transaction VA01.

go to se93 provide VA01 and click display,there you will get the package VA.

Now go to SE84 > ENhancements >Bisuness Add-ins >Definitons >Package as VA >F8

then you will get set of BADI's related to that Transaction

9 REPLIES 9

former_member555112
Active Contributor
0 Kudos

Hi,

To find out the BADIs related to a particualr business process got to IMG and under system modifications search for the business add ins via transaction SPRO.

Regards,

Ankur Parab

Former Member
0 Kudos

Hi,

<content removed by moderator as it was just a copy/paste of [someone else's work|http://wiki.sdn.sap.com/wiki/display/ABAP/FindaBADIina+minute] without giving credit. Any points have been unassigned.>

regards

Rajesh V

Edited by: Mike Pokraka on Aug 29, 2009 11:39 PM

Former Member
0 Kudos

use this function module SXV_GET_CLIF_BY_NAME

go to source code of this function module and put break point at CALL FUNCTION 'SXV_ADD_PREFIX'

when your are excuting your screen,this break point will trigger and you can able to find all BADI's by checking with parameter NAME

Former Member
0 Kudos

Hi,

Go to transaction SE24

Provide the class name CL_EXITHANDLER

Place a break point at sy-subrc


CALL METHOD cl_exithandler=>get_class_name_by_interface
    EXPORTING
      instance                      = instance
    IMPORTING
      class_name                    = class_name
    CHANGING
      exit_name                     = exit_name
    EXCEPTIONS
      no_reference                  = 1
      no_interface_reference        = 2
      no_exit_interface             = 3
      data_incons_in_exit_managem   = 4
      class_not_implement_interface = 5
      OTHERS                        = 6.
  CASE sy-subrc.

The exit name will give you all the BAdis. Check which suits your requirement and also for which implementation can be done since it shows all SAP internal BAdi's as well

Former Member
0 Kudos

to find the user exits & Badi's for the T-code..

go to table TSTC>enter T-code and execute> get the Program for the t-code..

and go to-se38-->get the package attached to the t-code..

next go to t-code Se15>expand the enhacement tab>enter package under userexit and

execute you will get the list of exits

available...

-->enter package under Badi's tab and

execute you will get the list of Badi's

available...

All the User exits are stored in Table MODSAP..

Former Member

you can find all the Badi's and User Exits by following this steps also...

suppose for Transaction VA01.

go to se93 provide VA01 and click display,there you will get the package VA.

Now go to SE84 > ENhancements >Bisuness Add-ins >Definitons >Package as VA >F8

then you will get set of BADI's related to that Transaction

Former Member
0 Kudos

Hi Venkat,

These steps should enable you to find any BADI related to any transaction.

1) Go to the transaction SE37 to find your function module.

2) Locate the function SXV_GET_CLIF_BY_NAME.

3) Put a breakpoint before call function 'SXV_ADD_PREFIX'.

Break-point.

call function 'SXV_ADD_PREFIX'

exporting

name = name

prefix = prefix

importing

new_name = clif.

endfunction.

When you execute the screen, the break-point will trigger and you will be able to find the BADI name.

Hope this is helpful.

Regards,

Nikhat.

Former Member
0 Kudos

Solution : - 1) Go to the transaction SE37 to find your function module.

2) Locate the function SXV_GET_CLIF_BY_NAME.

3) Put a breakpoint there.

4) Now open a new session.

5) Go to your transaction.

6) At that time, it will stop this function.

7) Double click on the function field EXIT_NAME.

8) That will give you name of the BADI that is provided in your transaction.

Hope this helps in finding the right BADI for ur Tcode.

re ward if useful

0 Kudos

very useful.