SAP® Documentation

Single view

ABENTIME_SYSTEM_FIELDS - TIME SYSTEM FIELDS

PERFORM Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

System Fields for Date and Time

The following table shows the system fields that contain information about date and time.

System FieldTypeLengthContentGET TIME
sy-datlod-User dateX
sy-datumd-System dateX
sy-daystc1Flag for summer time in the system time zone. During summer time, "X", otherwise " ".-
sy-fdaywb-Factory calendar weekday in the system time zone. "1" for Monday, ..., "5" for Friday.-
sy-timlot-User timeX
sy-tzonei-Time difference between the system time and UTC reference time in seconds, ignoring summer time.-
sy-uzeitt-System timeX
sy-zonloc6User time zone-

The values of all system fields in this table are set implicitly when the program is started, every time a screen of a dynpro is sent, and when the internal session is set. The last column of the table shows which of the system fields can be updated explicitly using the statement GET TIME.

The content of sy-zonlo is the user time zone described under System Time Zone and User Time Zone. The local values of sy-datlo and sy-timlo that make reference to the user time zone are determined from the system time and the system date. If sy-zonlo is initial, sy-timlo and sy-datlo have the same values as sy-uzeit and sy-datum.

Example

If the system time zone is the same as the user time zone, the corresponding system fields for system date and user date and/or system time and user time must be the same.

DATA tz TYPE timezone.
CALL FUNCTION 'GET_SYSTEM_TIMEZONE'
  IMPORTING
    timezone = tz.

IF tz = sy-zonlo.
  ASSERT sy-datum = sy-datlo.
  ASSERT sy-uzeit = sy-timlo.
ENDIF.






Vendor Master (General Section)   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 6248 Date: 20200127 Time: 224221     sap01-206 ( 14 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.