abap_trace
Trace ABAP runtime executions to measure call times and database accesses, then read, list, or delete the recorded runs.
Instructions
ABAP runtime tracing (SAT): records everything a traced request's dispatch touches — time per call and every database access. op="run" (default) traces one execution of a class/report and reads the result back; op="start" arms a request to trace a later run yourself; op="list" shows existing runs/requests; op="read" reads a run's hit list, DB accesses, or call tree; op="delete" removes a run or request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | A trace run id (op=read) or run/request id (op=delete); bare id or the full path a previous list/create answered with. | |
| op | No | Operation. Default "run". One of: start, run, list, read, delete. | |
| top | No | Cap on rows shown. Default 20, max 100. op=read (hitlist/tree) and op=run only. | |
| kind | No | What to list. Default "runs". One of: runs, requests. op=list only. | |
| root | No | Anchor the tree view at the first call-tree node matching this text (case-insensitive substring on description or calling-program name), overriding the automatic entry-node anchor. op=read view=tree only. | |
| type | No | ADT type, e.g. CLAS/OC, when ambiguous. op=start/run only. | |
| view | No | What to read. Default "hitlist". One of: hitlist, db, tree. op=read only. | |
| depth | No | Max call-tree depth relative to the traced object's own entry node. Default 4, max 12. op=read view=tree only. | |
| object | No | Class or report to trace. Required for op=start and op=run. | |
| aggregate | No | Aggregate repeated calls (no call tree afterwards). Default true. op=start/run only. | |
| db_events | No | Record database events. Default true. op=start/run only. | |
| sql_trace | No | Record SQL statements. Default true. op=start/run only. | |
| executions | No | How many executions the request stays armed for, default 1, max 5. op=start only — op=run always arms a single execution. | |
| description | No | Short label for the trace request (max 60 chars). op=start/run only. | |
| max_seconds | No | Trace duration cap in seconds. Default 600, max 1800. op=start/run only. | |
| max_size_kb | No | Trace file size cap in KB. Default 30720, max 102400. op=start/run only. | |
| internal_tables | No | Record internal-table operations. Default false. op=start/run only. | |
| procedural_units | No | Record procedural units (FORM/FUNCTION/METHOD calls). Default true. op=start/run only. |