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

Find User exit

Former Member
0 Likes
638

Hi,

How to get the list of user exit for a particular transaction?

Sulekha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
611

hi,

copy this program:

http://www.erpgenie.com/abap/code/abap26.htm

and execute.

Regarfds,

SUbramanian

Hi,

How to get the list of user exit for a particular transaction?

Sulekha

5 REPLIES 5
Read only

Former Member
0 Likes
612

hi,

copy this program:

http://www.erpgenie.com/abap/code/abap26.htm

and execute.

Regarfds,

SUbramanian

Read only

Former Member
0 Likes
611

Steps

Goto SE93 and give the Transaction name in which you want to add the new fields and get the package name for the Transaction.

Now goto transaction SMOD and give the package name in the F4 help at the Enhancement field.

So now u will get all the exit names for the Package to which your transaction belongs and from these you can choose the Exit you need.

Read only

Former Member
0 Likes
611

Hi Sulekha,

To find the exits of particular transaction.

Goto specific transaction. then in MENU goto System ---> Status...

You get a screen System:Status. In that u can find the program name , transaction etc..

Double click on the transaction then u get another screen in that you can find the Package name.

Goto SE80 and give the package name. Here u can find all the transactions, programs, fields and also exits related to that package.

As i said in System: Status screen you can find Program name.

For example goto VA01 transaction. In System: Status screen of VA01 you can find the program name SAPMV45A.

Double click on the program name . then it takes you to the program. there u can find the USER EXITS.

Best regards,

raam

Read only

Former Member
0 Likes
611

This is what i collected from different Forum Posts:

1) Option 1 : you don't know the name or dont have any info on user exit

************************************************************************************

run T-code : SPRO

SPRO -> Click SAP Reference IMG -> click in the relevant module eg: SD (sales and Distribution) ->System Modifications -> User exits

You can view documentation to understand the purpose of that user exit

It is not that always one can find the user exits under the name "System modifications" but with respect to a module definitely user exits can be found under that module in SPRO

2) Option 2 : You know the name of the user exit

************************************************************************************

Run Tcode : SMOD -> fill in the enhancement name-> click on attributes and then components or directly on components and view the include...if already a code is written in the include,then on double click of include you can see the code...if an existing code is not there and you double click on the include,SAP prompts for a request

3)Option3: You can use the custom code..which was contributed to SDN

*******************************************************************************************

Create a new report program -> copy the code -> activate -> run

on the p_tcode : give the name of the tcode for which you need to find the user exits and execute...a list of exits will be displayed...double click and follow the link

**********************************ABAP CODE :***********************************

report zuserexit no standard page heading.

tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.

tables : tstct.

data : jtab like tadir occurs 0 with header line.

data : field1(30).

data : v_devclass like tadir-devclass.

parameters : p_tcode like tstc-tcode obligatory.

select single * from tstc where tcode eq p_tcode.

if sy-subrc eq 0.

select single * from tadir where pgmid = 'R3TR'

and object = 'PROG'

and obj_name = tstc-pgmna.

move : tadir-devclass to v_devclass.

if sy-subrc ne 0.

select single * from trdir where name = tstc-pgmna.

if trdir-subc eq 'F'.

select single * from tfdir where pname = tstc-pgmna.

select single * from enlfdir where funcname =

tfdir-funcname.

select single * from tadir where pgmid = 'R3TR'

and object = 'FUGR'

and obj_name eq enlfdir-area.

move : tadir-devclass to v_devclass.

endif.

endif.

select * from tadir into table jtab

where pgmid = 'R3TR'

and object = 'SMOD'

and devclass = v_devclass.

select single * from tstct where sprsl eq sy-langu and

tcode eq p_tcode.

format color col_positive intensified off.

write:/(19) 'Transaction Code - ',

20(20) p_tcode,

45(50) tstct-ttext.

skip.

if not jtab[] is initial.

write:/(95) sy-uline.

format color col_heading intensified on.

write:/1 sy-vline,

2 'Exit Name',

21 sy-vline ,

22 'Description',

95 sy-vline.

write:/(95) sy-uline.

loop at jtab.

select single * from modsapt

where sprsl = sy-langu and

name = jtab-obj_name.

format color col_normal intensified off.

write:/1 sy-vline,

2 jtab-obj_name hotspot on,

21 sy-vline ,

22 modsapt-modtext,

95 sy-vline.

endloop.

write:/(95) sy-uline.

describe table jtab.

skip.

format color col_total intensified on.

write:/ 'No of Exits:' , sy-tfill.

else.

format color col_negative intensified on.

write:/(95) 'No User Exit exists'.

endif.

else.

format color col_negative intensified on.

write:/(95) 'Transaction Code Does Not Exist'.

endif.

at line-selection.

get cursor field field1.

check field1(4) eq 'JTAB'.

set parameter id 'MON' field sy-lisel+1(10).

call transaction 'SMOD' and skip first screen.

Read only

Former Member
0 Likes
611

Hi,

Please use the following link which contains a program to find out the user exits of particular transaction.

http://saptechnical.com/Tutorials/ExitsBADIs/FindUserExitswithTCode.htm

Thanks,

Naveen Kumar.