‎2006 Jun 14 8:46 AM
Hi Everybody,
does exist a function to calculate a duration between two datestamps (date + time)?
Or does somebody know where to find a ABAP routine that do that?
Thanks in advance
FedeX
‎2006 Jun 14 8:54 AM
FM: SD_DATETIME_DIFFERENCE looks fine, but its not giving an accurate time difference.
‎2006 Jun 14 8:54 AM
FM: SD_DATETIME_DIFFERENCE looks fine, but its not giving an accurate time difference.
‎2006 Jun 14 8:54 AM
try this coding.
GET TIME STAMP FIELD w_start_time.
write 😕 w_start_time.
do 10000 times.
write 😕 'A'.
enddo.
GET TIME STAMP FIELD w_end_time.
write 😕 w_end_time.
w_fin_time = w_end_time - w_start_time.
write /: w_fin_time.
My system gave this output :
20,060,418,101,921.9050000 (20060418 101921905)
20,060,418,101,922.0300000 (20060418 101922030)
-
difference 0.1250000 (milli seconds)
-
<b>refer weblog...
/people/horst.keller/blog/2004/11/29/abap-geek-8-150-summertime-blues-133
‎2006 Jun 14 8:57 AM
Hi,
You can use the Function Module SXMS_TIMEDIFF_SEC. It gives the difference in Seconds from which you can calculate.
Thanks & Regards,
YJR
‎2006 Jun 14 9:01 AM
‎2006 Jun 14 9:02 AM
‎2006 Jun 14 9:10 AM
Hi,
You can try this FM <b>C14B_DATE_TIME_COMPARE</b>
Regards
vijay
‎2006 Jun 14 9:50 AM
Hi,
Use FM CCU_TIMESTAMP_DIFFERENCE to find difference between date + time
Sameena