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

About time change

Former Member
0 Likes
394

Hi Gurus,

Here i want to increase time 1 hr or 60 minuets for existing time,,,,

EX if Existing time is 140752 then i have get 150752 time means 1 hr increase of 60 minuets could any body send code for that or any function module providing this solution ...we have to check if hours > 24 also,,,,,,,, it would gar8 help full to me

Nat

2 REPLIES 2
Read only

Former Member
0 Likes
363

check the current time is greater than sy-tzone.

Reward points if useful

Phanindra

Read only

Former Member
0 Likes
363

Hi,

1) Check this example..Add 3600 seconds..

DATA: v_time TYPE syuzeit.

WRITE: / 'Current time', sy-uzeit.

v_time = sy-uzeit + 3600.

WRITE: / 'Current time + 1 hour = ', v_time.

2) You can use the FM TIME_CHECK_PLAUSIBILITY to check for a valid time..

Thanks,

Naren