Here is the step that you need to do if you need the header/ title of your query to follow the value that you enter in your selection screen.
1) You need to do some coding in this program ZXRSRU01 to pass the value from selection screen to your variable field.
Below are some sample code in ZXRSRU01:
IF i_step = 2.
CASE i_vnam.
WHEN ‘ZTFMHYR2′. ” text variable, MMM/YYYY
CLEAR l_s_range.
READ TABLE i_t_var_range INTO ii_t_var_range
WITH KEY vnam = ‘ZVPFYEAR’.
i_fyear = ii_t_var_range-low.
READ TABLE i_t_var_range INTO ii_t_var_range
WITH KEY vnam = ‘ZVPPER1′.
i_fmonth = ii_t_var_range-low.
IF i_fmonth GT 12.
i_fmonth = ‘012′.
ENDIF.
CALL FUNCTION ‘ZBW_CONV_MONTH_TO_TEXT0′
EXPORTING
P_MONTH = i_fmonth
IMPORTING
MONTH_RET = i_txtmth.
CONCATENATE i_txtmth ‘/’ i_fyear INTO l_s_range-low.
APPEND l_s_range TO e_t_range.