Hi,
I have a module pool screen having two fields LOW and High to enter a date range.
later in the program i m converting it into a range
data: r_cap_date TYPE RANGE OF zcap_date,
IF w_date_high IS INITIAL.
wa_cap_date-low = w_date_low.
wa_cap_date-option = 'EQ'.
wa_cap_date-sign = 'I'.
APPEND wa_cap_date TO r_cap_date.
CLEAR wa_cap_date.
ELSE.
wa_cap_date-low = w_date_low.
wa_cap_date-high = w_date_high.
wa_cap_date-option = 'BT'.
wa_cap_date-sign = 'I'.
APPEND wa_cap_date TO r_cap_date.
CLEAR wa_cap_date.
ENDIF.
Now I want to see all the date 1 by 1 in this date range
For example if input is: Low - 01/12/2008 .......High = 10/12/2008
range will be
wa_cap_date-low = 01/12/2008 .
wa_cap_date-high = 10/12/2008.
wa_cap_date-option = 'BT'.
wa_cap_date-sign = 'I'.
APPEND wa_cap_date TO r_cap_date.
CLEAR wa_cap_date.
Now i want to display
1/12/2008
2/12/2008
3/12/2008
.
.
.
.
.
10/12/2008