DAYLIGHT
SAVING TIME enables different UTC time stamps to be created
from matching local time stamps within the extra hour when switching
from daylight saving time to winter time.
When the switch is made from winter to daylight saving time, an hour
is lost. For example, in the "CET" time zone in the year 2009, on
March 29, the hour between 02:00 and 03:00 does not exist. If an attempt
is made to convert a time during this missing hour, the statement is
always terminated with the value 12 for sy-subrc because this
time or this local time stamp does not exist.
Example ABAP Coding For the time zone "BRAZIL" , the settings apply
that are described in the example for
CONVERT TIME STAMP in the rule set for time stamps. By specifying
the daylight saving and winter time, two different UTC time
stamps "20030309033000" and "20030309043000" are created from one
specified local time. Without the addition DAYLIGHT SAVING TIME ,
the UTC time stamp "20030309033000" is created.
DATA: dat TYPE d,
tim TYPE t,
tz TYPE ttzz-tzone.
tz = 'BRAZIL'.
dat = '20030309'.
tim = '013000'.
CONVERT DATE dat TIME tim DAYLIGHT SAVING TIME 'X'
INTO TIME STAMP DATA(time_stamp) TIME ZONE tz.
cl_demo_output=>write_data( time_stamp ).
CONVERT DATE dat TIME tim DAYLIGHT SAVING TIME ' '
INTO TIME STAMP time_stamp TIME ZONE tz.
cl_demo_output=>write_data( time_stamp ).
cl_demo_output=>display( ).
Runtime Exceptions
Non-catchable Exceptions
Reason for error: Inconsistent control tables for the conversion.
Runtime error: CONVERT_TSTMP_INCONSISTENT_TAB
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved