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

User Exit

Former Member
0 Likes
819

Dear all

Is there any User_exit available to modify MM01 screen. Also how to find that particular user_exit. Please give me a hint.

Thanks....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
787

Hi,

MGA00001 Material Master (Industry): Checks and Enhancements

MGA00002 Material Master (Industry): Number Assignment

MGA00003 Material Master (Industry and Retail): Number Display

chk it out.

7 REPLIES 7
Read only

Former Member
0 Likes
787

Hi,

Execute the code enclosed in the below link to find all the user exits associated in a transaction..

http://www.sap-img.com/ab038.htm

Regards,

Santosh

Read only

Former Member
0 Likes
787

hi,

below is the sample code to find the exits for a particular t-code

just copy the code and run it in the selection screen give the transaction name eg:me22n etc

and click on execute to find the enhancements

in tcode smod give ths enhancement name or double click on it and click on components tab to see the exits

here is the code

&----


*& Report Z_SJK_Y_FIND_USER_EXITS *

*& *

&----


*& *

*& *

&----


REPORT Z_SJK_Y_FIND_USER_EXITS no standard page heading .

*

  • Finding the user-exits of a SAP transaction code

*

  • Enter the transaction code in which you are looking for the user-exit

  • and it will list you the list of user-exits in the transaction code.

  • Also a drill down is possible which will help you to branch to SMOD.

*

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.

Hope this helps, Do reward.

Read only

Former Member
0 Likes
788

Hi,

MGA00001 Material Master (Industry): Checks and Enhancements

MGA00002 Material Master (Industry): Number Assignment

MGA00003 Material Master (Industry and Retail): Number Display

chk it out.

Read only

Former Member
0 Likes
787

hai Scorpio,

I am Genaralising This For U.

It Is ver EASY Procees.

Just Go To SE84

Give The PRogram Name Or PAckage name In Which VL02N is present.

Then Click On Display.

Then Click On Enhancements.

Then U will Get USer Exits Aswell As BADI 's

IF Found helpful Reward.

Regards

Eshwar

Read only

Former Member
0 Likes
787

Hi

STEPS TO FIND OUT USER EXIT

1)got TCODE - SE93

2) ENETR MM01

3)CLICK ON DISPLAY

4)DOUBLE CLICK ON THE PROGRAM NAME

5)GOTO->ATTRIBUTES

6)TAKE THE PACKAGE NAME (MGA)

SMOD

1)GOTO TCODE SMOD

2)PRESS F4

3) SEARCH FOR THE USER EXIT AVAILABLE FOR THAT PACKAGE (MGA)

4)IT WILL DISPLAY LIST OF USER EXIT AVAILABLE FOR THAT TCOD E

CMOD

1) ENTER THE TCODE CMOD

2)ENTER SOME PROJECT NAME AND CLICK ON CREATE

3) CLICK ON ENHANCEMENT

USER EXITS AVAILABLE FOR MMO1

MGA00001 Material Master (Industry): Checks and Enhancements

MGA00002 Material Master (Industry): Number Assignment

MGA00003 Material Master (Industry and Retail): Number Display

Read only

Former Member
0 Likes
787

To find a particular user exit

Tcode cmod> give a project name or create your new project> click on enhancement asignment-->in enhancement column give package name (for mm01 wtite mg) > in next dialog box in package box give the sam ename MG'>It will give you list of all enhancements present in that package

Read only

Former Member
0 Likes
787

thanks to all