‎2006 Sep 08 3:21 PM
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
‎2006 Sep 08 3:37 PM
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
‎2006 Sep 08 3:27 PM
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
‎2006 Sep 08 3:37 PM
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
‎2006 Sep 08 3:43 PM