I have a date as characteristics, but the requirement is to create a variable and only consider the year and then restrict the data based on this. Any suggestion for this?
IF i_step = 2. "After the popup
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZH01_FEC'.
concatenate loc_var_range-low '0101' into varfi.
concatenate loc_var_range-high '1231' into varff.
l_s_range-low = varfi.
l_s_range-high = varff.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
Your code is correct except for few change.one was it is 'YYYYMMDD' n not 'YYYYDDMM' as u had written.
PLease try above code.Also 'ZH01_FEC' make it user entry with interval values.