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 find the difference in the number of hours

Former Member
0 Kudos

hi all,

is there any function module to find out the difference between two time stamps on two different dates. say if an activity starts on 09/05/2007 at 11:23:24 and ends on 09/08/2008 at 14:24:26. it needs to find the number of hours between the two. for this case it should be:

75:01:02 hours:mins:secs.

or a FM which works in a way similar to the above functionality.

3 REPLIES 3

Former Member
0 Kudos

Hi!

Please check CCU_TIMESTAMP_DIFFERENCE fm.

Regards

Tamá

Former Member
0 Kudos

Use this FM - SD_DATETIME_DIFFERENCE.

Pass Start date / Start time and End date / End Time and u ll get the difference.

Note - U need to pass the time - dont leave it blank.

Former Member
0 Kudos

Hi,

Use FM SD_CALC_DURATION_FROM_DATETIME

but this will not give the seconds difference

Regards

Shiva