How to find the user exit (User-exit) of the program where the transaction code is located)

Source: Internet
Author: User
Method 1:
1. Run tcode --> System --> status to find Program Name.
2. Se80; enter the program name found in step 1. Use goto --> attributes to find the package name. (Note: You can also use se93 to check the package of the program)
3. Se80 --> Repository Information System --> enhancements --> customer exits --> enhancements --> enter and execute the package name found in step 2, and you can find all the tcode user exits.

Method 2:
Write the ABAP program,CodeAs follows:
========================================================== ==============================
Author: qiujun (http://qiujun.itpub.net) Thank you
Posted on: 2007.10.23
Category: ABAP
Source: http://qiujun.itpub.net/post/24006/407469
---------------------------------------------------------------
Tables: tstc, "sap transaction codes (SAP transaction code)
Tadir, "Directory of repository objects (directory of the resource library object)
Modsapt, "sap enhancements-short texts (SAP enhancement-short files)
Modact, "modifications (amendment)
Trdir, "system table trdir (System Table trdir)
Tfdir, "function module (function module)
Enlfdir, "Additional attributes for function modules (additional attribute of function module)
Tstct. "transaction code texts (transaction code text)

Data: jtab like tadir occurs 0 with header line.
Data: field1 (30 ).
Data: v_devclass like tadir-devclass.

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-selection.
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 = 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:/(12) 'transaction code -',
13 (20) p_tcode,
34 (10) 'feature -',
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:/'number of user exits: ', Sy-tfill.
Else.
Format color col_negative intensified on.
Write:/(95) 'This tcode has no user exit! '.
Endif.
Else.
Format color col_negative intensified on.
Write:/(95) 'the 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.