ABAPGET_TIME-STAMP - GET TIME-STAMP
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up CPI1466 during BackupThis documentation is copyright by SAP AG.
GET TIME STAMP
Syntax
GET TIME STAMP FIELD time_stamp.
Effect
This statement assigns a time stamp for the currentUTC reference time of theASABAP> to the variable time_stamp. The data object time_stamp must have either thedata type TIMESTAMP or TIMESTAMPL from the ABAP Dictionary corresponding to ABAP type p of length 8 or p of length 11 with sevendecimalplaces. Depending on the data type of time_stamp, the time stamp is created either in short or long form.>
Note
The accuracy of the decimal places of the long form depends on the hardware (processor) of theapplicationserver. The maximum resolution of 100 ns is not always reached. On some platforms, only a resolution of milliseconds can be reached.
Example
Determining the current time stamp in the long form and using it to log the point in time, at which a row is inserted into a database table.
DATA: BEGIN OF wa,
...
time_stamp TYPE timestampl,
...
END OF wa.
...
GET TIME STAMP FIELD wa-time_stamp.
INSERT dbtab FROM wa.
Exceptions
Non-Catchable Exceptions
- Cause: The target field f differs from the reference field with regard to type, length, or decimal places.
Runtime Error: GET_TIMESTAMP_FORMAT
BAL_S_LOG - Application Log: Log header data Vendor Master (General Section)
This documentation is copyright by SAP AG.
Length: 2657 Date: 20120522 Time: 063954 triton ( 89 ms )






