Skip to Content
author's profile photo Former Member
Former Member

user exits tables

Hi everyone,

Can i get the table in which all the userexit will be listed along with the transaction they can b used with.

Thanks,

Vibha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 08:28 AM

    Hi Vibha,

    there is no such table where you can find these details. You have to use where used list.

    Regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 09:57 AM

    not satisfactory

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 30, 2007 at 08:29 AM

    Vibha,

    VIBHA ! Nice name.

    You can check MODSAP and MODACT tables.

    K.Kiran.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 08:29 AM

    Hi,

    Look at the below link ... for a prgoram which will gives the user Exits for a Transaction code

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

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 08:30 AM

    Hi Vibha,

    ype the transaction : system->status-> <PROG. NAME>

    2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.

    3. Open CMOD utilities->SAP enhancements

    EDIT->All selections

    4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.

    5. The displayed list contains the enhancements names for the transaction You were looking for.

    6. Create a project in CMOD and the code in default include->activate.

    here is the thread which also answers ur question

    user exits

    Thanks,

    Reward If Helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 08:30 AM

    Do not know about such tables. But through this program you will be able to know the user exits attached with a tcode.

    Selection Text: P_TCODE: Transaction Code to Search
    Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
     
     
    REPORT z_find_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® Modifications
        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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 04:52 AM

    should be under modact,modsap tables

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 04:56 AM

    Hi

    MODSAP, MODACT and MODSAPT tables stores the Enhancements of SAP

    and in SMOD you have find all the Exit fun modules (components) of the enhancements

    use the following program to find the TCODE related Exits and BADI's(business Add-Ins)

    &----


    *& Report YTESTT

    &----


    REPORT ytestt.

    TABLES : tstc, tadir,modsapt,modact,trdir,

    tfdir,enlfdir,sxs_attrt ,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,

    p_date LIKE sy-datum,

    p_pgmna LIKE tstc-pgmna .

    DATA wa_tadir TYPE tadir.

    START-OF-SELECTION.

    IF NOT p_tcode IS INITIAL.

    SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.

    ELSEIF NOT p_pgmna IS INITIAL.

    tstc-pgmna = p_pgmna.

    ENDIF.

    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 IN ('SMOD', 'SXSD')

    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:/(105) sy-uline.

    FORMAT COLOR COL_HEADING INTENSIFIED ON.

    • Sorting the internal Table

    SORT jtab BY object.

    DATA : wf_txt(60) TYPE c,

    wf_smod TYPE i ,

    wf_badi TYPE i ,

    wf_object2(30) TYPE c.

    CLEAR : wf_smod, wf_badi , wf_object2.

    • Get the total SMOD.

    LOOP AT jtab INTO wa_tadir.

    AT FIRST.

    FORMAT COLOR COL_HEADING INTENSIFIED ON.

    WRITE:/1 sy-vline,

    2 'Enhancement/ Business Add-in',

    41 sy-vline ,

    42 'Description',

    105 sy-vline.

    WRITE:/(105) sy-uline.

    ENDAT.

    CLEAR wf_txt.

    AT NEW object.

    IF wa_tadir-object = 'SMOD'.

    wf_object2 = 'Enhancement' .

    ELSEIF wa_tadir-object = 'SXSD'.

    wf_object2 = ' Business Add-in'.

    ENDIF.

    FORMAT COLOR COL_GROUP INTENSIFIED ON.

    WRITE:/1 sy-vline,

    2 wf_object2,

    105 sy-vline.

    ENDAT.

    CASE wa_tadir-object.

    WHEN 'SMOD'.

    wf_smod = wf_smod + 1.

    SELECT SINGLE modtext INTO wf_txt

    FROM modsapt

    WHERE sprsl = sy-langu

    AND name = wa_tadir-obj_name.

    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.

    WHEN 'SXSD'.

    • For BADis

    wf_badi = wf_badi + 1 .

    SELECT SINGLE text INTO wf_txt

    FROM sxs_attrt

    WHERE sprsl = sy-langu

    AND exit_name = wa_tadir-obj_name.

    FORMAT COLOR COL_NORMAL INTENSIFIED ON.

    ENDCASE.

    WRITE:/1 sy-vline,

    2 wa_tadir-obj_name HOTSPOT ON,

    41 sy-vline ,

    42 wf_txt,

    105 sy-vline.

    AT END OF object.

    WRITE : /(105) sy-uline.

    ENDAT.

    ENDLOOP.

    WRITE:/(105) sy-uline.

    SKIP.

    FORMAT COLOR COL_TOTAL INTENSIFIED ON.

    WRITE:/ 'No.of Exits:' , wf_smod.

    WRITE:/ 'No.of BADis:' , wf_badi.

    ELSE.

    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

    WRITE:/(105) 'No userexits or BADis exist'.

    ENDIF.

    ELSE.

    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.

    WRITE:/(105) 'Transaction does not exist'.

    ENDIF.

    AT LINE-SELECTION.

    DATA : wf_object TYPE tadir-object.

    CLEAR wf_object.

    GET CURSOR FIELD field1.

    CHECK field1(8) EQ 'WA_TADIR'.

    READ TABLE jtab WITH KEY obj_name = sy-lisel+1(20).

    MOVE jtab-object TO wf_object.

    CASE wf_object.

    WHEN 'SMOD'.

    SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).

    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

    WHEN 'SXSD'.

    SET PARAMETER ID 'EXN' FIELD sy-lisel+1(20).

    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.

    ENDCASE.

    <b>Reward points if useful</b>

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2007 at 05:01 AM

    thnks....

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.