‎2006 Dec 13 10:38 AM
Hi All,
Wud you plz let me know the Function Module to find the Difference between two times.
Input Time1( Hours:Minutes) Time2 ( Hours:Minutes)
Need Output in Hours:Minutes only . ( No seconds Needed )
Ex :
Input :
06:00 to 18:00 Output : 12:00
and 20:00 to 06:00 Output: 10:00 with +ve sign only. No -ve sign.
Thanks,
N.L.Narayana
‎2006 Dec 13 10:43 AM
‎2006 Dec 13 10:46 AM
Hi
It was not meeting the requirement what i have asked.
Thanks,
N.L.
‎2006 Dec 13 10:44 AM
‎2006 Dec 13 10:50 AM
‎2006 Dec 13 10:45 AM
Hi,
Use anyone of the following but some calculation do require for exact result.
'COPF_DETERMINE_DURATION'
SD_DATETIME_DIFFERENCE
L_MC_TIME_DIFFERENCE
Regards,
Amit
‎2006 Dec 13 11:07 AM
check this .
data : p_timel like sy-uzeit,
p_timeh like sy-uzeit,
diff like sy-uzeit,
di(8) type c .
p_timel = '200000'.
p_timeh = '060000'.
diff = p_timeh - p_timel.
concatenate diff+0(2) ':' diff+2(2) into di.
write:/ di.also check for this.
p_timel = '060000'.
p_timeh = '180000'.
see if this can be implemented in ur code .
or else u can try with Fm L_TO_TIME_DIFF passing startdate enddate starttime endtime with UOM as MIN
.
hope this helps regards,
vijay