Sap Sm30 Lookup
sap_sm30_lookupLook up SAP SM30 maintenance view entries in read-only mode to get structured data with parsed columns instead of navigating the transaction manually.
Instructions
Look up SAP table maintenance view entries from SM30 (read-only display mode). USE THIS instead of sap_transaction('SM30') - faster and returns structured data. Returns entries from the maintenance view with dynamically-parsed columns. Supports any flat table view (e.g., V_T005 for countries, custom Z* views). Non-flat views (SM34/cluster/hierarchical) are detected and reported as unsupported. Note: only the first page of rows is returned (typically ~12 rows); views with more entries will report the total row_count from the view header.
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": {
"view_name": "<view_name>"
},
"name": "sap_sm30_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Session ID (e.g., "s1", "s2"). None uses primary session. | |
| agent_id | No | Agent identifier for binding check. Optional. | |
| view_name | Yes | The maintenance view or table name (e.g., 'V_T005', 'V_T002') | |
| output_file | No | If provided, write full results to this JSON file within the configured output directory (OUTPUT_DIR, default: current working directory) and return summary. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |