sap_run_transaction
Run the ABAP report behind a transaction code, optionally with a selection-screen variant, and return its list output.
Instructions
Run the ABAP report behind a report transaction code, optionally with a selection-screen variant, and return its list output. Resolves the transaction to its program via TSTC, then runs it like sap_run_program (extended timeout with background-job fallback). Parameter 'tcode' (required) is the transaction code. Parameter 'variant' (optional) is a selection-screen variant (create it with sap_save_variant for programs with mandatory fields). LIMITATION: only report transactions (TSTC-PGMNA set) can run headlessly; pure dialog transactions are not supported.
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": {
"tcode": "<tcode>"
},
"name": "sap_run_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tcode | Yes | Transaction code (e.g. SE16, ZXYZ). Will be uppercased. | |
| variant | No | Selection screen variant name (optional). | |
| max_output_lines | No | Maximum output lines to return (default: 500) |