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

ADD Time Fields

Former Member
0 Likes
820

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

5 REPLIES 5
Read only

Former Member
0 Likes
775

You can use

ADD Time-1 TO Time-2

Read only

0 Likes
775

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

Read only

Former Member
0 Likes
775

Hi,

If the domain of these fields are of type SYTIME, then adding the fields like a numeric value should suffice.

Read only

Former Member
0 Likes
775

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 .

Read only

Former Member
0 Likes
775

Hi,

try these..


C14B_ADD_TIME
EWU_ADD_TIME
DIMP_ADD_TIME

just make the date field blank....

Arunima