2007 Sep 27 2:52 PM
how do i subtract 5 dates from sy-date
i wanna select data from int table with date not less than 5 previous dates
how do i subtract 5 dates from sy-date
i wanna select data from int table with date not less than 5 previous dates
2007 Sep 27 2:55 PM
Just do
data : predate type sy-datum.
predate = sy-datum - 5.
select * from table into itab where date > predate.Pls reward if helpful.
Message was edited by:
Shori
2007 Sep 27 2:56 PM
hi Karan,
Try the following...
DATA: lv_date TYPE datum.
lv_date = sy-datum.
SUBTRACT 5 FROM lv_date.
WRITE:/ sy-datum, lv_date.
LOOP AT itab WHERE date GE lv_date.
ENDLOOP.Hope this helps.
Cheers
A.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |