2007 Jun 04 8:05 AM
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
2007 Jun 04 8:08 AM
2007 Jun 04 8:09 AM
Hi soumya,
Try a look at this function --> L_TO_TIME_DIFF
It should work on your case.
Best Regards,
Victor.
2007 Jun 04 8:11 AM
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
2007 Jun 04 8:41 AM