Application Development 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: 

User Exit

Vijay
Active Contributor
0 Kudos

Hi All,

Can anybody tell me the userexit for transaction code LX27.

Thank You.

3 REPLIES 3

Former Member
0 Kudos

It depends what you want to do but have a look at the following enhancements - they all have components that are used by LX27

MWM2S001 Exit to Determine 2-Step Picking Characteristic

MWMBAP01 Enhancement for BAPI WarehouseTransOrder.GetDetail

MWMBAP02 Enhancement for BAPI WarehouseStock.GetDetail

MWMD0001 Transfer order print via RLVSDR40

MWMD0002 Transfer order print as multiple process with RLKOMM40

MWMIDI07 Enhancement for Output WMPIHU (Create Pick-HU) Inbound

MWMIDO11 Enhancement for message WMTORD: TO with several items

MWMIDO12 Enhancement for Output WMPIHU (Pick-HUs) Outbound

MWMIDO13 Extension for WMMBXY (subsequent tasks after goods movement)

MWMPP001 Enhancement WM/PP Interface (automatic TR generation)

MWMRF001 RF: Influence Display of material description

MWMRFXXX ENHANCEMENT FOR USER SCREENS (LOGICAL SCREEN 0XXX)

MWMRFCOD Enhancement for function codedisabling

MWMRFDLV select delivery by user criteria

MWMRFPRT Enhancement for printing

MWMRFSSG user exit for sorting TOs in RF system-guided transaction

MWMRFUP Customer defined general purpose pushbutton called from scr.

MWMRP001 Cust. Exit for Fixed Bin Replenish.: Delivery Item Selection

MWMRP002 Cust. Exit for Fixed Bin Replenishment: TR Quantity Distr.

MWMRP003 Customer Exit for Replenishment using RLLNACH1

MWMRP004 User Exit for Replenishment using RLLNACH4

MWMTO001 Enhancements for end of transfer order generation

MWMTO010 Exit: Calculation of Total Planned TO Processing Time

MWMTO011 Correction of Planned Processing Time for TO Item

MWMTO012 Correction of Sorting and Split Transfer Order

MWMTO013 Stock Removal for Sev. Storage Types as in Stringent FIFO

MWMTOAU3 Separate selection of posting changes for autom.TO creation

MWMTR001 Exits at the end of transfer rqmnt creation (IM,PP interf.)

Use transaction SMod to get at these enhancements

Happy hunting

J

Former Member
0 Kudos

Hi vijay,

Copy this code into Zprogram and execute .

There u give Tcode to get all the available exits.

This wil be useful to find the user exit for any Transaction code.

Hope it helps u..

&----


*& Report ZUSEREXIT *

*& *

&----


*& *

*& *

&----


*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.

*

*

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.

*---End of Program

Regards,

KK

Former Member
0 Kudos

HOW TO FIND USEREXITS

Hello,

To add to the above points --->

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.