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

Former Member
0 Likes
910

Hello Friends,

I am working on Purchase Order creation process in SAP ECC 6.0. To enhance the process I have used BAdi 'ME_PROCESS_PO_CUST'. But I am strugling to finding the exact point from where its being called.

Please help me identifying the calling point.

Regards,

Shabbar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
869

Hi Ali,

Please check main program SAPLMEPOBADI.

You can place break point in one of the function modules (select the pone that you are delaing with) in include program LMEPOBADIUXX.

Hope this will help.

Regards,

Ferry Lianto

8 REPLIES 8
Read only

Former Member
0 Likes
869

Activate your implementation, put in the code break-point or break xxxx, where xxxx stands for your user name and keep playing with PO transaction to figure out where it stops.

Read only

Former Member
0 Likes
869

Hi,

Thanks for the prompt reponse. I already have tried this. It certainly stops at break point but I want to know the exact calling point from where this BAdi is being called.

Hope I am able to make myself clear.

Regards,

Shabbar

Read only

Former Member
0 Likes
869

Hi Ali,

go to se18 transaction.

GIve the badi name.

Click on the where-used-list.Ctrlshiftf3)

and continue(Press enter on the 2 pop ups).

YOu can see where is the point of call in the main program.

Regards,

ravi

Read only

0 Likes
869

Hi Ravi,

When I search BAdi it takes me to its implementation which I myself did. And if I search Z<BAdi> (implementation) it shows nothing.

Am I missing something or going on wrong track?

Regards,

Shabbar

Read only

0 Likes
869

HI Ali,

In that case there must be some dynamic calls.

Now that you are getting the control to your badi, in debug mode, press the CALLS button in debug screen.

YOu would get the program which called this method.

Regards,

ravi

Read only

Former Member
0 Likes
870

Hi Ali,

Please check main program SAPLMEPOBADI.

You can place break point in one of the function modules (select the pone that you are delaing with) in include program LMEPOBADIUXX.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
869

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.

Regards,

Prakash.

Read only

Former Member
0 Likes
869

Hi Ali,

Check this post

Regards,

Eric