Skip to content
Development
Skill

/sap-data-volume

Read-only DB growth + archivability evidence over RFC — the table-growth watch nobody does until the disk is full. `growth` ranks tables by row count (EM_GET_NUMBER_OF_ENTRIES, fast DB-stat counts that work on cluster tables too), diffs against a persisted local snapshot for a

From plugin
sap-dev
9123 skills3 agents

Claude Code

$ npx -y skills add sapdev-ai/sap-dev --skill sap-data-volume --agent claude-code

SKILL.md

sap-data-volume.SKILL.md
name: sap-data-volume
description: |
  Read-only DB growth + archivability evidence over RFC — the table-growth watch nobody
  does until the disk is full. `growth` ranks tables by row count (EM_GET_NUMBER_OF_ENTRIES,
  fast DB-stat counts that work on cluster tables too), diffs against a persisted local
  snapshot for a rows/day trend, and flags known log-table offenders (BALDAT, EDID4, CDPOS,
  DBTABLOG) and Z tables that lack housekeeping. `archivability` maps each archiving object
  to its tables (ARCH_DEF), pulls its run history (ADMI_RUN/ADMI_STATS), and reports whether
  a TAANA age analysis exists. Replaces manual DB02/DB15/SARA spelunking. Prerequisites:
  pinned profile via /sap-login (RFC); SAP NCo 3.1 (32-bit). No GUI, no Z-object, no
  dev-init — safe to point at production. `analyze` (schedule TAANA) is v1.5; `archive-run`
  (SARA write/delete) is v2 and refused in v1.
argument-hint: "growth [--top N] [--tables A,B] [--z-only] [--max-tables N] [--physical]  |  archivability [--object O] [--table T] [--residence-days N]"

SAP Data Volume — Growth & Archivability (read-only)

Automate the read-only DB-volume evidence pass: ranked table growth with a local snapshot trend, log-table + Z-housekeeping flags, and per-archiving-object history + analysis coverage — all over RFC with honest COULD_NOT_CHECK where a source is absent on the release.

Task: $ARGUMENTS

**Pure read-only on SAP** in every v1 mode (RFC_READ_TABLE + EM_GET_NUMBER_OF_ENTRIES). The only local write is the growth snapshot file. `--physical` delegates report RSTABLESIZE to /sap-run-report, which asks its **own** Rule-5 confirm — this skill never pre-answers it.

---

Shared Resources

| File | Token / call | Purpose | |---|---|---| | `<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md` | *(rule)* | Mandatory operating rules — read-only here | | `<SKILL_DIR>/references/sap_data_volume_rfc.ps1` | `-Action growth\|archivability … -OutDir` | The two RFC modes → growth.tsv / archivability.tsv | | `<SKILL_DIR>/references/sap_data_volume_offenders.tsv` | catalog | Known log/growth tables + archiving object + ECC physical cluster; override at `{custom_url}\sap_data_volume_offenders.tsv` | | `/sap-run-report` (Skill tool) | RSTABLESIZE / RSSPACECHECK | `--physical` size pass (its own Rule-5 confirm) | | `/sap-sp02` (Skill tool) | spool → file | `--physical` spool collection | | `<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_artifact_lib.ps1` | Step 6 | Artifact index for /sap-evidence-pack | | `<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_log_helper.ps1` | Step 0.5 / Final | Structured run logging |

---

Step 0 — Resolve Work Directory, OUT, Snapshot Dir

powershell -NoProfile -ExecutionPolicy Bypass -Command ". '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_settings_lib.ps1'; . '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'; Write-Output ('WORK_DIR=' + (Get-SapWorkDir)); Write-Output ('STAMP=' + (Get-Date -Format 'yyyyMMddHHmmss')); Write-Output ('RUN_TEMP=' + (Get-SapRunTemp))"

Resolve the pinned connection's SID+client. Set `{RUN_TEMP}` = the `RUN_TEMP=` value printed above (`Get-SapRunTemp` mints + creates the per-run scratch dir holding the log state file; mint it once here and reuse — re-minting breaks the `-Action end` state-file lookup); `{OUT}` = `Get-SapArtifactDir -ScopeKey SYS_<SID>_<CLIENT> -Skill sap-data-volume`. **Snapshot dir (Bucket A, durable — NOT temp):** `{work_dir}\cache\data_volume\<SID>_<CLIENT>` (the engine derives the real SID+client live from RFC_SYSTEM_INFO / USR02, so pass this dir and it self-creates).

Step 0.5 — Start Logging

powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_data_volume_run.json" -Skill sap-data-volume -ParamsJson "{}"

---

Step 1 — Parse Arguments & Mode

  • **growth** (default): `--top N` (report cutoff, default 20), `--tables A,B` (explicit

scope; else offenders + Z*/Y* tables), `--z-only` (only Z*/Y*), `--max-tables N` (default 200), `--physical` (Step 5 size pass), `--z-threshold N` (Z-housekeeping row threshold, default 1000000).

  • **archivability**: `--object O1,O2`, `--table T1,T2` (reverse-map via ARCH_DEF), or

neither (default = objects with run history), `--residence-days N`.

  • **analyze** → **v1.5**: say `NOT_YET_IMPLEMENTED — schedules a TAANA batch job (Rule 5);

ships in v1.5 with a recorded GUI leg` and STOP.

  • **archive-run** → **v2**: **hard refuse** — `archive-run drives SARA write/delete and is

deferred to phase 2; refused in v1` and STOP. Never attempt it.

Step 2 — Ensure RFC Profile

Pinned via /sap-login. A GUI session is required **only** for the `--physical` delegation chain (/sap-run-report), not for the RFC reads.

Step 3 — growth (read-only)

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_data_volume_rfc.ps1" -Action growth -MaxTables <N> -OffenderFile "<SKILL_DIR>\references\sap_data_volume_offenders.tsv" -SnapshotDir "{work_dir}\cache\data_volume\<SID>_<CLIENT>" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>" -OutDir "{OUT}"

Add `-Tables "A,B"` / `-ZOnly` / `-ZThreshold N` per args. Parse `DATAVOL:` (per-table row/class/sizecat/delta/perday), `DATAVOL_FLAG:` (Z_TABLE_NO_HOUSEKEEPING / LOG_TABLE_LARGE), `DATAVOL_SNAPSHOT:` (BASELINE_CREATED first run — trend `n/a`, honest — else DELTA), `DATAVOL_SKIP:` (table not in DD02L), and `STATUS:`. A connect failure → exit 2, `RFC_LOGON_FAILED`, **no verdict**. A `COUNT_FAILED` row is tri-state — never rendered as 0. The engine writes `growth.tsv` and the snapshot.

Render `growth_report.md` into `{OUT}`: top-N table with rows / class / size-cat / delta / per-day, then the flags section, then (on ECC) the cluster-attribution note for CDPOS/EDID4 (physical size is on CDCLS/EDI40 — `EM_GET_NUMBER_OF_ENTRIES` still counts them fine, verified live). **Grounding rule: every row traces to gr

Read more
@sapdev-ai
Ships withsap-dev

SAP development automation skills for AI coding assistants. Windows-only — the skills drive SAP GUI for Windows via GUI Scripting (plus optional RFC via SAP NCo); there is no macOS/Linux path.

9123 skills3 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of sapdev-ai/sap-dev on GitHub, a chart by star-history.com

Other skills on sap-dev.

sap-activate-object

sap-activate-object

Activates an inactive SAP repository object via SAP GUI Scripting. Routes to the correct transaction by object type: SE38 for…

@sapdev-ai@sapdev-aiInstall Skill
sap-api-advisor

sap-api-advisor

Natural-language SAP API discovery over RFC (no GUI): turn a goal like "create a sales order" or "post a goods movement" into a…

@sapdev-ai@sapdev-aiInstall Skill
sap-atc

sap-atc

Runs the SAP ABAP Test Cockpit (ATC) end-to-end as a quality gate: builds an SCI Object Set scoped to the target object(s),…

@sapdev-ai@sapdev-aiInstall Skill
sap-call-bdc

sap-call-bdc

Executes BDC (Batch Data Communication) sessions in SAP via RFC. Reads SHDB recording files from the bdc/ folder, connects via…

@sapdev-ai@sapdev-aiInstall Skill
sap-change-package

sap-change-package

Changes the package (TADIR-DEVCLASS) assignment of an SAP repository object via the "Object Directory Entry" dialog (Goto >…

@sapdev-ai@sapdev-aiInstall Skill
sap-check-abap

sap-check-abap

Validates ABAP source (report / program / FM / class / include) before deployment — one skill, dimension-dispatched: naming…

@sapdev-ai@sapdev-aiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about sap-data-volume.

Which coding agents can use sap-data-volume?
sap-data-volume installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.