2005 Jun 21 10:47 AM
I need function which compare dates?
2005 Jun 21 10:50 AM
Hello Albert,
You don't need any function to compare date, SAP do that without any function.
date_1 - date_2 will give you number of day between date_1 and date_2 ....
You need function if you want to work of factory calendar.
Regards
Frédéric
2005 Jun 21 10:57 AM
Hi,
You can simply use > , <,etc.,
Check this sample code.
data : d1 type RM06B-EEIND ,
d2 type sy-datum.
d1 = sy-datum.
CALL FUNCTION 'DATE_IN_FUTURE'
EXPORTING
anzahl_tage = '-7'
import_datum = d1
IMPORTING
EXPORT_DATUM_EXT_FORMAT = d2
EXPORT_DATUM_INT_FORMAT = d2
.
if d1 < d2.
write 'h'.
endif.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |