/sap-project:sap-change-history <object> <key> [--from=YYYYMMDD] [--to] [--changenr=N] [--correlate] | user <U> [--from --to] | window --from=X [--to] [--class=C] | classes [--all]from sap-project
Resolves SAP business tokens to decoded change-document timelines over RFC, sidestepping CDPOS cluster storage limits. Useful for audit trails and evidence gathering.
Ships in sap-project. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You reconstruct a decoded, field-level change timeline for a business object (or a user /
time window) entirely over RFC, and never fabricate: an object with no change documents is
reported as such, and a decode that the object doesn't support is CDH_NO_CHANGES, never
"nothing changed".
Task: $ARGUMENTS
| File | Token / call | Purpose |
|---|---|---|
<SKILL_DIR>/references/sap_change_history_rfc.ps1 | -Action headers|decode|classes|imports | CDHDR scan · wrapper decode · TCDOB · E070 |
<SKILL_DIR>/references/sap_change_history_correlate.ps1 | offline | Time-order changes ⋈ imports ⋈ diagnose evidence |
<SKILL_DIR>/references/sap_change_history_objectclas_map.tsv | map | Business token → OBJECTCLAS + key element (custom override honored) |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_rfc_lib.ps1 | dot-sourced | NCo 3.1 connect/disconnect |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_object_resolver.ps1 | dot-sourced | Read-SapTableRows (CDHDR/TCDOB/E070/DD03L/DD04T) |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_artifact_lib.ps1 | dot-sourced | Artifact registration + Find-SapArtifacts (correlate) |
/sap-login · /sap-dev-init | sub-skills | Pinned RFC profile · deploys the wrapper (this skill never does) |
Custom map override: {custom_url}\sap_change_history_objectclas_map.tsv (same pattern as
abap_naming_rules.tsv). A raw OBJECTCLAS:<class> token bypasses the map for power users.
Resolve work_dir + {RUN_TEMP} (canonical one-liner — sap_connection_lib.ps1 is dot-sourced
there — with Write-Output ('RUN_TEMP=' + (Get-SapRunTemp)) appended). {RUN_TEMP} = 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). Start logging (sap_log_helper.ps1,
state {RUN_TEMP}\sap_change_history_run.json). Pure RFC — no GUI session.
Modes: object (default: <token> <key>), user <U>, window --from/--to, classes.
config <TABLE> (DBTABLOG/SCU3) → phase 2, say not implemented + cite the roadmap, never
a partial read. Defaults: --to=today, --from=to−90d, --max=200, --decode-max=25 (cap 100).
Pinned RFC profile required (/sap-login) — missing → RFC_LOGON_FAILED, STOP. The decode
action self-checks the wrapper (TFDIR FMODE=R); absent → CDH_WRAPPER_MISSING, STOP, point to
/sap-dev-init (which owns the deploy consent — this skill never deploys).
object mode)Map the token → OBJECTCLAS (+ objectclas_s4_alt if the pinned profile is S/4). Unknown
token → CDH_CLASS_UNKNOWN, list the curated tokens, STOP. Build OBJECTID by ALPHA-converting
the key to the key element's internal width — numeric keys get leading zeros (material
100000022 → 000000000100000022), alphanumeric keys stay left-justified (M-01). When
unsure of the width, spot-check with -Action headers -ObjectClass <c> and match the on-screen
OBJECTID.
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_change_history_rfc.ps1" -Action headers -ObjectClass "<CLASS>" -ObjectId "<OBJECTID>" -Max 200 -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"
(user/window modes: -User <U> -FromDate <YYYYMMDD> -ToDate <YYYYMMDD> [-Tcode T].) 0 rows →
CDH_NO_CHANGES (honest empty — "no change documents in window; object may not be
change-doc-enabled"), register nothing, STOP. Emit headers.tsv from the CDH:header lines.
... -Action decode -ObjectClass "<CLASS>" -ObjectId "<OBJECTID>" [-ChangeNr <N>] -SharedDir "..."
Parses CDH:change lines: nr, date, time, user, tcode, tab, field, label, ind, old, new
(DATS/currency come pre-formatted by the FM; ind = I/U/D). The wrapper's decode is the
authoritative field-level source (it reads through the CDPOS cluster / >512-byte limit). A
STATUS: CDH_NO_CHANGES (no decodable positions) means the object class isn't decodable this
way (archived / not change-doc-enabled) — report it, never fabricate. In user/window modes,
decode fans out over the distinct (class,id) pairs from the header scan up to --decode-max;
pairs beyond the cap stay header-only and register -Coverage COULD_NOT_CHECK for the remainder.
Write changes.tsv.
--correlate only)Run -Action imports -FromDate <X> -ToDate <Y> → imports.tsv; optionally Find-SapArtifacts
(diagnose evidence overlapping the window) → an evidence TSV. Then:
... sap_change_history_correlate.ps1 -ChangesTsv changes.tsv -ImportsTsv imports.tsv [-EvidenceTsv ev.tsv] -OutTsv correlate.tsv
→ one time-ordered stream; changes within ±--window minutes of a transport import are flagged
near_import=Y. This registers change-history as a /sap-diagnose evidence source too.
Claude renders change_timeline.md — grouped by change number, who · when · tcode, then
field label: old → new per row (+ the correlate narrative when present). Register each artifact
(Register-SapArtifact -Kind change-history\|change-headers\|change-timeline\|change-correlation,
-ScopeKey CD_<CLASS>_<OBJECTID> / CD_USER_<U> / CD_WINDOW_<from>_<to>, coverage tri-state,
-Rows, -Ticket when supplied). Print the result table + artifact paths.
-Action classes [-All] dumps the curated map validated against live TCDOB/TCDOBT
(--all = every TCDOB class). Read-only.
Log end (SUCCESS/FAILED/SKIPPED + error_class): CDH_CLASS_UNKNOWN / CDH_NO_CHANGES /
CDH_WRAPPER_MISSING / CDH_DECODE_CAPPED / RFC_LOGON_FAILED.
object (headers + decode), user, window,
classes, --correlate. Decode is fully verified end-to-end — e.g. a real material's 59
change rows (STPRS 0→10,000 JPY, DISMM ND→PD, PRCTR →8000999 …) decoded with DDIC field labels,
matching a CDPOS spot-check. Headers/classes/imports are direct RFC_READ_TABLE; decode is
CHANGEDOCUMENT_READ through Z_GENERIC_RFC_WRAPPER_TBL (asXML PARAMETER-TABLE, EDITPOS
bound as the TT_CDRED table type). Decode facts (hard-won, live): the FM keys on
OBJECTCLASS+OBJECTID (change-number alone raises NO_POSITION_FOUND); date-range params must
be ISO YYYY-MM-DD in the asXML; a non-decodable object surfaces as the wrapper's
DYNAMIC_CALL_FAILED and is treated fail-SOFT as CDH_NO_CHANGES.CHANGEDOCUMENT_READ are all present per the plan's probe; CDPOS is CLUSTER
on ECC, which is exactly why decode goes through the FM (never a raw CDPOS read) — one code
path, no release variant. TCDOB pool-read failure degrades classes to map-only (COULD_NOT_CHECK).config <TABLE> (customizing/table history from DBTABLOG via DBLOG_READ_TABLE
through the wrapper — SCU3 headless); the v1.5 RSSCD100 GUI fallback via /sap-run-report for
RFC users lacking table-read auth. Not implemented in v1 (fail-loud stub).RFC_READ_TABLE; the wrapper is invoked ONLY
with CHANGEDOCUMENT_READ. Wrapper missing → fail loud + point to /sap-dev-init; never deploys.user/window CDHDR scans are window- + --max-bounded (CDHDR's key
starts with OBJECTCLAS, so user/date selections scan wide) — the --class filter is strongly
advised for window mode. Output contains usernames (that is the audit purpose); logs honor
log_redact_keys. --decode-max caps the decode fan-out with honest COULD_NOT_CHECK coverage
for the remainder, never a silent short list.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sapdev-ai/sap-dev --plugin sap-project40 skills in this plugin
/sap-auth-diagnoseDiagnoses "no authorization" failures deterministically over RFC and proposes the
exact PFCG fix — no more pasting an SU53 screenshot and hand-searching SUIM. Given
the failed authorization object (+ optional field values, read off SU53 / an ST22
dump / an application-log message), it evaluates the target user against the
AUTHORITATIVE runtime user buffer (`SUSR_USER_AUTH_FOR_OBJ_GET`, remote-enabled on
S/4HANA 1909 + ECC 6) with faithful AUTHORITY-CHECK semantics — one authorization
instance must satisfy every field, '*' matches anything, VON..BIS ranges honoured —
so the verdict can never disagree with the real kernel check the way a hand-rolled
AGR_1251/UST12 join can. It then classifies each failure (`MISSING_OBJECT` /
`MISSING_VALUE` / `BUFFER_STALE`) plus user-level `USER_LOCKED` / `USER_EXPIRED` /
`ROLE_EXPIRED`, names the closest role the user already has (with what it currently
grants), and writes a diagnosis TSV + fix-proposal + ready-to-send security request.
Read-only toward roles and users — the fix is always a proposal, never a write.
Prerequisites: SAP profile via /sap-login (RFC); SAP NCo 3.1 (32-bit). su53 (GUI
auto-scrape of the failed objects) and trace (STAUTHTRACE) modes are the documented
next phase — until then the operator supplies the failed object (Claude decodes a
pasted SU53 into the check input).
/sap-auth-requirementsDerives the SAP authorization requirements a custom development actually needs — the
deliverable Z-transactions never hand the security team. derive reads a program/FM source over
RFC, extracts the EXPLICIT AUTHORITY-CHECK surface plus the IMPLICIT one (CALL TRANSACTION ->
S_TCODE, SUBMIT -> S_PROGRAM, OPEN/DELETE DATASET/TRANSFER -> S_DATASET, CALL FUNCTION
DESTINATION -> S_RFC, DDIC table writes -> S_TABU_DIS incl. dynamic MODIFY (var)), traces each
value to its nearest literal, and validates every object/field/activity against the live
catalog (TOBJ / TACTZ) — emitting a required-auth matrix with per-row CONFIRMED / INFERRED
honesty plus an SU24 proposal draft. su24-audit lists Z/Y tcodes against USOBX_C / USOBT_C and
flags the real gap: NO_PROPOSAL / CHECK_DISABLED / ONLY_S_TCODE / PROPOSAL_PRESENT with a
staleness date. Pure RFC + offline extraction (no wrapper FM, no dev-init, runs on a bare
security profile); a static value that cannot be resolved is INFERRED, never silently
CONFIRMED. Class/interface source needs an SE24 GUI download (pass --source-files) or degrades
to COULD_NOT_CHECK. Owns the AUTHREQ_* finding namespace so it never double-reports with
/sap-review-abap's security dimension. v2: su24-maintain / su21-create (confirm-gated GUI).
Prerequisites: pinned /sap-login RFC profile; NCo 3.1 (32-bit).
/sap-bpManages SAP Business Partners via the BP transaction using SAP GUI Scripting.
Creates new partners (Organization type) or updates existing ones.
Existence check, partner creation with role/grouping selection, and
partner update with field values from a definition file.
Prerequisites: Active SAP GUI session (use /sap-login first).
/sap-config-compareKeyed, row-level RFC diff of ONE customizing table or view across two saved
connection profiles (or two clients of one system) — the shareable answer to
"it works in QAS but not in DEV/PRD". Resolves the object on both sides, computes
the compared-field set (drops the technical client key for client-dependent tables,
excludes unreadable/too-wide columns honestly), guards against an unbounded read,
does a chunked offset-based read of each side, and runs the ONE shared keyed-diff
engine to classify every key LEFT_ONLY / RIGHT_ONLY / CHANGED. Claude then translates
the raw deltas into functional meaning using DDIC texts. Output is a diffable diff.tsv
+ summary, registered for /sap-evidence-pack. Read-only. Prerequisites: two profiles
via /sap-login (pinned LEFT + --against RIGHT); SAP NCo 3.1 (32-bit). No GUI, no
Z-object, no dev-init.
/sap-cutover-runbookTurn a 200-step cutover Excel into a crash-safe, evidence-stamped tracker — the cutover
lead stops doing 3am bookkeeping and answers "are we on the critical path?" instantly.
`init` parses the runbook into a draft ledger behind a mandatory human-curation gate;
`record` stamps start/done/fail events with machine-read RFC evidence (transport import
return code from TPALOG, job status from TBTCO, table row counts) — never a screenshot;
`report` renders the live board with per-phase progress, blockers, and the critical path
over the remaining dependency DAG; `checkpoint --health` composes an advisory go/no-go with
a tri-state system-health snapshot (dumps, update backlog, qRFC/tRFC queues, locks, running
imports). v1 is read-only toward SAP (reads only); `run` auto-execution is v2. Prerequisites:
/sap-login profiles (one per system named in the plan); SAP NCo 3.1 (32-bit). No Z-object,
no dev-init — safe to point at a PRD/QAS cutover target.
/sap-data-volumeRead-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.
Other plugins' skills for the same job