RuntimeRunClass
Runs an ABAP class that implements if_oo_adt_classrun and returns its console output; enable profiling to capture a trace for performance analysis.
Instructions
[read-only] [runtime] Runs the ABAP class named by class_name, which implements if_oo_adt_classrun, and returns its console output. Set profile=true to also capture a profiler trace: schedules the trace, runs the class under it, then searches the profiler feed for the id this run produced (bounded by max_trace_attempts/trace_retry_delay_ms). If the trace appears only after that bound, the run still answers success with output and profiler_id, trace_id absent — the trace is then found later in the list of profiler trace files. When profile is any value but true, recordable: in batch mode a call is recorded under the next number and answers with empty content; its answer is read by number after the batch ends.
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 |