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

Extracting the TCODE instead of START_REPORT

Hi All,

I have got a requirement in which when I run a report with "XYZ" transaction it shows sy-tcode as START_REPORT.

It does not show the original TCODE which i had used instead of that it shows .. START_REPORT.

Please suggest me how can I get the original TCODE as SY-TCODE instead of START_REPORT.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 09, 2011 at 06:51 PM

    It's in table TSTCP.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 09, 2011 at 06:57 PM

    If the "XYZ" transaction is created as "Transaction with parameters" and with transaction as "START_REPORT", the SY-TCODE will contain the "START_REPORT" as the tcode. Change the transaction code "XYX" type to "Program and selection screen (report transaction).

    Edited by: Suman Jagu on May 9, 2011 2:57 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 09, 2011 at 07:47 PM

    Try this...

    call method cl_dynpro=>get_current_transaction

    receiving

    transaction_name = tcode.

    Tcode should have the current transaction code.

    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.