‎2009 Dec 08 9:05 AM
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
‎2009 Dec 08 9:11 AM
‎2009 Dec 08 9:48 AM
‎2009 Dec 08 10:01 AM
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