run_sap_report
Runs an SAP GUI report by transaction code or program and saves ALV output to Excel or classic lists to text; returns the file path and preview for reading.
Instructions
Run an SAP GUI report (tcode or program) and save its output: ALV to Excel with the report's own headings (Downloads/SAP reports), classic lists to text. Returns path, columns, preview; read the file for the rest. ASK THE USER FIRST before any report that may post, change or send anything. variant: saved variant (easiest). selections override it: {"S_BUKRS": "1000", "P_KEYDT": "20260930", "S_KUNNR": ["1000","1001"], "S_BUDAT": {"low": "20260401", "high": "20260930"}}, internal formats. max_rows max 5000. No popups; must finish in ~55 s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | ||
| report | Yes | ||
| variant | No | ||
| max_rows | No | ||
| selections | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |