2012 Jul 17 7:56 AM
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
2012 Jul 17 8:04 AM
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.
2012 Jul 17 8:10 AM
Hi ,
add this line of code.
t2 = '043000'.
lv_time = sy-uzeit + t2.
regards ,
Yogendra Bhaskar.
2012 Jul 17 8:24 AM
Hiii,
Try this FM C14B_ADD_TIME this is basic question you can search in se37 *ADD*TIME* or *TIME* .
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |