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

specific user local time

Former Member
0 Likes
1,162

Hi abap gurus,

we have some user in asia and some in usa.

i want to find specific user local time and date.

can you help me out how can i find this .

Thanks,

Jack

6 REPLIES 6
Read only

Former Member
0 Likes
1,006

You can find the current users local date/time as follows:

SY-DATLO Local Date for Current User

SY-TIMLO Local Time of Current User

SY-ZONLO Time Zone of Current User

Hope that helps,

Michael

Read only

Former Member
0 Likes
1,006

Hi Micheal,

Thanks for your reply but i know this variable but i want to find time for some other user who are in asia.

how can i find time for those user. is there any function module or table where i need to pass user name and i will get their local time and zone.

Read only

0 Likes
1,006

The table where the users time zone is stored is USR02 - whatever the user stores as his default time zone in his user parameters you can find in field TZONE in table USR02.

With the time zone you can always calculate the local time of the user based on the system time and timezone.

Hope that helps.

Michael

Read only

Former Member
0 Likes
1,006

check the FM : SUSR_USER_READ

Paramter : USER_LOGONDATA -TZONE

Thanks

Seshu

Read only

Former Member
0 Likes
1,006

Thanks seshu,

I check that function module . but it gives me time zone . but i want local time .

how do i count time for that specific zone on the base of system time .

Thanks,

Jack

Read only

0 Likes
1,006

Jack,

the same structure contains local time -> LTIME

Thanks

Seshu