Sap Quick Report
sap_quick_reportExecute SAP report/list transactions by filling selection-screen fields, checkboxes, and radios, pressing F8, then returning results in one call.
Instructions
Execute a transaction, fill the selection screen (fields, checkboxes, radio buttons), press Execute (F8), and return the result — all in one call.
Works with any SAP report/list transaction that has a selection screen (VA05, ME2M, MB51, FBL1N, Z-transactions, etc.).
After execution, you remain on the result screen. If the result is 'unknown', use individual tools to investigate further.
If you already know a transaction shows a popup after F8 (e.g., a variant selection dialog), pass post_f8_keys=['Enter'] to dismiss it automatically.
Do NOT use for:
SE16 (use sap_se16_query instead)
SM37 (use sap_sm37_lookup instead — has job log support)
Transactions without selection screens (e.g., BP, VA01)
SE11/SE24/SE37 (use dedicated lookup tools)
WebGUI-only. Returns an error on desktop backend.
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_quick_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tcode | Yes | SAP transaction code (e.g., "VA05", "ME2M", "FBL1N"). | |
| fields | No | Label-value pairs for text fields on the selection screen. | |
| radios | No | Label-selected pairs for radio buttons on the selection screen. | |
| session | No | Session ID (e.g., "s1", "s2"). None uses primary session. | |
| agent_id | No | Agent ID for multi-agent session binding. | |
| max_rows | No | Maximum rows to read from the result table. Must be >= 1. | |
| checkboxes | No | Label-checked pairs for checkboxes on the selection screen. | |
| output_file | No | If provided, write the result as JSON to this file path. | |
| post_f8_keys | No | Keys to press after F8 to dismiss popups (e.g., ["Enter"]). Max 3 keys. Each key is only pressed if the screen is still unresolved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if success=False | |
| popup | No | Present when a popup dialog is active on screen | |
| table | No | Table data when screen_type is 'table' or 'list' | |
| tcode | Yes | Transaction code that was executed | |
| success | No | Whether the operation succeeded | |
| warnings | No | Non-fatal warnings from the pipeline | |
| page_title | No | Screen title after F8 | |
| screen_text | No | Screen text when screen_type is 'error' or 'unknown' | |
| screen_type | Yes | What appeared after F8: table, list, empty, error, or unknown | |
| active_window | No | Which window was operated on (e.g., 'wnd[0]', 'wnd[1]'). If 'wnd[1]' or higher, a modal dialog is open. | |
| status_bar_type | No | Status bar type if read | |
| status_bar_message | No | Status bar text if read |