Application Development 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: 

How to increase seconds

Former Member
0 Kudos

Hi

I have this filed called TimeEvent-LTIME which is time type.

It holds time like 054333.

Now if i want to manually increase a second how can i do that?

I want to make it 054334.

Please help

1 ACCEPTED SOLUTION

Former Member
0 Kudos

TimeEvent-LTIME = TimeEvent-LTIME + 1

3 REPLIES 3

Former Member
0 Kudos

This code worked for me


data: time like sy-uzeit.
data: time2 like sy-uzeit.

time = sy-uzeit.
time2 = time + 65.

write:/ time, time2.

I used 65 to prove it added to the minute properly.

Former Member
0 Kudos

TimeEvent-LTIME = TimeEvent-LTIME + 1

Former Member
0 Kudos

Add one to the result ...

TimeEvent-LTIME = TimeEvent-LTIME + 1.