‎2006 Nov 07 5:21 AM
Hi,
i want to know what the system variable SY-DATLO has?
The documentation says that it has the user's local time.
when i call an RFC from the webdynpro java application which returns the SY-DATLO,and i am calling the webdynpeo java application from an iview in the portal,does it have the j2ee sever time or the time according to the user's time zone?
Thanks in advance,
Sharadha
‎2006 Nov 07 5:24 AM
‎2006 Nov 07 5:25 AM
hi,
DATLO SYSTDATLO DATS 8 0 <b>Date and time, local date of user</b>
Regards,
Santosh
‎2006 Nov 07 5:26 AM
sy-datlo: Date in the current user's time zone.
With the exception of sy-datlo and sy-timlo, all system fields refer to the local date and time of the current SAP system. The ABAP runtime environment clock is synchronized with the database server clock at regular intervals in order to calculate the local time of the SAP system. During the synchronization process, the ABAP runtime environment clock is set to the database server clock. Because this happens on all application servers in an SAP system, the ABAP runtime environment clock is synchronous with the clocks on all other application servers and with the database system clock, and thus shows the local time of the entire SAP system. The time zone on which the local time of an SAP system is based is the only entry in the database table TTZCU.
The content of sy-zonlo is taken from the user master record of the current user. The values of sy-datlo and sy-timlo are calculated from sy -datum and sy-uzeit and from the time zone of the SAP system for the time zone in sy-zonlo. If the user master record does not contain a time zone, or if it contains an invalid or an inactive time zone, sy-datlo and sy-timlo are set to the values of sy -datum and sy-uzeit. All valid time zones are defined in table TTZZ.
For more details on this, Have a look at below weblog by Horst Keller.
/people/horst.keller/blog/2004/11/29/abap-geek-8-150-summertime-blues-133
Best Regards,
Vibha
*Please mark all the helpful answers
‎2006 Nov 07 6:09 AM
Hi shradha,
1. It is not the users local machine
date and time.
2. Usually the server date and time
sy-datum sy-uzeit
will be same as
sy-datlo sy-timlo
3. it will be different only if
the USERS SETTINGS in Su01
is different then that of application server settings
4. Eg. Server is in INDIA,
and user is in USA.
then only this field will be different.
regards,
amit m.
‎2006 Nov 07 6:47 AM
Hi all,
Thanks a lot for the answers..but when i said USER, i din mean the backend user, i meant the portal user, and the timezone of the portal user..
any ideas now??
Regards,
Sharadha
‎2006 Nov 07 7:09 AM
Hi again,
1. when ever portal user is there,
there is a corresponding r/3 user created.
2. The portal user is MAPPED to the r/3 user,
which ultimately logs in to r/3.
3. So this r/3 users settings are important.
regards,
amit .