Code: Alles auswählen.
CALL METHOD cl_abap_tstmp=>systemtstmp_utc2syst
EXPORTING
utc_tstmp = lv_timestamp_1
IMPORTING
syst_date = lv_date
syst_time = lv_time.
Code: Alles auswählen.
lv_date = ls_rff_8-referencenumber+(8).
lv_time = ls_rff_8-referencenumber+8(6).
CALL FUNCTION 'ISU_DATE_TIME_CONVERT_TIMEZONE'
EXPORTING
x_date_utc = lv_date
x_time_utc = lv_time
x_timezone = 'CET'
IMPORTING
y_date_lcl = lv_date
y_time_lcl = lv_time
EXCEPTIONS
general_fault = 1
OTHERS = 2.
IF sy-subrc EQ 0.
CONCATENATE lv_date lv_time INTO lv_tstamp.
ENDIF.
Code: Alles auswählen.
data:
lv_date type d,
lv_dst type boolean_flg value abap_true,
lv_time type t,
lv_timestamp type timestamp value '20241027003046'.
convert time stamp lv_timestamp time zone sy-zonlo into date lv_date time lv_time daylight saving time lv_dst.
Folgende Benutzer bedankten sich beim Autor a-dead-trousers für den Beitrag:
A6272