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

system field

Former Member
0 Likes
1,222

hi,

what is the system field for user time.

how it is used. please explain in detail with expamle.

thank u in advance

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
1,195

Hi Sri,

You need to use <b>SY-TIMLO</b> in case your company has multi countries or zones to work with. In other word, global company.

SY-UZEIT is good ONLY if your company only has one zone to work and support with.

Hope this will help.

Regards,

Ferry Lianto

11 REPLIES 11
Read only

Former Member
0 Likes
1,195

System field for time is sy-uzeit.

This field can be basically used in many ways for many purposes which is very difficult to explain.

For example, if you want to track the time of change for a record in a table you can use this field.

Thanks,

Message was edited by: Naren Somen

Read only

0 Likes
1,195

The system field is sy-uzeit. It is a 6 character field which holds the time in the format HHMMSS. When you write this value to a list, it will automatically write in external format as HH:MM:SS.

write:/ sy-uzeit.

This is used( a lot of times ) to print the current time on a report header along with the date, sy-datum. This way the user will always have a record of when the report was ran.

Regards,

Rich Heilman

Read only

0 Likes
1,195

hi

what u explained is for system time, but i want to know the the user time. can u calirfy now.

thank u in advance

regards,

sri

Read only

0 Likes
1,195

hi sri,

<b>sy-timlo:time, local time for user</b>

Message was edited by: PP

Read only

0 Likes
1,195

Ferry gave you the answer. If that is not what you are looking for let us know.

Read only

0 Likes
1,195

My time zone is EST. If I change my default time zone to PST, then when I write Sy-TIMLO, it will give me the time in PST, instead of the system time, which is EST.

You can change the users default, by clicking System, User Profile, Own Data, then click on the defaults tab.

Regards,

Rich HEilman

Read only

Former Member
0 Likes
1,195

HI Srisaihari,

SY-UZEIT

Current (application server) time,

for example 164353, 215312.

***INCLUDE STARTTXT.

WRITE: / 'Program started by', SY-UNAME,

/ 'on host', SY-HOST,

'date:', SY-DATUM, 'time:', SY-UZEIT.

ULINE.

This could produce the following output:

on host ds0025 date: 03/19/1998 time: 09:00:39

Check this once.

https://forums.sdn.sap.com/thread. jspa?threadID=44431&messageID=447605

Regards,

Laxmi.

Message was edited by: Laxmi

Read only

ferry_lianto
Active Contributor
0 Likes
1,195

Hi,

You can use SY-TIMLO (Date and time, local time for user).

WRITE: /01 SY-TIMLO.

For others, SY-DATLO (Date and time, local date of user) and SY-ZONLO (Date and time, time zone of user).

Regards,

Ferry Lianto

Read only

0 Likes
1,195

<b>SY-TIMLO</b>

User’s local time, for example 154353, 225312, …

<b>SY-UZEIT</b>

Current application server time. for example 164353, 215312, …

In my case, both will always be the same.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,195

Hi srihar

sy-TIMLO Local time for user

TSTLO Timestamp (date and time) for user

regards,

keerthi.

Read only

ferry_lianto
Active Contributor
0 Likes
1,196

Hi Sri,

You need to use <b>SY-TIMLO</b> in case your company has multi countries or zones to work with. In other word, global company.

SY-UZEIT is good ONLY if your company only has one zone to work and support with.

Hope this will help.

Regards,

Ferry Lianto