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

extra time should add to current date how?

Former Member
0 Likes
603

Hi ,

i want to add extra time to my variable , can any one plz tell me the process

ex : lv_time is my field this is from system time

now i want to add + 4.30 hrs to that variable , how it is?

Moderator Message: Basic date/time question. Addition/subtraction of date/time are discussed many times. Please search for it.

Message was edited by: Kesavadas Thekkillath

Hi ,

i want to add extra time to my variable , can any one plz tell me the process

ex : lv_time is my field this is from system time

now i want to add + 4.30 hrs to that variable , how it is?

Moderator Message: Basic date/time question. Addition/subtraction of date/time are discussed many times. Please search for it.

Message was edited by: Kesavadas Thekkillath

3 REPLIES 3
Read only

Former Member
0 Likes
565

The time can be added in the following way.

data: lv_time type sy-uzeit.

lv_time = sy-uzeit + 120.

120 represents that '120' seconds will be added to the current time. So you can convert the time to be added to system time to seconds(that would be 16200), and add as above.

Regards,

Karthik.

Read only

yogendra_bhaskar
Contributor
0 Likes
565

Hi ,

add this line of code.

t2 = '043000'.

lv_time = sy-uzeit + t2.

regards ,

Yogendra Bhaskar.

Read only

Aashish28
Contributor
0 Likes
565

Hiii,

        Try this FM C14B_ADD_TIME this is basic question you can search in se37 *ADD*TIME* or *TIME* .