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 print the selection screen variant as a report header

Former Member
0 Kudos

I want to print the variant selected on the selection screen as a report header in the report painter.....Kindly help....The variant selected prior to generating the report painter output must be displayed on the final output screen as the header on the screen...

4 REPLIES 4

former_member194416
Contributor
0 Kudos

Hi,

If you mean variant name, parameter sy-slset contain selected variant name. If you mean all parameters maintained in selection screen, As far as I know no automatic way to do it and you need to code it yourself.

Regards,

Former Member
0 Kudos

Hi

Here you've to use 'Z_HEADER_FOOTER' function module at TOP-OF-PAGE

Just pass parameters for report_name as repid

show_select_options as 'Y'

show_parameters as 'Y'

line_size as you wish

action as 'X'

Hope this fulfills your requirement

Thanks

Suren

0 Kudos

my issue deals with the report painter..it is a report tool which is executed by the SAP standard code in the background...

Former Member
0 Kudos

Tr y FM RS_COVERPAGE_SELECTIONS

or see its Function Group: SVAR

FM: RS_VARIANT_DISPLAY_FROM_SELSCR