2019 Dec 28 4:49 PM
User giving one date for example 21.12.2019 as an input.
Is there any way to get all date from
the first date of a month to 21.12.2019 ?
2019 Dec 29 4:33 AM
First fetch the month number and date through offset.
Then use
do (date value) times .....
Ends. And append the date.month.year to input date.
LV_DATE = 21.
LV_MONTH = 12.
DO 21 TIMES.
ENDDO.
2019 Dec 29 9:11 AM
report trackdates.
data:
gt_date type sy-datum occurs 0,
gd_today type sy-datum,
gd_tomorrow type sy-datum.
*
data: gd_date type string,
gd_yyyy(4),
gd_mm(2),
gd_dd(2).
*
move sy-datum to: gd_today, gd_date.
gd_tomorrow = sy-datum + 1.
gd_dd = 01.
append gd_date to gt_date.
*
do until gd_date = gd_tomorrow.
add 1 to gd_date.
if gd_date <= sy_datum.
append gd_date to gt_date.
else.
exit.
endif.
enddo.