/sap-project:sap-interface-inventory scan [--sources rfc,idoc,zfm,odata,proxy,jobs] [--max-rows N] [--namespace Z,Y] | doc <idoc MESTYP|rfcfm FMNAME|dest RFCDEST> [--format md|docx] | refreshfrom sap-project
Enumerates a SAP system's integration surface (RFC, IDoc, OData, ABAP proxies, batch jobs) into a named interface register. Useful for S/4HANA migration, system consolidation, and interface gap analysis.
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 enumerate a system's interface surface and correlate it into a register, or reverse-engineer one interface into a spec. You are read-only — no writes, no report execution, no GUI, no transports.
Task: $ARGUMENTS
The six source reads are deterministic (references/sap_interface_scan.ps1); the
correlation into named interfaces is yours (Claude), under a strict
CONFIRMED/INFERRED rule. Per-interface docs come from references/sap_interface_doc.ps1.
| File | Token / call | Purpose |
|---|---|---|
<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md | (rule) | Read-only operating rules |
<SKILL_DIR>/references/sap_interface_scan.ps1 | -Sources -MaxRows -Namespace -SharedDir -SkillDir [-OutputDir] | Six-source RFC enumerator |
<SKILL_DIR>/references/sap_interface_doc.ps1 | -Mode idoc|rfcfm|dest -Target <x> -SharedDir | Per-interface spec extractor |
<SKILL_DIR>/references/interface_program_map.tsv | read by the scanner | Batch-job program → technology/direction map (customer-overridable) |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_object_resolver.ps1 | dot-sourced | Read-SapTableRows, SID resolution |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_artifact_lib.ps1 | dot-sourced | Scope key, artifact dir, Register-SapArtifact |
/sap-idoc | sub-skill (soft) | doc-mode IDoc rendering / live example decode when installed |
/sap-explain-object | sub-skill | doc --deep handler narration; docx render path |
powershell -NoProfile -ExecutionPolicy Bypass -Command ". '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'; Write-Output ('WORK_DIR=' + (Get-SapWorkDir)); Write-Output ('RUN_TEMP=' + (Get-SapRunTemp))"
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_interface_inventory_run.json" -Skill sap-interface-inventory -ParamsJson "{}"
Mode dispatch (all read-only, no confirm gates):
scan — --sources (subset of rfc,idoc,zfm,odata,proxy,jobs, default all 6),
--max-rows (default 5000/source), --namespace (default Z,Y for source 3),
--profile <name> (cross-system inventory via the /sap-login second-profile pattern).doc — target token: idoc <MESTYP|IDOCTYP>, rfcfm <FUNCNAME>, or dest <RFCDEST>;
--format md|docx (default md); --deep (chain /sap-explain-object --spec on the handler).refresh — v1.5; if requested, say it is not yet implemented and offer scan.A pinned RFC profile is required (/sap-login). The readers self-connect from the
pinned (or --profile) profile. Connect failure → exit 2, RFC_LOGON_FAILED — fail
loud, never present a partial register as complete. No GUI session needed.
Run via 32-bit PowerShell:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_interface_scan.ps1" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>" -SkillDir "<SKILL_DIR>"
Append -Sources ..., -MaxRows N, -Namespace Z,Y, -CustomUrl "{custom_url}" as
applicable. The scanner writes per-source TSVs into a system-scoped artifact dir
(SID_<SID>_<CLIENT>), registers each, and prints:
SRC: <source> rows=<n|">cap"> coverage=<CHECKED|COULD_NOT_CHECK|NOT_APPLICABLE> file=<tsv>
SCOPE_KEY: SID_<SID>_<CLIENT> ARTIFACT_DIR: <dir> STATUS: OK|PARTIAL|RFC_ERROR
Immediately echo every COULD_NOT_CHECK / NOT_APPLICABLE source to the user —
these become Gaps rows, not silent omissions. rows=">N" means the cap was hit (at
least N; raise --max-rows for exact). RFC_ERROR (exit 2) → stop, RFC_LOGON_FAILED.
Read the per-source TSVs from ARTIFACT_DIR and cluster them into named logical
interfaces. Write interface_register.tsv with columns:
IFACE_ID · NAME · TECHNOLOGY(RFC|IDOC|ODATA|PROXY|HTTP|FILE) · DIRECTION(IN|OUT|BIDIR|UNKNOWN) ·
STATUS(CONFIRMED|INFERRED) · PARTNER_OR_DEST · MESSAGE_OR_SERVICE · HANDLER · JOBNAME ·
EVIDENCE(source:key;…) · NOTE
Hard rule — CONFIRMED vs INFERRED: a row is CONFIRMED only when a direct
config chain links its evidence (e.g. an EDP21 inbound row + its EDIFCT handler;
an RFCDES destination row). Any name-similarity or job-heuristic link stays
INFERRED. Never upgrade past INFERRED without a config chain. Fill EVIDENCE
with the concrete source rows (e.g. we20:LS/INVOIC;edifct:INVOIC->IDOC_INPUT_INVOIC).
Then write interface_register.md: the register grouped by technology, plus a
mandatory Gaps section listing (a) every COULD_NOT_CHECK / NOT_APPLICABLE source
of this run and (b) the v2-deferred sources not scanned (Z-source CALL FUNCTION … DESTINATION scan, SOAMANAGER runtime config). The register never pretends coverage
it does not have.
Register the correlated outputs (the per-source TSVs were already registered by the scanner):
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command ". '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_artifact_lib.ps1'; Register-SapArtifact -Skill 'sap-interface-inventory' -ScopeKey '<SCOPE_KEY>' -ScopeKind 'SYSTEM' -Kind 'interface_register' -Format 'tsv' -Path '<ARTIFACT_DIR>\interface_register.tsv' -Coverage '<CHECKED_CLEAN|COULD_NOT_CHECK>' -System '<SID>' -Client '<CLIENT>'"
Use COULD_NOT_CHECK coverage whenever any source was COULD_NOT_CHECK/NOT_APPLICABLE.
Print a summary table: counts per technology + direction, and coverage per source.
IFACE_ID → look up its row via Find-SapArtifacts -Kind interface_register
(newest) and map to an idoc/rfcfm/dest token.idoc <MESTYP> / rfcfm <FM> / dest <RFCDEST>) → use as-is.C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_interface_doc.ps1" -Mode idoc -Target INVOIC01 -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"
Reads DOC: + JSON: + STATUS: OK|NOT_FOUND|RFC_ERROR. The JSON holds the raw
segment tree (PT_SEGMENTS with parent PARSEG, MUSTFL, OCCMIN/OCCMAX, HLEVEL)
source_we20.tsv, and
the handler FM. When /sap-idoc is installed, delegate segment rendering + a live
example decode to it; otherwise the JSON above is the dependency-free fallback.--deep → /sap-explain-object <FM> --spec for handler narration.--format docx → render via the docx skill (best-effort). Register the spec:
Register-SapArtifact … -Kind interface_spec -Format md|docx.
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action end -StateFile "{RUN_TEMP}\sap_interface_inventory_run.json" -Status SUCCESS -ExitCode 0
Connect failure → -Status FAILED -ErrorClass RFC_LOGON_FAILED; every requested
source unavailable → -Status FAILED -ErrorClass IFACE_SOURCE_UNAVAILABLE.
scan (all 6 sources) + doc (IDoc + RFC-FM flavors, docx).refresh NEW/GONE/CHANGED delta (v1.5); Z-source
CALL FUNCTION … DESTINATION scan via RS_ABAP_SOURCE_SCAN (confirm-gated report,
/sap-run-report); SOAMANAGER runtime reconstruction; OData/proxy doc flavors./IWFND/I_MED_SRH on ECC →
Gateway not installed; SPROXHDR on a proxy-less release) becomes a
NOT_APPLICABLE / COULD_NOT_CHECK row + a Gaps entry, never a thinner register.
rows=">N" is honest ("at least N") — RFC_READ_TABLE cannot aggregate.RFCOPTIONS parser masks credential-shaped tokens before
anything reaches the TSV/logs. RFCDES read authority is often restricted — a denied
table surfaces as COULD_NOT_CHECK with the auth object named.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sap-interface-inventory, rfc, idoc, sap-odata, abap-proxy, interface-documentation
40 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-change-historyAnswers "who changed this object / this data, and when" headlessly over RFC — no more
hand-joining CDHDR/CDPOS in SE16N and decoding cluster rows by eye. Resolves a business
token (PO, customer, vendor, material, sales order, G/L account, cost center …) to its
change-document class, scans CDHDR for the change headers, then pulls the fully DECODED
field-level rows (table · field · old → new, with DDIC field labels) via CHANGEDOCUMENT_READ
through the dev-init RFC wrapper — which sidesteps both the CDPOS 512-byte RFC_READ_TABLE
limit and ECC-6's CDPOS cluster storage in one call. Renders an auditable timeline + an
evidence-grade TSV, and (`--correlate`) time-orders the changes against transport imports
and /sap-diagnose evidence so "TR imported → field changed 5 min later" reads as one story.
Read-only; no writes, no SQL, no GUI. Also does `user <U>` / `window --from/--to` scans and
a `classes` map dump. Prerequisites: pinned RFC profile via /sap-login; the dev-init wrapper
Z_GENERIC_RFC_WRAPPER_TBL (via /sap-dev-init — never deployed by this skill); SAP NCo 3.1 (32-bit).
/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.
npx claudepluginhub sapdev-ai/sap-dev --plugin sap-projectOther plugins' skills for the same job