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

get parameters of a report

Hi, we want to read all parameters of the selection screen of an abap report, we want to get the name and the type of the parameter.

Exists some function to do that?

Some suggestions are welcomed.

Thanks in advanced.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2004 at 06:53 PM

    Hi,

    Maybe you can have a look at function module RS_ALL_SELECTIONSCREENS.

    Kind Regards,

    Sükrü

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 21, 2004 at 09:09 PM

    Hi Manuel,

    Do you just want to read the parameters and select-options defined for a given report or do you want to know the values entered on the selection screen when the user is executing the report?

    Here is a function module we use to get the runtime values entered in the selection screen. See if it helps.

    It gives you all the parameters and their kind(P-parameter or S-Select-Option) and also the sign and values for low and high if entered.

    RS_REFRESH_FROM_SELECTOPTIONS

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 21, 2004 at 06:51 PM

    How about function module RS_SELECTIONSCREEN_READ.

    I have not yet tested it.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • Yep, I think that the other FM will work if you can get it to work. I couldn't seem to get it to work for me. Another option follows.

      Regards,

      Rich Heilman

      report zrich_0002 .

      data: l_sscr like rsscr occurs 10 with header line.

      parameters: p_prog(30) type c.

      start-of-selection.

      load report p_prog part 'SSCR' into l_sscr.

      check sy-subrc = 0.

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.