‎2008 Jan 24 7:48 PM
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
‎2008 Jan 24 7:57 PM
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
‎2008 Jan 24 8:04 PM
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.
‎2008 Jan 24 8:17 PM
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
‎2008 Jan 24 8:05 PM
check the FM : SUSR_USER_READ
Paramter : USER_LOGONDATA -TZONE
Thanks
Seshu
‎2008 Jan 24 8:17 PM
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
‎2008 Jan 24 8:19 PM
Jack,
the same structure contains local time -> LTIME
Thanks
Seshu