07-23-2005 7:53 PM
Hi,
Is there a programmtic way to obtain the list of input parameters for a report?
Thank you in advance for your help.
Pradeep
07-24-2005 3:48 AM
Here is a sample.
report zrich_0003.
data:
selctab type table of rsscr with header line.
data: syrepid type sy-repid.
parameters: p_chk type c.
select-options: s_chk for sy-datum.
syrepid = sy-repid.
load report syrepid part 'SSCR' into selctab.
loop at selctab.
if selctab-kind = 'S'
or selctab-kind = 'P'.
write:/ selctab-name, selctab-kind.
endif.
endloop.
check sy-subrc = 0.
Regards,
Rich Heilman
07-24-2005 4:56 AM
Hi Pradeep,
Could you give more detail about your requirement?
Best Regards,
Sasi.
07-24-2005 5:46 AM
or you could use the following function module.
<b>RS_REPORTSELECTIONS_INFO</b>
just pass the report name and get back all the parameters /select-options details along with their DB reference filed info and defaults as well.
Regards
Raja
08-03-2005 8:03 PM
Thank you all for your help.
Here is the background on what I need to accomplish.
I am creating an ABAP report that in turn must call other ABAP reports and aggregate the output of all these reports. To run a report, it appears that I need to call "Submit" with a report name. Is this right? How do I pass the parameters to submit?
Thank you once again for your help.
Pradeep
08-03-2005 8:07 PM
Yes, you are correct. You can pass the paramters using the WITH extension.
SUBMIT report_name
with P_PARM1 = "Whatever"
and return.
Here P_PARM1 is a parameter in the <report_name> program. It works with select-options in a simular fashion. You can do F1 help for more info.
Also, please remember to award points for helpful answers. Thanks.
Regards,
Rich Heilman