‎2007 Oct 04 11:44 AM
Hi,
I am working on a report where in which i have to upload a file to application server.Here while uploading the file i am using v_time variable to display the time when the file gets uploaded into server.I have declared v_time(8) type c.
WRITE sy-uzeit TO v_time USING EDIT MASK '__:__:__'.
but in the application server it is not showing the system time.It is showing some other time.What should be done for the system time to get displayed?
Regards,
Hema
‎2007 Oct 04 11:46 AM
Hi,
You should declare u r varialble type as
sy-uzeit.
Rewardpoints if useful.
Regards
(YUGANDHAR.P)
‎2007 Oct 04 11:46 AM
Hi.
SY-UZEIT store the Current Time on Application Server (R/3 Server)
SY-TIMLO - Stores the Current Time on the Local Time zone.
So try accordingly.
REWARD IF HELPFUL.
‎2007 Oct 04 11:47 AM
HI,
sy-uzeit means it will take the server time.
that may be different from ur working system.
rgds,
bharat.
‎2007 Oct 04 12:01 PM
hi
good
instead of using SY-UZEIT try with SY-TIMLO and check the difference.
thanks
mrutyun^
‎2007 Oct 04 12:04 PM
Hi,
Befor saving sy-uzeit to the varriable use GET TIME. syntax.
so it update system varriable with currewnt system tyme and then you can upload file with current Date and Time.
Regards
Gagan
‎2007 Oct 04 12:18 PM
‎2007 Oct 04 2:34 PM
Try:
data v_time(8).
WRITE sy-uzeit TO v_time USING EDIT MASK '__:__:__'.
Rob
‎2007 Oct 04 12:10 PM
Hi,
No need of using edit mask here as system will format time automatically when u use WRITE --- TO. Try like this
WRITE sy-uzeit TO v_time " shows server time
WRITE sy-timo TO v_time " local time
‎2007 Oct 04 12:17 PM
well the edit mask you are referring to would give you a 10 characters output. i do not wonder that you run into problem trying to get a 10 characters output into a 8 character field.
‎2007 Oct 04 12:23 PM
‎2007 Oct 04 12:29 PM
HI Hema ,
Use The System Variable SY_UZEIT to get the system Time.
<b>Rewards If useful...........</b>