‎2007 Jul 09 8:01 AM
hi all,
i want to add 2 times, i.e. if 12:00:00 hrs and 13:00:00 hrs
then its giving me 01:00:00.
Because after 24:00:00,time gets reset.
But i want the time 25:00:00 hrs.
Can i do that.
Thanks in advance.
‎2007 Jul 09 8:02 AM
If your variable is of time then its not possible.
Still if you require that then change the type of the variable.
Regards,
Atish
‎2007 Jul 09 8:19 AM
but does it not set some sort index maybe sy-tabix or something to indicate that it did go once or twice beyond the 24.00.00 hr mark...??
‎2007 Jul 09 8:25 AM
Hi,
No. I don't think it store any result or index in any of the system field.
Regards,
Atish
‎2007 Jul 09 8:05 AM
Hi tatvagna,
By ABAP standards it is not possible,because u can view the time for 1 day not for the week or month.
Logically u think that it is not possible.
Thanks
Sanket.
‎2007 Jul 09 8:21 AM
I know its not possible but can u tell me alternative.
Do u know the function which calculates the time in days and hrs.
‎2007 Jul 09 8:27 AM
Hi ... friend here is the program just execute it and see ...
report asda .
tables : syst .
parameters : time1 like syst-uzeit ,
time2 like syst-uzeit .
data : time3 TYPE STRING ,time4 TYPE STRING,time5 TYPE STRING.
time4 = time1 .
time5 = time2 .
time3 = time4 + time5 .
write /(10) time3 USING EDIT MASK'__:__:__'.output is
<b>12:00:00
13:00:00
25:00:00</b>
reward points if it is usefull.....
Girish
‎2007 Jul 09 3:23 PM
Hello All,
Finally what i am doing is converting the time in seconds, and then adding all the time in seconds and then converting it back to hrs and mins as required....
Thanks to all for the help.
Sorry but this time couldn't find anyone's approach helpful.
Thanks,
Tatvagna.