Friday, January 23, 2015

SAP TIP-Difference between sy-datum& sy-datlo



Chapter 077
Difference between sy-datum& sy-datlo
Source : http://abapjoy.blogspot.com

When we write the system data, we often use the sy-datum filed which is  the component of SYST structure. As  you know, syst-datum and sy-datum have a same value because two variables is linked with alias.
Sy-datum and sy-datlo all contain system date. Whats the difference between two system date fields? (this is the same case with sy-uzeit and sy-timlo which contain the system time value)

When user log in SAP system, the basic system information like system date is saved in SYST variable. In this case, user profile information is also saved into system variable SY-ZOLNO. The standard time zone is settled in IMG, T-CODE:SPRO에서 General Settings -> Time Zones -> Maintain System Settings.
 
[Figure1, Time Zone IMG setting]

There are two kinds of Time zone.
First system time zone means the time zone of application sever.
Second system time zone is users default time zone.
For example, Korea use the UTC+9 which is 9 hours faster than Greenwich Time zone.

[Figure 2. Time Zone setting detail]

Users Default Time Zone is linked with Person Time zone of User profile.
If there isnt time zone in user profile level, The users default time zone[Figure 2] in IMG should be used.
[Figure 3. User profile Personal Time Zone setting]

If user input the Personal Time zone, the user use the this Time zone as default.
Lets go back to the first topic.
SY-DATUM system variable is set with System Time zone in IMG.
SY-DALTO system variable is set with the Users Time Default Time of IMG or Time zone of User profile.

If Koreas branch located in china, China users should the SY-DALTO to express their local time.

No comments:

Post a Comment