Hi,
I want to derive the low value of a variable for the key date. I've created a user exit variable (Z_KEYDATE) which is not ready for input and optional.
The code is quite simple and I expect it to work. However when I run the report, I get a dump as "DATE INVALID". When I check the dump details and debug, I see that date is passed as "00000000".
I can't debug the following code because keydate variable does not run through it.
There's something wrong but somehow I can't find it. Any suggestions?
Thanks!
WHEN 'Z_KEYDATE'. " Keydate IF i_step = 2. LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'Z_CALDAY'. l_s_range-low = loc_var_range-low. l_s_range-sign = 'I'. l_s_range-opt = 'EQ'. APPEND l_s_range TO e_t_range. endloop. endif.