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
590

Hello Friends,

Can any body tell me how to find User-Exit of a perticular screen and to do modification in that screen.

Suppose if i want to display my own message during saving of a Sales Order in Va01 t-code.

Your help is Highly appreciated.

Thanx in Advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

Hi jak

Follow the following steps.

goto the transaction va01. goto system menu and find the program (screen) name in the status.

then goto teh program in se38. then find the package in attributes in GOTO menu.

then goto txn smod there find you can find the user exit using the serach help.

in the search help give the package name. it will list the available user exits.

regards

kishore

5 REPLIES 5
Read only

mandar_shete
Active Participant
0 Likes
570

Hi,

goto the program of that transaction code and find Customer-exit.

Or find the development class of the program and find the enhancements for the same development class in SMOD

for Sales are it is very easy

goto

SPRO-> Sales & Distribution -> System Modification -> User Exits.

Read only

FredericGirod
Active Contributor
0 Likes
570

Hi,

use the transaction SMOD or CMOD to find user-exit.

If you don't like to search, you could try to use the http://service.sap.com/notes and search the keywords va01 exit message ... sometimes it's quicker than the CMOD

Rgd

Frédéric

Read only

0 Likes
570

run this program n find requried user exits

REPORT zuserexit NO STANDARD PAGE HEADING.

*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

Read only

Former Member
0 Likes
571

Hi jak

Follow the following steps.

goto the transaction va01. goto system menu and find the program (screen) name in the status.

then goto teh program in se38. then find the package in attributes in GOTO menu.

then goto txn smod there find you can find the user exit using the serach help.

in the search help give the package name. it will list the available user exits.

regards

kishore

Read only

Former Member
0 Likes
570

Hi,

First get the Program Name for ur TCODE.

Then goto SE80-> Enter Program name -> search for FM

'customer-function'.

In that FM u get include where u can write ur own code.

Regards,

Digesh Panchal