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

How to increase seconds

Former Member
0 Likes
671

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
Read only

Former Member
0 Likes
649

TimeEvent-LTIME = TimeEvent-LTIME + 1

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

3 REPLIES 3
Read only

Former Member
0 Likes
649

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.

Read only

Former Member
0 Likes
650

TimeEvent-LTIME = TimeEvent-LTIME + 1

Read only

Former Member
0 Likes
649

Add one to the result ...

TimeEvent-LTIME = TimeEvent-LTIME + 1.