GET TIME

Short Reference

Syntax

GET TIME [FIELD tim].

Addition:

... FIELD tim

Effect

Without the addition FIELD, the system fields for date and time sy-datlo, sy-datum, sy-timlo, sy-uzeit, and sy-zonlo are set to the current value. The content of the system fields sy-dayst, sy-fdayw, and sy-tzone is not analyzed.

Addition

... FIELD tim

Effect

Using the addition FIELD, the current time is transmitted in the format HHMMSS into the variable tim and none of the system fields are updated. The return value of the statement is of the data type t. For tim, a suitable (prior to Release 6.10 flat) data object into which the return value can be converted must be specified.

Note

Except for GET TIME, the system fields are updated after starting a program, after sending a screen, and after changing the internal mode.