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: 

How to generate dynamic parameters for SUBMIT REPORT in ABAP ?

agrawalaadhar8
Participant
0 Kudos

Hi All,

I am trying to achieve the below functionality:

  • Storing report program names in a table against some keys.
  • In master program: I will read program name from this table and then need to call Submit Program.
  • Since the programs will have different selection screens: I need to write a code that can dynamically generate selection parameters (based on report name) and then call the SUBMIT Report for the report.

I don't know if this can be achieved or not, that's why require help.

Please provide your useful insights.

Thank You in Advance :)a

Aadhar

2 REPLIES 2

former_member182550
Active Contributor
0 Kudos

Set up batch jobs and then keep the name of the batch job in your table. When you run your code submit the batch job. You specify the parameters (including variable parameters) in the batch job rather than your program because SAP has already developed what you are trying to do....

Rich

raymond_giuseppi
Active Contributor

You could generate an internal standard table of type RSPARAMS or RSPARAMSL_255, use this table with a statement SUBMIT report WITH SELECTION-TABLE rspar. But usually variant are used for this kind of purpose, look for dynamic date variant variables in forum and online help.