Hi,
then you can do it like that:
REPORT ztestdate.
DATA: xv_datum TYPE d.
RANGES: xr_datum FOR xv_datum.
PARAMETERS: xp_days TYPE I.
START-OF-SELECTION.
REFRESH xr_datum.
xr_datum-low = sy-datum - xp_days.
xr_datum-high = sy-datum.
xr_datum-option = 'BT'.
xr_datum-sign = 'I'.
APPEND xr_datum TO xr_datum.
Regards,
Klaus