mcp-sap-gui: Command for Claude Code

.claude/commands/sap-table-dump.md

sap-table-dump is a command for Claude Code from kts982/mcp-sap-gui. It costs 0 tokens per session (420 once invoked), scanned A, original, MIT.

A command for reading every row in a table shown in SAP. It handles ALV grids, SAP's standard data tables, and TableControls, which display only part of a table at once.

In plain words
What is it for?
Use it to export or review complete SAP table contents, including tables that require scrolling or pagination.
Why use it?
It removes the need to copy table data manually or scroll through pages yourself. It also checks whether more rows remain and gathers suitable column headings.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is kts982/mcp-sap-gui's own configuration. It tells Claude Code how to work on mcp-sap-gui itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-sap-gui configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kts982/mcp-sap-gui. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kts982/mcp-sap-gui/master/.claude/commands/sap-table-dump.md
Clone the repo
git clone --depth 1 https://github.com/kts982/mcp-sap-gui

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sap-table-dump

README.md
[![agentmods](https://agentmods.dev/badge/commands/kts982/mcp-sap-gui/sap-table-dump.svg)](https://agentmods.dev/commands/kts982/mcp-sap-gui/sap-table-dump)
Your own site
<a href="https://agentmods.dev/commands/kts982/mcp-sap-gui/sap-table-dump"><img src="https://agentmods.dev/badge/commands/kts982/mcp-sap-gui/sap-table-dump.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00420
Opus 5 $0.00000 $0.00210
Sonnet 5 $0.00000 $0.00084
Haiku 4.5 $0.00000 $0.00042

Measured 8d ago against content hash 9d33ee7e1776, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

sap-table-dump scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/sap-table-dump.md · 33 lines

What it actually says

Read ALL rows from the table on the current SAP screen, handling pagination for both ALV grids and TableControls.

The user wants: $ARGUMENTS

Steps:

  1. Connect to the existing SAP session using sap_connect_existing
  2. Get screen info with sap_get_screen_info to confirm we're on the right screen
  3. Discover screen elements with sap_get_screen_elements to find the table element ID
  4. Identify the table — look for elements with type containing GuiGridView (ALV) or GuiTableControl
  5. Read the table with sap_read_table using a generous max_rows (e.g., 500)
  6. Check the table_type in the response:

If GuiGridView (ALV):

  • ALV grids handle scrolling internally — one sap_read_table call gets all rows up to max_rows
  • If total_rows > rows_returned, increase max_rows and re-read
  • Get column info with sap_get_column_info for proper column headers

If GuiTableControl:

  • TableControls only show visible rows at a time
  • Check total_rows, first_visible_row, and rows_returned in the response
  • If there are more rows beyond what's visible: a. Collect the current page of data b. Use sap_scroll_table_control to scroll to the next page (position = current first_visible_row + rows_returned) c. Read again with sap_read_table d. Repeat until you've collected all rows or reached total_rows
  • Watch for padding rows (all-empty values) at the end of a page — stop collecting when you see them

After collecting all data:

  • Present the data as a well-formatted markdown table
  • Include column headers (use titles from sap_get_column_info if available)
  • Report total row count and any truncation
  • If the user provided specific filter criteria, highlight matching rows
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 33 lines · 0 tokens per session scan A 9d33ee7e1776

Subscribe to this mod's changes

sap-table-dump is a command published in the GitHub repository kts982/mcp-sap-gui (31 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 420 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.