GET TIME STAMP FIELD time_stamp.
This statement assigns a time stamp for the current UTC reference time of the ABAP system> to the variable time_stamp. The data object time_stamp must have either the data type TIMESTAMP or TIMESTAMPL from the ABAP Dictionary corresponding to ABAP type p of length 8 or p of length 11 with seven decimal places. Depending on the data type of time_stamp, the time stamp is created either in short or long form.
The accuracy of the decimal places of the long form depends on the hardware (processor) of the application server. The maximum resolution of 100 ns is not always reached. On some platforms, only a resolution of milliseconds can be reached.
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.
Non-Catchable Exceptions