RuntimeRunClass
Executes an ABAP class that implements if_oo_adt_classrun and returns its console output, optionally with profiler tracing.
Instructions
Runs an ABAP class (CLAS) implementing if_oo_adt_classrun and gives its console output, under the ABAP profiler when asked.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"class_name": "<class_name>"
},
"name": "RuntimeRunClass"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | When true, run with the profiler and search the profiler feed for the resulting traceId. Default false. | |
| aggregate | No | ||
| sql_trace | No | ||
| amdp_trace | No | ||
| background | No | When true, the run goes on in the background on an ABAP session of its own and the call answers at once with a run_handle; read its answer later with GetBackgroundRun, and remove it with DiscardBackgroundRun. A started run cannot be stopped. No default: without it the call waits for the run to end. | |
| class_name | Yes | ABAP class name to execute. | |
| description | No | Profiler trace description (only used when profile=true). | |
| all_db_events | No | ||
| explicit_on_off | No | ||
| with_rfc_tracing | No | ||
| all_dynpro_events | No | ||
| trace_lookup_uris | No | Accepted for backward compatibility; no longer affects trace lookup. adt-clients 19 lists the profiler feed as one endpoint, optionally filtered by user — there is nowhere to put a URI. | |
| max_trace_attempts | No | Max attempts to poll the profiler feed for the trace this run produced (default 5). Only used when profile=true. | |
| all_procedural_units | No | ||
| max_time_for_tracing | No | ||
| trace_retry_delay_ms | No | Delay in ms between profiler-feed polling attempts (default 2000). Only used when profile=true. | |
| max_size_for_trace_file | No | ||
| all_misc_abap_statements | No | ||
| all_system_kernel_events | No | ||
| all_internal_table_events | No |