Application Development and Automation 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: 
Read only

time calculation

Former Member
0 Likes
582

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
Read only

Former Member
0 Likes
535

Use FM ISP_TIME_BETWEEN_DATES.

Read only

Former Member
0 Likes
535

Hi soumya,

Try a look at this function --> L_TO_TIME_DIFF

It should work on your case.

Best Regards,

Victor.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
535

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

Read only

Former Member
0 Likes
535

Its a very helpful answer