cancel
Showing results for 
Search instead for 
Did you mean: 

pass parameters to selection screen for generated report

kjyothiraditya
Participant
0 Kudos

Hi ,

I am displaying some data in ALV and when user clicks on a field, it should take him to a particular tranaction by passing the relevant fields to the new transaction. I am using SET PARAMETER as I am using CALL TRANSACTION AND SKIP FIRST SCREEN. This works for std tcodes. But i have to pass the same to generated reports which have tcodes like S_ALR*. I have to pass from and to values to the selection screen. I can make use of RSPARAMS or others, but they can be used with report name only. But as these are generated, the program name / parameter name can change. Any pointers on how to pass data in these situations?

Regards,

Aditya

lutzi3
Participant
0 Kudos

Hello Aditya,

Is there a way to determine the name of the generated report ? For instance by lookup to table TSTC -> PROGNA ? Then you could do a submit ( report ) with selection-table rspar ..

Kind Regards

ziolkowskib
Active Contributor

Hi jyothiraditya.k,

Just to extend Lutz's comment please take a look at the documentation explaining how to call a report using SELECTION-TABLE:

https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abensubmit_selscreen_abexa.htm

Regards,
Bartosz

kjyothiraditya
Participant
0 Kudos

Hi,

Yes, I have checked SUBMIT prog-name option also . But as I said the prog is not a static one but generated using report painter. The program name can change from system to system or if the program is regenerated then the program name and the selection-screen parameters names can change. Also for this tcode, in TSTC the program name is not available as it is a generated program ( similar to SAP query).

Sandra_Rossi
Active Contributor

Don't you get results if you search:

report painter generated program name site:sap.com
kjyothiraditya
Participant
0 Kudos

Hi Sandra,

Thanks for your reply. I have to pass the parameters to a transaction and execute the transaction (skip initial screen). For some parameters we are passing using PARAMETER ID and calling using CALL TRANSACTION. Is there any way we can pass the same to the tcode ? For program, when using SUBMIT we have options, but when using CALL TRANSACTION, we dont have that options ( we have but there they are for BDC ) ? Also when we use CALL TRANSACTION, the authority checks for the transaction may be executed, but while for SUBMIT, these may be skipped.

Accepted Solutions (0)

Answers (0)