04-30-2006 6:54 PM
Hello Guys!
Can you help me out to find ageing for 30/60. I have date and i want to get the the date difference.
urgernt please
omer
04-30-2006 7:00 PM
Hi,
Can you explain in detail, what exactly you are looking for?
What do you mean by ageing for 30/60 and the date difference?
Regards,
Ravi
05-01-2006 7:44 AM
Hay Omer
check with this code
DATA: ENDETAG LIKE SY-DATUM,
ENDEZEIT LIKE SY-UZEIT.
DATA DATEDIFF TYPE P DECIMALS 7.
DATA TIMEDIFF TYPE P DECIMALS 7.
DATA EARLIEST.
CALL FUNCTION 'SD_DATETIME_DIFFERENCE'
EXPORTING
DATE1 = ENDETAG
TIME1 = ENDEZEIT
DATE2 = SY-DATUM
TIME2 = SY-UZEIT
IMPORTING
DATEDIFF = DATEDIFF
TIMEDIFF = TIMEDIFF
EARLIEST = EARLIEST
EXCEPTIONS
INVALID_DATETIME = 1
OTHERS = 2.
Thanks & regards
Sreenivasulu P
05-01-2006 8:34 AM
Hi omer,
Use the function module DAYS_BETWEEN_TWO_DATES.
Also try
DURATION_DETERMINE
SD_DATETIME_DIFFERENCE
FIMA_DAYS_AND_MONTHS_AND_YEARS
You can also try this...
data: date1 type sy-datum,
date2 type sy-datum.
data: diff type i.
diff = date1 - date2.
Regards,
Tanveer.
Please mark helpful answers