I have problem with sending parameter values between report and smartform print program.
There is a screen field called pnptimed (pretty combobox).
In the smartform I defined variant with period and other necessary settings, but my report program should override those settings.
SUBMIT (ip_program) VIA SELECTION-SCREEN USING SELECTION-SET ip_variant WITH SELECTION-TABLE lt_rspar WITH pnptimed eq pnptimed TO SAP-SPOOL SPOOL PARAMETERS is_print_params WITHOUT SPOOL DYNPRO USER sy-uname VIA JOB l_jobname NUMBER l_job_count AND RETURN.
When i run the report, there is no changes applied to the PNPTIMED combobox, It always take the option defined in the variant.
In lt_rspar I have:
DATA: lt_rspar TYPE TABLE OF rsparams, ls_rspar LIKE LINE OF lt_rspar. ls_rspar-selname = 'PNPPERNR'. ls_rspar-kind = 'S'. ls_rspar-sign = 'I'. ls_rspar-option = 'EQ'. ls_rspar-low = ip_pernr. APPEND ls_rspar TO lt_rspar.
I tried to set the PNPTIMED using the lt_rspar, but it also don't work.
Could you please help me?