Get Example source ABAP code based on a different SAP table
Standard SAP Help for GET_TIME
GET TIME
Short Reference • GET TIME ABAP Statement
ABAP_BASIC_OBS GET TIME [FIELD tim].
ABAP Addition ... FIELD tim
What does it do? Without the addition FIELD, thesystem fields for date and time, sy-datlo, sy-datum, sy-timlo, and sy-uzeit, are set to the current value. The content of the system fields sy-dayst , sy-fdayw, sy-tzone, and sy-zonlo is not updated.
Latest notes:Except for GET TIME, the system fields are updated after starting a program, after sending a screen , and after changing the internal mode. • FIELD GET TIME
ABAP Addition
What does it do? The addition FIELD is used to pass the currentsystem time in the format 'hhmmss' to the variable tim instead of sy-uzeit, and none of the system fields are updated. The return value of the statement has data type t. The following can be specified for tim: An existing variable of the data type t or a variable to which the type t can be converted. An inline declaration DATA(var), where a variable of type t is declared.