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

regarding calculation time

Former Member
0 Likes
449

hi guriji,

i am working on Capacity Utilization program. For this we are using KAKO table.this table contains start time and finish time . Based on start and finish time i want to calculate no. of working hour.so plz tell me how i calculate the no. of hours.

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
413

Hi Sachin,

You can use FM - SD_CALC_DURATION_FROM_DATETIME

Nag

Read only

0 Likes
413

hi

we dont have date. we have only time and capacity Id.

Read only

0 Likes
413

Hi,

YOu can use following logic

e_tdiff is type FAHZTD.. T1 . initial time... T2 is Final time... TIMEDIFF is type T.

  • Calculate hours difference

TIMEDIFF = T2 - T1.

ASSIGN TIMEDIFF+0(2) TO < HH >.

ASSIGN TIMEDIFF+2(2) TO < MM >.

ASSIGN TIMEDIFF+4(2) TO < SS >.

E_TDIFF = ( < HH > * 10000 ) + ( < MM > * 100 ) + < SS >.

Nag

Edited by: Naga Mohan Kummara on Dec 8, 2009 11:01 AM