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

Report

hello all,

i have developed one report,for that i created one tr.code(ZTRN). my requirement is when ever end user or developer run the same report by SE38 tr.code, the message (pls run the report by ZTRN transaction) has to display. for this on which event i need to provide coding and what codi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:29 PM

    Check the value of SY-TCODE.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2008 at 12:27 PM

    Hi

    please check once Authorization object for that T-code.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:30 PM

    hi pravin,

    1. you can do like this

    
    initialization.
    
    if sy-tcode <> 'ZTRN'
    message 'Pls run the report using....'. type 'E'.
    endif.
    
    

    PS : sy-tcode NE 'ZTRN'

    (not equal to)

    regards,

    amit m.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:32 PM

    Hi,

    initialization.

    if sy-tcode <> 'ZTCODE'.

    message 'Run the report using transaction ZTCODE' type 'S'.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:32 PM

    there are several ways to do this

    1. can write logic in exit EXIT_SAPLWBABAP_010 this exit is for SE38 transaction write user ristriction for ur program in this exit include ZXSEUU29.

    2. u can try authorization check.

    3. can include role for particular user.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:35 PM

    Hi,

    in the START-OF-SELECTION.

    you can raise your message.

    Regards,

    Venkat

    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.