Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM to calculate difference in hours between to periods?

Former Member
0 Kudos
126

I have a requirement where I'll have to find the number of hours and minutes that has lapsed between

Date1 Time1 and Date2 Time2

that is

date1 4.07.05

time1 22:14

date2 6.07:05

time2 5:14

so the result would be 31:00 hrs

Is there any function module available to suffice this requirement.

I checked out a few but i couldn't find the right function module

1 ACCEPTED SOLUTION

dani_mn
Active Contributor
0 Kudos
98

HI,

check this FM

<b>SD_DATETIME_DIFFERENCE

SD_CALC_DURATION_FROM_DATETIME

</b>

Regards,

HRA

3 REPLIES 3

dani_mn
Active Contributor
0 Kudos
99

HI,

check this FM

<b>SD_DATETIME_DIFFERENCE

SD_CALC_DURATION_FROM_DATETIME

</b>

Regards,

HRA

Former Member
0 Kudos
98

fm..

<b>SD_CALC_DURATION_FROM_DATETIME</b>

andreas_mann3
Active Contributor
0 Kudos
98

hi,

look here:

A.