02-26-2010 11:41 AM
Hello ,
I have to calculate time in minutes , for period of time between two measurements taken on different days (or same day ) .
So one is taken on e.g . 01-02-20010 at 15:25:00h another on 07-02-2010 at 6:33:22h I have to show that period in minutes
My question is is do you know any function doing that.
Thank you
02-26-2010 11:55 AM
Use this FM /SDF/CMO_DATETIME_DIFFERENCE.
use fm L_TO_TIME_DIFF
Pls Try to use Class "CL_ABAP_TSTMP"
02-26-2010 11:47 AM
SD_DATETIME_DIFFERENCE
This will return Hours and minutes.You can convert the whole into minutes
SCOV_TIME_DIFF Check this also.
Regards,
Gurpreet
02-26-2010 11:54 AM
hI
Check this
LEINT_DETERMINE_DURATION
Pass I_UNIT_OF_DURATION = 'MIN'
You get the result in Floating Format convert it to type P variable.
Regards
Ram
02-26-2010 11:55 AM
Use this FM /SDF/CMO_DATETIME_DIFFERENCE.
use fm L_TO_TIME_DIFF
Pls Try to use Class "CL_ABAP_TSTMP"
02-26-2010 12:37 PM
02-26-2010 12:55 PM
v_hours = ( ( p_edate - p_sdate ) * 24
+ ( p_etime - p_stime ) / 3600 ).
v_mins = v_hours * 60.
Try this, im bit confused