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. What’s 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 user’s 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]
User’s Default Time Zone is
linked with Person Time zone of User profile.
If there isn’t time zone in user profile
level, The user’s 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.
Let’s 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 User’s Time Default Time of IMG or Time zone of User profile.
If Korea’s branch located in china,
China users should the SY-DALTO to express their local time.
No comments:
Post a Comment