Ansicht
Dokumentation

ABAPGET_TIME - GET TIME

ABAPGET_TIME - GET TIME

PERFORM Short Reference   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

GET TIME

Short Reference



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, 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.

Note

Besides with GET TIME, the system fields are updated after a program is started, a screen layout is sent, and the internal session is changed.

Example

Approximate runtime measurement. The statement GET RUN TIME should be used instead.

Addition

... FIELD tim

Effect

The addition FIELD is used to pass the current system 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 the 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.

Example

The example has the same function as the previous example.






CL_GUI_FRONTEND_SERVICES - Frontend Services   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2517 Date: 20240419 Time: 003921     sap01-206 ( 39 ms )