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

Sy-DATLO

Sharadha1
Active Contributor
0 Likes
3,164

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

6 REPLIES 6
Read only

anversha_s
Active Contributor
0 Likes
1,767

Hi,

It will have the user's time zone

regards

Anver

Read only

Former Member
0 Likes
1,767

hi,

DATLO SYSTDATLO DATS 8 0 <b>Date and time, local date of user</b>

Regards,

Santosh

Read only

Former Member
0 Likes
1,767

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

Read only

Former Member
0 Likes
1,767

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.

Read only

0 Likes
1,767

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

Read only

0 Likes
1,767

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 .