RuntimeRunProgram
Runs an ABAP program or report by name and returns its output; optionally starts a profiler trace for later retrieval and supports background execution.
Instructions
[read-only] [runtime] Runs the ABAP program (report) named by program_name and returns its output. Set profile=true to also start a profiler trace; the trace is then found in the list of profiler trace files (program execution is fire-and-forget, so the traceId arrives later, through that list). 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | When true, run with the profiler. Default false. Trace must be located afterwards via RuntimeListProfilerTraceFiles — program execution does not return traceId synchronously. | |
| 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. | |
| description | No | Profiler trace description (only used when profile=true). | |
| program_name | Yes | ABAP program name to execute. | |
| all_db_events | No | ||
| explicit_on_off | No | ||
| with_rfc_tracing | No | ||
| all_dynpro_events | No | ||
| all_procedural_units | No | ||
| max_time_for_tracing | No | ||
| max_size_for_trace_file | No | ||
| all_misc_abap_statements | No | ||
| all_system_kernel_events | No | ||
| all_internal_table_events | No |