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: 

time calculation

Former Member
0 Kudos
128

Can you please help me out in calculating the time between the two dates and time as below .

30.05.2007 09:13:41

29.05.2007 06:12:54

4 REPLIES 4

Former Member
0 Kudos
81

Use FM ISP_TIME_BETWEEN_DATES.

Former Member
0 Kudos
81

Hi soumya,

Try a look at this function --> L_TO_TIME_DIFF

It should work on your case.

Best Regards,

Victor.

sreeramkumar_madisetty
Active Contributor
0 Kudos
81

CALL FUNCTION 'SWI_DURATION_DETERMINE'

EXPORTING

start_date = sy-datum

end_date = sy-datum

start_time = sy-uzeit

end_time = lv_end_time

IMPORTING

duration = lv_seconds.

lv_rem_seconds = lv_total_seconds - lv_seconds.

lv_rem_seconds = lv_rem_seconds MOD 86400.

lv_temp_hours = lv_rem_seconds.

WRITE 😕 lv_temp_hours.

Regards,

Sree

Former Member
0 Kudos
81

Its a very helpful answer