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

MENU EXIT

Former Member
0 Likes
669

HOW DO U FIND FOR WHICH TRANSACTION CODE THE FUNCTION EXIT 'EXIT_SAPLEDITOR_001' USED?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
641

Hi

do one thing

goto SE37 TCODE

enter that EXIT name and UTILITIES -> WHERE-USED-LIST

it will show where that exit is used

5 REPLIES 5
Read only

Former Member
0 Likes
642

Hi

do one thing

goto SE37 TCODE

enter that EXIT name and UTILITIES -> WHERE-USED-LIST

it will show where that exit is used

Read only

Former Member
0 Likes
641

hi,

Take the Include program name , go to TSTC table and find the transaction.

Regards,

Santosh

Read only

Former Member
0 Likes
641

if you have already implemented the exit, goto CMOD and give the function exit name. and find the package. Else goto SMOD and find the package name.

now once u know the package name, goto se80, give the package name. you will find the related transcations / programs.

regards,

Niyaz

Read only

Former Member
0 Likes
641

HI,

Check the tables relation

tstc,

tadir,

modsapt,

modact,

trdir,

tfdir,

enlfdir,

tstct. and code for that...

report zuserexit no standard page heading .

tables :

tstc,

tadir,

modsapt,

modact,

trdir,

tfdir,

enlfdir,

tstct.

*----


*INTERNAL TABLES AND STRUCTURES

*----


*Internal table to hold Repository Objects

data : jtab like tadir occurs 0 with header line.

*----


*Global variables

*----


data : field1(30).

data : v_devclass like tadir-devclass.

*----


*SELECTION-SCREEN

*----


parameters : p_tcode like tstc-tcode obligatory.

*----


*START-OF-SELECTION

*----


START-OF-SELECTION.

*SELECT construct to get data for a given tcode

select single * from tstc where tcode eq p_tcode.

if sy-subrc eq 0.

*SELECT construct to get program names

select single * from tadir where pgmid = 'R3TR'

and object = 'PROG'

and obj_name = tstc-pgmna.

*Moving the dev. class to v_devclass if program is of type 1

move : tadir-devclass to v_devclass.

if sy-subrc ne 0.

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

*If Program type = Function Group

if trdir-subc eq 'F'.

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

*SELECT construct to get Attributes for Function Modules

select single * from enlfdir where funcname = tfdir-funcname.

*SELECT construct to get FM names

select single * from tadir where pgmid = 'R3TR'

and object = 'FUGR'

and obj_name eq enlfdir-area.

*Moving the dev. class to v_devclass if program is of type F

move : tadir-devclass to v_devclass.

endif.

endif.

*SELECT construct to get SAP enhancements for the dev. class

select * from tadir into table jtab

where pgmid = 'R3TR'

and object = 'SMOD'

and devclass = v_devclass.

*SELECT construct to get t code texts

select single * from tstct

where sprsl eq sy-langu

and tcode eq p_tcode.

*REPORT OUTPUT

format color col_positive intensified off.

*Displaying t-code name & text

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

20(20) p_tcode,

45(50) tstct-ttext.

skip.

*List headings

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.

*SELECT construct to get SAP Enhancements - Short Texts

loop at jtab.

select single * from modsapt where sprsl = sy-langu

and name = jtab-obj_name.

format color col_normal intensified off.

*Exit names & texts

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.

*No of Exits

write:/ 'No of Exits:' ,

sy-tfill.

else.

format color col_negative intensified on.

*If no exits found

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

endif.

else.

format color col_negative intensified on.

*If tcode doesn't exist

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

endif.

*Call txn SMOD with selected Exit

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.

Pls. reward if useful....

Read only

Former Member
0 Likes
641

HI,

It is used for se38 t.code.

Functionality

The function module fills the tabe BUFFER with the user-specific

pattern.

Check the userexit SEUED001 in SMOD.

rEFER

https://forums.sdn.sap.com/click.jspa?searchID=10581859&messageID=3794750

Regards

kiran