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

FUNCTION 'GET_SYSTEM_TIMEZONE': difference to SY-ZONLO

Clemenss
Active Contributor
0 Likes
2,584

Hi you,

always I used sy-zonlo to determine the time zone of the server. Now I'm working in an environment where someone always used FUNCTION 'GET_SYSTEM_TIMEZONE' for the same purpose.

What is the possible difference exceot that the function call may slow down the process.

TIA,

Clemens Li

2 REPLIES 2
Read only

Former Member
0 Likes
1,097

Hi,

I would assume there are two possible reasons:

1. The function module selects the timezone from a configuration table viz. TTZCU. Hence, here the timezone to be returned can be changed by a system administrator as per requirement by changing the table entry. However if you use the system field SY-ZONLO, you cannot change the system field.

2. The developer who used the function module, was not aware of a available system field :-). However as you said, using a system field is always beneficial from performance perspective.

Cheers,

Aditya

Read only

Clemenss
Active Contributor
0 Likes
1,097

We just use SY-ZONLO as abbreviation of FUNCTION 'GET_SYSTEM_TIMEZONE' and have no issues.

Regards,

Clemens