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: 

how to find out user exits of t-code va03

deepak_kumar11
Participant
0 Kudos
576

hi all

how to find out user exits of any t-code .

regards

deepak

1 ACCEPTED SOLUTION

gopi_narendra
Active Contributor
0 Kudos
123

get the Dev class from SE93 and go to SMOD tcode

press F4 and give the Dev Class and press enter

Regards

Gopi

9 REPLIES 9

gopi_narendra
Active Contributor
0 Kudos
124

get the Dev class from SE93 and go to SMOD tcode

press F4 and give the Dev Class and press enter

Regards

Gopi

Former Member
0 Kudos
123

hi Deepak,

Check out these threads

0 Kudos
123

ok

Former Member
0 Kudos
123

SD user exits are attached with the main program itself. Do dont have to go to cmod for them.

Open the main program 'SAPMV45A' of va01 in SE80. Search for the subroutines. Tou will find many subroutine starting with 'USEREXIT_*' (Ex: userexit_field_modification )

form userexit_field_modification.
*
** CASE SCREEN-GROUP3.
**   WHEN '900'.
**     IF VBAK-VBTYP NE 'A'.
**       SCREEN-ACTIVE = 0.
**     ENDIF.
** ENDCASE.
*
** CASE SCREEN-NAME.
**   WHEN 'VBAK-VBELN'.
**     SCREEN-ACTIVE = 0.
** ENDCASE.
*
*if vbak-auart = 'ZLHI'.
*vbak-kunnr = '0000100276'.
*endif.


endform.

you have to find the user exit which you have to code for your specific purpose.

Now after finding the right user exit, you have to code in that subroutine. Now you need access key to code in that standard form. After putting the access key, you can code there.

0 Kudos
123

Hi Abhishek,

thanx for ur ans...Is it a SAP Standard that all Subroutines will be named starting from USEREXIT_*, which are related to user exits.

Regards

Deepak

0 Kudos
123

in case of SD , u have routines given by SAP.

first option is

1.SPRO->SD->system Modifications

2.VA03->system->status>program of VA03-> search for the words *user exits *.

Regards

Prabhu

Former Member
0 Kudos
123

Hi Deepak,

Have a look at below link:

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

which gives the list of exits for a tcode.

For VA03, in se38 go to report SAPMV45A. There you will get below code:

*----


  • U S E R - E X I T S

  • U S E R - E X I T S

  • U S E R - E X I T S

*----


  • INCLUDE MV45ATZZ. " Data definitions in MV45ATOP

INCLUDE MV45AOZZ. " User-modules PBO

INCLUDE MV45AIZZ. " User-modules PAI

INCLUDE MV45AFZA. " User-forms < 3.0

INCLUDE MV45AFZB. " User-forms

INCLUDE MV45AFZC. " User-forms < 3.0D

INCLUDE MV45AFZD. " User-forms 3.0E

INCLUDE MV45AFZF. " User-forms 3.0F

  • include mv45afzg. " User-forms 3.1G

include mv45afzh. " User-forms 4.6B

INCLUDE MV45AFZZ. " User-forms

INCLUDE MV45AFZ4. " User-forms 4.0

All above are user exits for transaction VA03. For details about these exits, have a look at belwo link:

http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

Former Member
0 Kudos
123

hi Deepak,

User-exits are written in include <b>MV45AFZZ </b>for sales order VA01

Regards,

Santosh

Former Member
0 Kudos
123

Hi Deepak,

<b>Try this code.</b>

&----


*& Report Z_USEREXIT *

*& *

&----


*& *

*& *

&----


REPORT Z_USEREXIT

NO STANDARD PAGE HEADING.

&----


*& Enter the transaction code that you want to search through in order

*& to find which Standard SAP User Exits exists.

*&

&----


&----


*& Tables

&----


TABLES : tstc, "SAP Transaction Codes

tadir, "Directory of Repository Objects

modsapt, "SAP Enhancements - Short Texts

modact, "Modifications

trdir, "System table TRDIR

tfdir, "Function Module

enlfdir, "Additional Attributes for Function Modules

tstct. "Transaction Code Texts

&----


*& Variables

&----


DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.

DATA : field1(30).

DATA : v_devclass LIKE tadir-devclass.

&----


*& Selection Screen Parameters

&----


SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP.

PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN END OF BLOCK a01.

&----


*& Start of main program

&----


START-OF-SELECTION.

  • Validate Transaction Code

SELECT SINGLE * FROM tstc

WHERE tcode EQ p_tcode.

  • Find Repository Objects for transaction code

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 = enlfdir-area.

MOVE : tadir-devclass TO v_devclass.

ENDIF.

ENDIF.

  • Find SAP Modifactions

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.

  • Take the user to SMOD for the Exit that was selected.

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.

<b>plz reward points if helpful or if it solves ur query.</b>

Thanks

Chinmay