SAP GET RUN TIME ABEXA



Get Example source ABAP code based on a different SAP table
  



Runtime Measurement of Database Reads
The example demonstrates how to use the statement GET RUN TIME FIELD statement at runtime.

ABAP_SOURCE_CODE
DEMO CL_DEMO_GET_RUN_TIME

ABAP_DESCRIPTION
In this example, the runtime of three code segments is examined:
An empty code segment for determining the offset of the runtime measurement
A code segment that reads all data of the database table SBOOK
A code segment that reads two columns of the database table SBOOK
The result shows that the offset of the runtime measurement can be neglected in this case and that reading specific columns of a table is faster than reading entire rows.