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 a program associated with Userexit

Former Member
0 Likes
1,819

Dear Gurus,

I would like to know, how can i get the program name associated with a useexit.

for example, if we know only the userexit "USEREXIT_CHECK_VBAP ", than how can I get the name of Program associated it with so that we can check the same in ABAP Editor (Se38)

Wishes,

Abhishek

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,762

Abhisek,

I dont think we can use where used list with only form name. By seeing your form 'USEREXIT_CHECK_VBAP ', it may be used in sales order (va01) program.

I just searched in va01 main program for string 'USEREXIT_CHECK_VBAP '.

I found it is used in include MV45AFZB.

--

Reddy

Abhisek,

I dont think we can use where used list with only form name. By seeing your form 'USEREXIT_CHECK_VBAP ', it may be used in sales order (va01) program.

I just searched in va01 main program for string 'USEREXIT_CHECK_VBAP '.

I found it is used in include MV45AFZB.

--

Reddy

14 REPLIES 14
Read only

Former Member
0 Likes
1,762

goto se37 and put the name of the usereixt there, and then use the 'where-used' fucntionality

Read only

0 Likes
1,762

I used the same userexit "USEREXIT_CHECK_VBAP" in SE37 and used the 'where-used' fucntionality, but I it said function module "USEREXIT_CHECK_VBAP" does not exist.

so i think it wl not work this way....

any other solution pls.

Abhi

Read only

0 Likes
1,762

HI Abhishek,

You can write a BREAK-POINT statement in the user-exit and check the main program name in the debuger.

Regards,

Satyam

Read only

0 Likes
1,762

Hi Satyam,

kindly provide me the detailed information for BREAK-POINT statement for this context.

Wishes,

Abhishek

Read only

0 Likes
1,762

HI Abhishek,

You can write a BREAK-POINT statement in your User-Exit and activate it. After you hit your tcode the system will go into the debugger mode and after you press F5 that takes you out of the User-Exit. Here you can see what is the program where this CALL Custome_exit function is called exactly.

HOpe this is wat you need.

Regards,

Satyam

Read only

0 Likes
1,762

Satyam,

He was talking about user exit (FORM ... ENDFORM), Not customer exit.

--

Reddy

Read only

0 Likes
1,762

Hi All ,

I have gone thru many documents related to the differences in Userexits and Customer Exit. But still i am not clear about the differences .

1.User Exits called in the Sub-Routines , if thats the case EXIT_SAPLMEWR_001 , this User Exit is called using the CALL CUSTOMER FUNCTION '001'. Then why do we say that the User exits are called between FORM AND END FORM.

2.To add the custome code in the User Exit we require Access Key , but with the exit EXIT_SAPLMEWR_001 i can add my own code without the access key.

3.Many says that i can find the user exit thru CMOD , but USEREXIT are included inthe INCLUDES . Then how can i find the user exits.

Please clarify these points. And appreciate if explained with examples.

Thanks,

Subash.D

Read only

Former Member
0 Likes
1,763

Abhisek,

I dont think we can use where used list with only form name. By seeing your form 'USEREXIT_CHECK_VBAP ', it may be used in sales order (va01) program.

I just searched in va01 main program for string 'USEREXIT_CHECK_VBAP '.

I found it is used in include MV45AFZB.

--

Reddy

Read only

0 Likes
1,762

Hi Reddy,

this was your experience so that you get that the Form "USEREXIT_CHECK_VBAP" in include present in VA01 main program.

but those who don't have these experience, how they will be able to get the include name of a form like "USEREXIT_CHECK_VBAP".

secondly, i checked the main program of VA01. it is "SAPMV45A", thn my question is how you have achieved on the include "MV45AFZB" having the same form "USEREXIT_CHECK_VBAP". there are so many includes present in the SAPMV45A.

kindly provide a explanation.

Wishes,

Abhishek

Read only

0 Likes
1,762

Hi Abhisek,

search in the main program source code for string 'USEREXIT_CHECK_VBAP', you will get that include.

I dont think that we can get the program name by FORM name.

--

Reddy

Read only

0 Likes
1,762

Hi Reddy,

yes this is done. but still the main concern is, in order to fetch these details the user must be aware of the Program Name of the so called T-code VA01.

but what, if the user is not aware of the t-code itself. as here in your case, you were aware of the tcode VA01 associated with this, by your experience.

Wishes,

Abhishek

Read only

0 Likes
1,762

Abhisek,

Go to trasaction SPRO -> click on SAP reference IMG --> go to Sales and distrubution -->system modifications --> user exits --> click on any node documentation (not execution button!)

you will get the list of user exits for that activity. then check the Form name whether thats listed in any of them.

--

Reddy

Read only

0 Likes
1,762

Dear Reddy,

this is what you are saying similar to search a needle in bunch of dried grass. i am looking for a simple and accurate solution if you know..

Abhi

Read only

0 Likes
1,762

Yes you are right. solution is beeing fetched as per the requirement

Can you please tell me one business scenario where they will give a user exit to implement without letting you know the trasaction!

--

Reddy