on 11-20-2013 2:19 PM
Hi Gurus,
Please can any one help me Customer exit on 0calday for two weeks of range. The system should throw error if user enters more two weeks date range.
here my variable is 'ZSCM_CALDAY2' but it is showing 0DAT, as said
•The i_step = 3 its failing i am not sure from where the default values are coming as i_step = 1.
•i_t_var_range is getting sy-datum(today date),
I tried keeping my code in first line still not success
WHEN 'ZSCM_CALDAY2'.
IF i_step = 3.
CLEAR : loc_var_range, ls_range.
READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'ZSCM_CALDAY2'.
DATA : lv_DIFF TYPE I.
if loc_var_range is NOT initial.
LV_DIFF = loc_var_range-HIGH - loc_var_range-LOW.
IF LV_DIFF <= 14.
ls_range-low = loc_var_range-low.
ls_range-high = loc_var_range-high.
ls_range-sign = 'I'.
ls_range-opt = 'BT'.
APPEND ls_range TO e_t_range.
ELSE.
MESSAGE e009(zerrormsg) DISPLAY LIKE 'W' WITH text-000 .
endif.
ENDIF.
endif.
Able to check the i_step= 3.
Now, iam unable to see the data for only 14 days. It is also showing for more than 14 days data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I feel you should use i_step = 2 and i_step = 3 combination for your requirement. Please check this blog which has got comprehensive explanation. I feel this would fit your requirement.
You can take the ideas from the blog and try to implement it.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.