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: 

BADI Info

Former Member
0 Kudos

Hi Friends,

Could you plesae tell me how to find a BADI associated with a particular transaction? Here i would like to find a Custom BADI for the transaction CRMD_BUS2000111(Opportunity Transaction in SAP CRM)

Thanks in Advance

Regards,

Vijay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Open the program and search the string EXITHANDLER IT WILL GIVE YOU THE BADI name then you have to use SE18 t-code and SE19 to implement the BADI or you can find out the BADI through SPRO t-code while clicking on specific module for e.g you want to fina BADI for SD module then you have click on SD module in SPRO and then click on system modification where you will find all the BADI/USER EXIT.

Give the point if it full fill your requirmrnet....

4 REPLIES 4

Former Member
0 Kudos

Open the program and search the string EXITHANDLER IT WILL GIVE YOU THE BADI name then you have to use SE18 t-code and SE19 to implement the BADI or you can find out the BADI through SPRO t-code while clicking on specific module for e.g you want to fina BADI for SD module then you have click on SD module in SPRO and then click on system modification where you will find all the BADI/USER EXIT.

Give the point if it full fill your requirmrnet....

bpawanchand
Active Contributor
0 Kudos

Hi

1.Execute ST05.

2.Deselect SQL trace and Select Table Buffer trace.

3.Click Activate Trace With Filter.

4. Run the transaction for which you wan to find the BADi's in a separate session.I mean just make some entries and save the test data.

5.Come back to the ST05 t-code and now click DEACTIVATE TRACE.

6.Click DISPLAY TRACE.

7.In the Objects field of the newly displayed screen click on the extension arrow and enter V_EXT_IMP and V_EXT_ACT in single value and press enter.

8.You can see all the BAdI name is after the IF_EX_.

for futher information check this blog

Regards

pavan

Former Member
0 Kudos

Hello,

creation badi we used the tcode SE18 and SE19.

and find BADI

For BADI's,

1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE

keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'

then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.

2)Goto to tcode->status->program name->double click on that program will display's

then press crtl+F then cl_exithandler

Thank u,

saimedha

Former Member
0 Kudos

Hello,

To find a BAdi in any transaction,

First go to SE24, in the object type name give CL_EXITHANDLER and open it in display mode.

Various Methods will be available double click on to GET INSTANCE method.

You will be taken to CALL METHOD cl_exithandler=>get_class_name_by_interface area.

Set a breakpoint above this method call.

Now,execute your standard transaction normally from the command prompt.

The transaction will automatically go into debugging mode and while debugging check the badi's in the by typing EXIT_NAME below the debugging area and press F5 with each step.

For every screen this EXIT_NAME will give you BADI's involved with every screen being executed.

For whichever screen's functionality you want you can get the BADI of it by this .

Then you have to find out the methods present in that particular BADI by which with your coding in that method's body you can enhance that particular programs functionality.

After getting the BAdi's name thru se18 you can see metthods present in each badi.

Now, After getting the BADI's name you have to implement that badi, which will be done thru se19.

Give an implementation Class's name with each BADI's name which you want to implement in Create Implementation Area.

After that it will show you the methods present in that badi , into each method's body you can set a breakpoint or can call function module popup_to_inform to see where this method is actually getting called.

In appropriate method's body found you can write your code to add your functionality.

Hope this helps you.

Thanks Mansi