Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

get parameters of a report

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Maybe you can have a look at function module RS_ALL_SELECTIONSCREENS.

Kind Regards,

Sükrü

8 REPLIES 8

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

How about function module RS_SELECTIONSCREEN_READ.

I have not yet tested it.

Regards,

Rich Heilman

0 Kudos

Nop.....don't think that RS_SELECTIONSCREEN_READ is what you want.

Regards,

Rich Heilman

0 Kudos

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.

Former Member
0 Kudos

Hi,

Maybe you can have a look at function module RS_ALL_SELECTIONSCREENS.

Kind Regards,

Sükrü

0 Kudos

Hi thanks for the response, it seems useful, but Have you could execute it any time and get the fields?

I have executed it and only return the dynpro number.

Thanks.

0 Kudos

In the previous message I spoke of the function RS_ALL_SELECTIONSCREENS.

Have someone could execute it and get the fields of the selection screen?

0 Kudos

Try this one RS_GET_SELOPTS_AND_PARAMS

Former Member
0 Kudos

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