Hi ABAP experts
We have two BEx variables, ZCALDAY_CE_010 and ZCALDAY_CE_011.
They are both feeded by user exit logic.
The logic should calculate the last day of the current year and the last day of the next year.
The key figure with the BEx variable ZCALDAY_CE_010 (current year) works fine.
The key figure with the variable for next year doesn't work.
Where is the problem?
WHEN 'ZCALDAY_CE_010'.
*DATA l_s_range type rrrangesid.
IF I_STEP = 1.
l_s_range-low = sy-datum(4).
CONCATENATE l_s_range-low '1231' INTO l_s_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
WHEN 'ZCALDAY_CE_011'.
*DATA l_s_range type rrrangesid.
IF I_STEP = 1.
l_s_range-low = sy-datum(4) + 1.
CONCATENATE l_s_range-low '1231' INTO l_s_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.