/sap-project:sap-sm35 list [<SESSION>] [--status new|error|processed|inprocess|all] [--created-by U] [--from YYYYMMDD] [--to YYYYMMDD] | process <SESSION> | triage <SESSION>from sap-project
Lists, processes, and triages SAP batch-input (SM35) sessions headless over RFC. Useful for monitoring failed sessions and error volumes without GUI.
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 list and triage batch-input sessions and, on request, process them — headless over RFC. list and triage are read-only; process is confirm-gated because it executes queued transactions.
Task: $ARGUMENTS
| File | Token / call | Purpose |
|---|---|---|
<SAP_DEV_CORE_SHARED_DIR>/rules/safety_policy.md + <SAP_DEV_CORE_SHARED_DIR>/scripts/sap_safety_gate.ps1 | Rule 0 | Environment guard — Step 3 runs -Action assert before the write |
<SKILL_DIR>/references/sap_sm35_list.ps1 | -Session -Status ... | Session lister + APQI-stat triage + process poll |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_rfc_lib.ps1 · sap_connection_lib.ps1 | dot-source | RFC connect |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_finding_lib.ps1 · sap_artifact_lib.ps1 | dot-source | Findings + evidence |
/sap-run-report · /sap-call-bdc · /sap-rfc-wrapper | sub-skills | RSBDCSUB execution / rerun (v1.5) / BDC content read (v1.5) |
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_sm35_run.json). Pinned RFC profile via /sap-login.
list (default) | process | triage. Uppercase <SESSION>. process requires a session name.
... sap_sm35_list.ps1 [-Session <G>] [-Status new|error|processed|inprocess|all] [-CreatedBy U] [-FromDate ..] [-ToDate ..] -Max 100 -OutDir "{RUN_TEMP}\sm35"
Renders SM35: lines as a table (name / state(label) / created / trans / errors / msgs / log /
prog) + sm35_sessions.tsv. LISTED n=0 is a normal empty result, never an error. RFC down ->
SM35_RFC_UNAVAILABLE (fail loud -> /sap-doctor).
Rule 0 first (safety_policy.md; process only — list/triage skip it):
powershell -NoProfile -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_safety_gate.ps1" -Action assert -Skill sap-sm35 —
SAFETY: ALLOW (0) proceed; TYPED_CONFIRM_REQUIRED (3) -> the operator types the shown
PROD <SID>/<CLIENT> token, re-run with -ConfirmationText '<their verbatim answer>', proceed only
on ALLOW_CONFIRMED; REFUSED class=<C> (1) / ERROR (2) -> STOP, end FAILED with
-ErrorClass <C>, relay the remediation lines — never bypass or work around it manually. The composed /sap-run-report Rule-5 confirm still applies after ALLOW/ALLOW_CONFIRMED.
list -Session <G>: session exists and QSTATE is processable (new/error). Not
found -> SM35_SESSION_NOT_FOUND.<G> (state <label>, created <date>
by <user>, <trans> transactions) in background via RSBDCSUB on <SID>/<CLIENT>. Its queued
transactions will EXECUTE and may change data. Proceed? (yes/no)". On no -> log SKIPPED, no
run. Single-gate: compose this context INTO the /sap-run-report RSBDCSUB delegation so its
own Rule-5 prompt carries it — do not add a second prompt./sap-run-report (selection = session name, background). Then poll
sap_sm35_list.ps1 -Session <G> every ~10 s up to --wait (default 300): QSTATE F ->
PROCESSED, E -> PROCESSED_WITH_ERRORS (offer triage <G>), still R/X -> STILL_RUNNING,
elapsed -> SM35_PROCESS_TIMEOUT.Run list -Session <G>; summarize the session's error signal from APQI stats (errored vs total
transactions, error-message count) into sm35_triage_<G>.md + findings (MSGTY-agnostic at the
stat level: any errored transactions -> HIGH bdc-error-cluster, coverage CHECKED). For
message-level clustering by (MSGID, MSGNO), the SM35 GUI log display must be scraped —
that VBS is not yet shipped (to-be-recorded): emit NEEDS_RECORDING and capture it once via
/sap-gui-probe --record on this release; deep clustering is v1.5. If neither stats nor a readable log is available -> triage
COULD_NOT_CHECK (never an empty-but-green triage).
Register-SapArtifact (scope BDC_<GROUPID>; kinds session_list / triage_report; coverage +
verdict) for /sap-evidence-pack.
Log end (SUCCESS/FAILED/SKIPPED + error_class). Error classes: SM35_RFC_UNAVAILABLE,
SM35_SESSION_NOT_FOUND, SM35_LOG_NOT_FOUND, SM35_PROCESS_TIMEOUT, SM35_RERUN_SOURCE_MISSING;
reused RFC_LOGON_FAILED / GUI_TIMEOUT.
list enumerated real error sessions with
decoded QSTATE (E->"errors" via DD07V) and the built-in APQI stats (e.g. 01: 83 transactions,
3 errored, 15 error messages) + APQL log-presence; the error status filter works. EC2 (ECC 6)
was probed in-plan (APQI/APQL/RSBDCSUB identical, SAPMSBDC_CC on both) but was unreachable at
build time; the code path is release-agnostic.RSTS_OPEN_RL is absent on ECC. So the
session-level error signal comes from APQI statistics (verified), and deep MSGID/MSGNO
clustering is deferred to the GUI log scrape (NEEDS_RECORDING) + v1.5 — never fabricated.list/triage are
read-only. No new Z objects; no SQL writes (mutations happen only inside RSBDCSUB).rerun (corrected file from a /sap-call-bdc
bdc/ source, then delegate execution). v2: purge via RSBDCREO (typed-confirm mass delete).--max (default 100) + date filters cap the
read; only DATATYP='BDC' queues are listed.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).
Other plugins' skills for the same job