‎2006 Feb 03 1:53 PM
Can any body help me to find the function module to find the time diff: between two times, time is in 24hrs
‎2006 Feb 03 1:58 PM
Hi again,
1. Difference is always returned in SECONDS.
2. use this code (just copy paste in new program)
REPORT abc.
data : t1 type sy-uzeit.
data : t2 type sy-uzeit.
DATA : DIFF TYPE I.
t1 = '090000'.
t2 = '100000'.
DIFF = T2 - T1.
WRITE 😕 DIFF.
regards,
amit m.
‎2006 Feb 03 1:57 PM
Hi Baiju,
Check FM,
IB_CONVERT_INTO_TIMESTAMP
IB_CONVERT_FROM_TIMESTAMP
Thanks
Lakshman
‎2006 Feb 03 1:57 PM
‎2006 Feb 03 1:58 PM
Hi again,
1. Difference is always returned in SECONDS.
2. use this code (just copy paste in new program)
REPORT abc.
data : t1 type sy-uzeit.
data : t2 type sy-uzeit.
DATA : DIFF TYPE I.
t1 = '090000'.
t2 = '100000'.
DIFF = T2 - T1.
WRITE 😕 DIFF.
regards,
amit m.
‎2006 Feb 03 2:01 PM
‎2006 Feb 03 2:47 PM
When calculating the difference in time, you always have to take the date into account; otherwise, you can end up with a negative difference.
Rob