Skip to Content
Former Member
Apr 21, 2008 at 09:27 PM

System Variable - using time zone


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.