2007 Sep 05 3:12 PM
Dear Friends;
I have one query regarding DATE I wanna calculate the difference between
SY-DATUM and ANY GIVEN DATE . Is there any function or code available that take one parameter as sy-datum and another parameter as any given date and give result as no. of days between them
Regards;
Parag
2007 Sep 05 3:13 PM
Hi,
Just use direct substraction
no_of_days = sy-datum - w_date( given date)
Cheers
VJ
2007 Sep 05 3:13 PM
Hi,
Just use direct substraction
no_of_days = sy-datum - w_date( given date)
Cheers
VJ
2007 Sep 05 3:15 PM
DATA: DATEDIFF TYPE P.
CALL FUNCTION 'SD_DATETIME_DIFFERENCE'
EXPORTING
date1 = '20071122'
time1 = '000001'
date2 = '20070905'
time2 = '000001'
IMPORTING
DATEDIFF = DATEDIFF
EXCEPTIONS
INVALID_DATETIME = 1
OTHERS = 2.
Greetings,
Blag.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |