Sunday, July 13, 2014

Time zone of SAP application server

Time zone of SAP system is very important settings.  When we compare particular times it only makes sense when all compared times are in the same time zone. SAP system would normally inherit time zone from operating system. However it can be customized in TA STZAC. Particular value of time zone customized in this TA is valid for all system’s clients.


Once system time is customized all conversion to e.g. local time of user or conversion to any other time zone are done by converting of system time to UTC and then to desired time zone.

Also ABAP commands:

CONVERT DATE dat
        [TIME tim [DAYLIGHT SAVING TIME dst]]
        INTO TIME STAMP time_stamp TIME ZONE tz.
CONVERT TIME STAMP time_stamp TIME ZONE tz INTO [DATE dat]
             [TIME tim] [DAYLIGHT SAVING TIME dst].

Are using such a conversation. Notice that time zone for those ABAP statements need to be defined as type of TZNZONE which refers to table TTZZ for possible values.

No comments: