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

System Variable - using time zone

Former Member
0 Likes
2,565

My program is currently converting date and time into timestamp using sy-zonlo which uses the time zone of the userid running the job. I however, need it to use the timezone of the system, or worst case scenario, hard code it to use Central time. See code below:

CONVERT DATE <fieldname> TIME <fieldname> INTO

TIME STAMP <new field name> TIME ZONE sy-zonlo.

I can't find a system variable that would do this. Changing the time zone of the userid in question is not an option as it is used by many other jobs so changes to it could affect things elsewhere. Last resort would be to create a new user id with the central time zone. But I would prefer to find an ABAP solution if possible.

1 REPLY 1
Read only

Former Member
0 Likes
1,500

Use this FM

>GET_SYSTEM_TIMEZONE