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

Finding BADI call in source code

Former Member
0 Likes
1,781

Hi!

I have a BADI, I know how to implement and use it.

But if I want to see exactly where it is being called, how do I find it?

Is there an easy way of finding it without doing a full scan search like I have seen a couple of reports posted here on the forum?

regards

Baran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,417

Hello,

Follow the below steps to find out what all BADI's are called when you press any button in any transaction.

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction.

Regs,

Venkat Ramanan N

3 REPLIES 3
Read only

ferry_lianto
Active Contributor
0 Likes
1,417

Hi Baran,

The easyway is to code break point inside the correspondence BADI.

BREAK <SY-UNAME>.

When you execute a SAP transaction/program, it will stop at the above BADI (assuming the correct BADI). Then you can debug step by step to find out where is being called by a program/routine.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,418

Hello,

Follow the below steps to find out what all BADI's are called when you press any button in any transaction.

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction.

Regs,

Venkat Ramanan N

Read only

0 Likes
1,417

thanks , that did the trick!