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

related to user exits

hello,

plz tell me how can i find whether a particular transaction code is having USER_EXIT

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 11:12 AM

    Hi,

    You may use the following code to find user exits associated with a transaction, Give transaction code as input.

    TABLES: modsap, modact, tstc.

    PARAMETERS: input1 LIKE tstc-tcode DEFAULT ' ',

    input2 LIKE modsap-typ DEFAULT ' '.

    DATA: search1(6),

    search2(3),

    search3 LIKE modsap-member.

    DATA : first_row VALUE 'Y'.

    CONCATENATE: '%' input1 '%' INTO search1,

    '%' input2 INTO search2.

    SELECT * FROM tstc WHERE tcode LIKE search1.

    first_row = 'Y'.

    CHECK tstc-pgmna NE space.

    CONCATENATE '%' tstc-pgmna '%' INTO search3.

    SELECT * FROM modsap WHERE typ LIKE search2

    AND member LIKE search3.

    SELECT SINGLE * FROM modact WHERE member = modsap-name.

    IF first_row EQ 'Y'.

    WRITE: /0 tstc-tcode, 6 tstc-pgmna, 16 modsap-name, 32 modsap-typ,

    45 modsap-member, 70 modact-name.

    first_row = 'N'.

    ELSE.

    WRITE: /16 modsap-name, 32 modsap-typ, 45 modsap-member, 70 modact-name.

    ENDIF.

    CLEAR : modsap, modact.

    ENDSELECT.

    IF sy-subrc NE 0.

    WRITE : /0 tstc-tcode, 6 tstc-pgmna, 30 'No exits found'.

    ENDIF.

    CLEAR tstc.

    ENDSELECT.

    END-OF-SELECTION.

    CLEAR: search1, search2, search3.

    Pls reward points if useful.

    Regards,

    Renjith Michael.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 11:22 AM

    Hello,

    You can debug the standard code searching for user-exits.

    Set breakpoints in statements. If you are looking for call customer-fuction, click on:

    Breakpoint --> Breakpoint at --> Breakpoint at Statement

    and then here write: CALL CUSTOMER-FUNCTION

    Then pressing F8 it will go directly to the next breakpoint (user exit for this transaction).

    I hope it will help you.

    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.