‎2008 Nov 16 6:52 AM
Hi Experts,
I want to add Time Fields.
is there any Function module
eg: 01:02:00 +01:00:00 = 02:02:00
eg:01:59:00 + 00:11:00= 02:10:00
Thanks,
Regards,
Prashanth
‎2008 Nov 16 7:04 AM
‎2008 Nov 16 7:15 AM
thanks for ur reply
I want to add according to the time i mean, considering 60 sec = 1 min,60 min = 1 hr.
Not simple numeric addition
‎2008 Nov 16 8:40 AM
Hi,
If the domain of these fields are of type SYTIME, then adding the fields like a numeric value should suffice.
‎2008 Nov 16 8:53 AM
if both variables are type T then you can just use +
data: time1 type t,
time2 type t.
time1 = '012030'.
time2 = '100102'.
time1 = time1 + time2.
==> time1 = '112132'
time1 = '112030'.
time2 = '180102'.
time1 = time1 + time2.
==> time1 = '052132'
or
You can use C14B_ADD_TIME . It takes Input as Time , Date and the time to be added as input .
‎2008 Nov 17 5:02 AM
Hi,
try these..
C14B_ADD_TIME
EWU_ADD_TIME
DIMP_ADD_TIME
just make the date field blank....
Arunima