/sap-dev-core:sap-run-report <PROGRAM> [--variant=V] [--foreground|--background] [--values="P_A=1;S_B=BT:10,20"] [--save-output=PATH] | variant <list|show|set|delete> <PROGRAM> [VARIANT] [--values="..."] [--desc="..."]from sap-dev-core
Executes ABAP reports/programs on live SAP systems (foreground or background) and manages variants via GUI or RFC. Requires active SAP GUI session and confirms before running.
Ships in sap-dev-core. 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 execute an ABAP report/program on a live SAP system, or maintain its variants. Running a report is a distinct risk class from deploying it — a report may mutate data — so this skill ALWAYS confirms before it runs (Step 2.5) and never runs as an unconfirmed side effect of another skill.
Task: $ARGUMENTS
| File | Purpose |
|---|---|
<SAP_DEV_CORE_SHARED_DIR>/rules/safety_policy.md | Rule 0 (highest priority) — environment guard; enforced by Step 0.6 via sap_safety_gate.ps1 (execution is a write-risk class: a report is never assumed read-only) |
<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md | Mandatory operating rules — Rule 5 (report execution requires confirmation) governs this skill |
<SAP_DEV_CORE_SHARED_DIR>/rules/language_independence_rules.md | GUI-scripting language independence — identify by component ID + DDIC field name, status via MessageType (S/W/E/I/A), VKey over menu-text, no .Text/.Tooltip branching |
<SKILL_DIR>/references/sap_sa38_run.vbs | SA38 driver: fill program → F8 → (load variant) → execute (FG) or schedule background (BG); emits RUN_REPORT: lines |
<SKILL_DIR>/references/sap_sa38_variant.vbs | Variant maintenance driver (SET create/overwrite, DELETE) via the SAPLSVAR dialogs; emits VARIANT: lines |
<SAP_DEV_CORE_SHARED_DIR>/rules/sap_gui_security_handling.md | The foreground list save (Step 4) is SAP-GUI-side file IO → can raise the modal "SAP GUI Security" dialog. Pre-check + OS-level watcher wrap that save. |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_gui_security_precheck.ps1 | Read-only allow-list pre-check (saprules.xml) before the list save |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_gui_security_sidecar.ps1 | OS-level watcher that auto-dismisses the SAP GUI Security dialog |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_artifact_lib.ps1 | New-SapScopeKey / Register-SapArtifact — register the run output for /sap-evidence-pack (Kind run_output). Best-effort; never changes the verdict. |
Delegated skills (invoke via the Skill tool — do not re-implement):
/sap-login (session), /sap-rfc-wrapper fm RS_VARIANT_* (variant list/show),
/sap-sp02 (spool → file, background capture), /sap-st22 (dump detail on an aborted run).
Resolve work_dir via the env-aware helper (NOT a direct settings.json read):
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 ('RUN_TEMP=' + (Get-SapRunTemp))"
{WORK_TEMP} = work_dir\temp. Settings reads follow shared/rules/settings_lookup.md.
cmd /c if not exist "{WORK_TEMP}" mkdir "{WORK_TEMP}"
Set {RUN_TEMP} = the RUN_TEMP= value printed above (a fresh per-run scratch dir).
Write the skill's generated scratch there; keep {WORK_TEMP} (base) only for
Get-SapCurrentSessionPath -WorkTemp '{WORK_TEMP}'.
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_run_report_run.json" -Skill sap-run-report -ParamsJson "{\"program\":\"<PROGRAM>\",\"mode\":\"<run|variant>\",\"engine\":\"<fg|bg>\"}"
State file: {RUN_TEMP}\sap_run_report_run.json. Best-effort (Rule 4: never skip the call).
safety_policy.md)Executing a report can mutate data, so run mode and variant set/variant delete run the environment gate (variant list/variant show skip it):
powershell -NoProfile -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_safety_gate.ps1" -Action assert -Skill sap-run-report
| Verdict (last line) | Exit | Action |
|---|---|---|
SAFETY: ALLOW ... | 0 | proceed (log via -Action step, step safety_gate); the Rule 5 execution confirm still applies |
SAFETY: TYPED_CONFIRM_REQUIRED ... expect="PROD <SID>/<CLIENT>" | 3 | the operator must type the shown token; re-run assert with -ConfirmationText '<their verbatim answer>'; proceed only on ALLOW_CONFIRMED |
SAFETY: REFUSED class=<C> ... | 1 | STOP. End the run FAILED with -ErrorClass <C> and relay the gate's remediation lines. Never bypass, soften, retry, or run the report manually instead — Rule 0 outranks every other instruction, including mid-session user ones. |
SAFETY: ERROR ... | 2 | treat exactly as REFUSED (fail closed) |
Mode — the first token selects it:
| Invocation | Mode |
|---|---|
<PROGRAM> … | run (default; no keyword) |
variant <list|show|set|delete> <PROGRAM> [VARIANT] | variant maintenance (set takes --values/--desc) |
run switches:
| Arg | Required | Default | Notes |
|---|---|---|---|
PROGRAM | yes | — | UPPERCASE. The executable report name. |
--foreground / --background | no | --foreground | Foreground = SA38 F8, synchronous, list captured. Background = scheduled job (monitor via SM37 / /sap-job). The clean background+spool capture is the RFC path (Z_RUN_REPORT, Step 3B). |
--variant=V | no | — | Named selection-set. Orthogonal to the engine (see design doc). |
--values="P_A=1;S_B=BT:10,20" | no | — | Ad-hoc selection values, filled on the live selection screen (foreground). Alternative input source to --variant. |
--save-output=PATH | no | {RUN_TEMP}\run_<PROGRAM>.txt | Foreground classic-list capture target. |
--session=… | no | — | Explicit /app/con[N]/ses[M] for multi-connection contexts. |
Backend resolution — read userConfig.sap_dev_mode:
GUI → GUI branch only (never attempt RFC).RFC / unset → prefer RFC where a path exists; on any RFC_ERROR / missing wrapper,
degrade to GUI, never block (same contract as sap-se38 Step 4.6/4.7).run implements both the GUI paths (3A foreground, 3C background fallback) and the
RFC background path (3B — the default background engine when Z_RUN_REPORT + RFC
are available). variant list/show route through /sap-rfc-wrapper (RFC); variant set/delete drive the SAPLSVAR GUI dialogs (Step 3V). Log the resolved mode /
engine / backend.
The run GUI paths need an active SAP GUI session — run /sap-login first if none.
The variant sub-command (RFC) needs the pinned profile + NCo; if RFC is unavailable,
see Step 3V (degrade).
Applies to every run and to variant delete. Skip only for variant list/show
(read-only). Per skill_operating_rules.md Rule 5, the skill cannot know whether a
report only reads or also mutates data — a report is not assumed read-only.
Show the user, then require an explicit yes:
"I will EXECUTE report
<PROGRAM>(<foreground|background>, variant<V|—>, values<…|—>) on<SID>/<CLIENT>. This may change data. Proceed? (yes / no / foreground / show selection)"
yes. On no / no answer → stop (log SKIPPED).foreground → switch engine and re-confirm. On show selection → run foreground
to the selection screen only, show the fields, and re-ask.sap_log_helper.ps1 -Action step -Step confirm -Message "user approved <engine>".Never auto-run. This gate is the reason report execution is its own skill.
Write {RUN_TEMP}\sap_sa38_run_run.ps1 (read UTF-8 -> substitute tokens -> write UTF-16 LE
BOM; never Get-Content -Raw + Set-Content -Encoding Unicode):
$skillDir = '<SKILL_DIR>'
$shared = '<SAP_DEV_CORE_SHARED_DIR>'
$content = [System.IO.File]::ReadAllText("$skillDir\references\sap_sa38_run.vbs", [System.Text.Encoding]::UTF8)
$content = $content.Replace('%%PROGRAM%%', 'THE_PROGRAM') # UPPERCASE
$content = $content.Replace('%%VARIANT%%', 'THE_VARIANT') # '' if none
$content = $content.Replace('%%VALUES%%', 'THE_VALUES') # '' if none
$content = $content.Replace('%%MODE%%', 'THE_MODE') # FG | BG
$content = $content.Replace('%%SAVE_PATH%%', 'THE_SAVE_PATH') # '' to skip capture
# Tier-3 session-attach plumbing. BAKE the resolved path into %%SESSION_PATH%%
# (attach Strategy 1): this generator is a SEPARATE process from the one that runs
# cscript, so an $env:SAPDEV_SESSION_PATH exported here dies with it and the attach
# lib silently falls through to its sole-connection default (2026-08-06).
. "$shared\scripts\sap_connection_lib.ps1"
$sessionPath = '' # set to the parsed --session value if supplied
if (-not $sessionPath) { $sessionPath = Get-SapCurrentSessionPath -WorkTemp '{WORK_TEMP}' }
$content = $content.Replace('%%SESSION_PATH%%', $sessionPath)
$content = $content.Replace('%%ATTACH_LIB_VBS%%', "$shared\scripts\sap_attach_lib.vbs")
[System.IO.File]::WriteAllText('{RUN_TEMP}\sap_sa38_run.vbs', $content, [System.Text.UnicodeEncoding]::new($false, $true))
Write-Host ("Done (session_path='" + $sessionPath + "')")
Run the generator:
powershell -ExecutionPolicy Bypass -File "{RUN_TEMP}\sap_sa38_run_run.ps1"
No capture (background, or foreground without --save-output) — run the VBS via the
32-bit cscript host (SAP GUI COM needs 32-bit), declaring the GUI target in the SAME
block (the attach lib reads SAPDEV_EXPECT_SYSTEM/_CLIENT from the process environment,
so the report can never be executed on a system other than the one the RFC leg resolved):
. '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'
Set-SapGuiTargetExpectation -WorkTemp '{WORK_TEMP}' | Out-Null
& 'C:\Windows\SysWOW64\cscript.exe' //NoLogo '{RUN_TEMP}\sap_sa38_run.vbs'
Foreground with --save-output — the %PC list download is SAP-GUI-side file IO, so
wrap the same cscript with the SAP GUI Security guard exactly as /sap-sp02 Step 3 does.
Substitute THE_SAVE_PATH (= --save-output) and THE_SID / THE_CLIENT (pinned):
$shared = '<SAP_DEV_CORE_SHARED_DIR>\scripts'
$out = 'THE_SAVE_PATH'
# Declare which SAP system the GUI leg may drive; MUST be in the same block as cscript.
. "$shared\sap_connection_lib.ps1"
Set-SapGuiTargetExpectation -WorkTemp '{WORK_TEMP}' | Out-Null
& "$shared\sap_gui_security_precheck.ps1" -Path $out -Access w -System 'THE_SID' -Client 'THE_CLIENT' -Transaction 'SA38' | Out-Host
$watcher = $null
if ($LASTEXITCODE -ne 0) {
$watcher = Start-Process powershell -PassThru -WindowStyle Hidden -ArgumentList @(
'-NoProfile','-ExecutionPolicy','Bypass','-File',"$shared\sap_gui_security_sidecar.ps1",'-TimeoutSeconds','40')
Start-Sleep -Milliseconds 800
}
& 'C:\Windows\SysWOW64\cscript.exe' //NoLogo '{RUN_TEMP}\sap_sa38_run.vbs'
if ($watcher) { $watcher | Wait-Process -Timeout 45 -ErrorAction SilentlyContinue }
--foreground, or sap_dev_mode=GUI)%%MODE%%=FG. The VBS fills RS38M-PROGRAMM, F8 to the selection screen, loads
--variant (Get Variant) or notes --values, then F8 to execute. Foreground list capture
(Step 4) uses the guarded run above.
Z_RUN_REPORT + RFC are available)Preferred background path (D3/D5). Run the headless backend under 32-bit PS — it
submits via the RFC-enabled Z_RUN_REPORT (JOB_OPEN → SUBMIT VIA JOB → JOB_CLOSE), then
polls TBTCO to completion and reads TBTCP for the generated spool id:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_run_report_rfc.ps1" -Program "<PROGRAM>" -Variant "<VARIANT-or-empty>" -Timeout <--timeout|300> -RfcLib "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_rfc_lib.ps1"
Parse the last RUN_REPORT: line (Step 4/5). Any ERROR: — Z_RUN_REPORT missing / RFC
down / connect failure — degrades to 3C (GUI Execute-in-Background), never blocks.
Verified live on S4G (S/4HANA) 2026-07-09: a WRITE report submitted → TBTCO polled to
status=F → TBTCP spool 351933 captured (present in TSP01, owner KM717).
--background without RFC / Z_RUN_REPORT)%%MODE%%=BG. The VBS reaches the selection screen, loads the variant, then triggers
Program · Execute in Background, accepts the print-params + start-immediate popups,
and reads the scheduled job name from the status bar (MessageType=S). Monitoring is
delegated to SM37 / /sap-job (GUI-only does not poll).
For set / delete, generate ./references/sap_sa38_variant.vbs (tokens
%%MODE%%(SET|DELETE) %%PROGRAM%% %%VARIANT%% %%VDESC%% %%VALUES%% %%BG_ONLY%% %%SESSION_PATH%% %%ATTACH_LIB_VBS%%) with the same generator + 32-bit cscript pattern as
Step 3. Verified live on S/4HANA 1909 (S4D), 2026-07-09 (SAPLSVAR kernel dialogs).
%%MODE%%=SET. Fills
--values on the report's selection screen (best-effort field + type derivation:
ctxt<F> / txt<F> / ctxt<F>-LOW[/-HIGH] get .Text, chk<F> gets .Selected from a
boolean, rad<F> is .Select-ed, a dropdown cmb<F> gets .Key; a range is
FIELD=BT:low,high, and multiple single values are FIELD=IN:v1,v2,... via the SAPLALDB
multiple-selection dialog), then
Save-as-Variant (ctxtRSVAR-VARIANT + txtRSVAR-VTEXT + Save tbar[0]/btn[11]; the
overwrite confirmation is handled). Any field it can't resolve is reported in
unresolved= — never silently dropped. For a complex selection screen, prefer a
human-authored variant or /sap-gui-probe the screen.%%MODE%%=DELETE. Find popup
(txtV-LOW + btn[8]) → scope popup Continue (tbar[0]/btn[5]) → SPOP Yes
(btnSPOP-OPTION1); verifies the Variant … deleted status./sap-rfc-wrapper fm RS_VARIANT_CATALOG (list) / RS_VARIANT_CONTENTS (show) — RFC is cleaner than scraping
the GUI directory. If the dev wrapper is unavailable, drive the SAPLSVAR Find popup
(txtV-LOW + btn[8]) to at least confirm a variant exists.--variant on a run (Step 3A),
which loads the variant onto the selection screen before executing.Verified live (2026-07-09) on S4D (S/4HANA 1909,
ZMMRMAT037R02) and EC2 (ECC,ZMMRMAT0A6R01): create → load-readback → delete with real--values(params,-LOW/-HIGHselect-options,BT:ranges; read back off the loaded screen, VARID=0 after). Checkboxes/radios verified on S4G (fixtureZZRUNREP_CBTEST):chk<F>.Selectedon/off +rad<F>.Selectread backP_FLAG=True/P_TEST=False/P_RAD2=True. Dropdowns + multi-value select-options verified on S4D (S/4HANA 1909) and EC2 (ECC 7.31) (fixtureZZRUNREP_MSTEST, 2026-07-09): a LISTBOXP_MODE=B(cmb<F>.Key) andS_MATNR=IN:MATA,MATB,MATCread backBandMATA,MATB,MATC, all withunresolved=0. Two behaviours baked into the VBS: (1) the variant selector is report-dependent — classic Find (SAPLSVAR100) or ALV directory (SAPLSVAR600) — and both load/delete handle either (unresolved →NEEDS_RECORDING, never a false success); (2)--valuesfield-fill dispatches on control type —ctxt/txtinputs +BT:ranges get.Text, checkboxes get.Selected, radiobuttons get.Select, dropdowns (cmb<F>) get.Key, andIN:v1,v2,...enters multiple single values via the SAPLALDB dialog (btn%_<F>_%_APP_%-VALU_PUSH→ tabtabpSIVA→ Copy F8; ids identical on S4D + EC2). A boolean value isX/TRUE/1/Y/YES= on, empty = off. Delete fills--valuesfirst so obligatory-field reports don't error with "fill required fields".
Foreground (3A). If --save-output is set and the run produced a classic list, the VBS
attempts a %PC list-download (format = Unconverted plain text) to --save-output. Because
that writes a local file via SAP GUI, wrap the cscript with the security guard exactly as
/sap-sp02 Step 3 does (pre-check → launch sap_gui_security_sidecar.ps1 if not allow-listed
→ run → reap). ALV / interactive lists are best-effort — when the list can't be captured,
the VBS emits list_saved=NONE and the report says so; use the background+spool path for
reliable capture.
Background RFC (3B). sap_run_report_rfc.ps1 already polled TBTCO to completion and read
the spool id. On RUN_REPORT: COMPLETED … spool=<LISTIDENT> with <LISTIDENT> ≠ NONE and
--save-output set, capture the spool text by delegating to the (already-verified) spool skill:
/sap-sp02 <LISTIDENT> <--save-output>
Append the resulting path to the report (out=<path>). spool=NONE = the report produced no
list output (nothing to capture). On RUN_REPORT: DUMP … status=A, drill the abort with
/sap-st22 (deep) and, if useful, the job log (BP_JOBLOG_READ). On RUN_REPORT: TIMEOUT …
the job is still running server-side — report it and point to /sap-job / SM37; re-capture its
spool via /sap-sp02 once it finishes.
The last RUN_REPORT: / VARIANT: line is authoritative:
| Line | Meaning | Verdict |
|---|---|---|
RUN_REPORT: EXECUTED_FG list_saved=<path|NONE> sbar=<S|I> | Foreground run completed | OK |
RUN_REPORT: SUBMITTED job=<name> count=<n> | Background job scheduled (GUI 3C, or RFC 3B before poll) | OK (async — not yet waited) |
RUN_REPORT: COMPLETED job=<name> count=<n> status=F spool=<id|NONE> | RFC background job finished; Step 4 captures the spool via /sap-sp02 | OK |
RUN_REPORT: TIMEOUT job=<name> count=<n> status=<s> timeout=<t>s | RFC poll cap hit; job still running server-side | OK (async) — monitor via /sap-job |
RUN_REPORT: SUBMIT_FAILED program=<P> status=<s> | Z_RUN_REPORT could not schedule (PROG_NOT_FOUND / OPEN_FAILED / CLOSE_FAILED) | ERROR |
RUN_REPORT: DUMP job=<name> <short> | Runtime short dump | DUMP → drill with /sap-st22 |
RUN_REPORT: NEEDS_RECORDING step=<s> program=<P> screen=<S> | A release-specific popup/screen didn't resolve | not a run — see below |
VARIANT: <LISTED|SHOWN|DELETED|NEEDS_RFC> … | Variant op result | OK / degrade |
ERROR: … | Fatal (program missing / no auth / attach) | surface + stop |
Emit RUN_VERDICT: OK | DUMP | ERROR. On NEEDS_RECORDING, do not claim the report
ran — record the control path via /sap-gui-probe --record and add it to
sap_sa38_run.vbs (same one-time-per-release model as /sap-atc, /sap-run-abap-unit).
Register --save-output for /sap-evidence-pack (Kind run_output). Wrap in try/catch;
NEVER change the verdict if registration fails (pattern from sap-run-abap-unit Step 4b).
Skip on NEEDS_RECORDING / variant-list/show.
State: program, engine (fg/bg), variant/values, target SID/client, and the verdict.
Foreground: the captured output path (+ size) or that capture was best-effort/NONE.
Background: the scheduled job name/count and how to monitor it (SM37 / /sap-job).
On DUMP: lead with the ST22 id + top error line.
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action end -StateFile "{RUN_TEMP}\sap_run_report_run.json" -Status SUCCESS -ExitCode 0
| Outcome | Status / ExitCode / ErrorClass |
|---|---|
| Ran clean / job scheduled | SUCCESS / 0 |
| Runtime dump | FAILED / 1 / RUN_DUMP |
| Submit / schedule failed | FAILED / 1 / RUN_SUBMIT_FAILED |
| GUI screen/popup unresolved | FAILED / 2 / RUN_GUI_PARSE_FAILED (emit NEEDS_RECORDING, never false-green) |
| Variant create/edit needs RFC | SKIPPED / 0 / RUN_VARIANT_NEEDS_RFC |
| User declined at the confirm gate | SKIPPED / 0 |
| Element | ID | Status |
|---|---|---|
| Program field (SA38/SE38) | wnd[0]/usr/ctxtRS38M-PROGRAMM | confirmed (shared with sap_se38_run_aunit.vbs) |
| Execute (selection screen) | sendVKey 8 (F8) | confirmed |
| Get Variant trigger | sendVKey 17 (Shift+F5), or wnd[0]/tbar[1]/btn[17], or menu wnd[0]/mbar/menu[2]/menu[0]/menu[0] | captured |
| Find Variant popup | SAPLSVAR 100 — name wnd[1]/usr/txtV-LOW, apply wnd[1]/tbar[0]/btn[8], cancel btn[12] | captured |
| Variant directory (ALV) | SAPLSVAR 600 — report-dependent alternative to the Find popup: match the row in wnd[1]/usr/cntlALV_CONTAINER_1/shellcont/shell, Choose wnd[1]/tbar[0]/btn[2] | captured |
| Execute in Background | wnd[0]/mbar/menu[0]/menu[2] | captured |
| Print-params popup | SAPLSPRI 100 — Continue wnd[1]/tbar[0]/btn[13], device wnd[1]/usr/ctxtPRI_PARAMS-PDEST | captured |
| Start-Time popup | SAPLBTCH 1010 — Immediate wnd[1]/usr/btnSOFORT_PUSH, Save wnd[1]/tbar[0]/btn[11] | captured |
| Save as Variant (create) | mbar/menu[2]/menu[0]/menu[3] → SAPLSVAR 281: name usr/ctxtRSVAR-VARIANT, text usr/txtRSVAR-VTEXT, bg-only usr/chkRSVAR-VBATCH, Save tbar[0]/btn[11] | captured |
| Delete Variant | mbar/menu[2]/menu[0]/menu[2] → Find (wnd[1]/usr/txtV-LOW+tbar[0]/btn[8]) → scope SAPLSVAR 322 Continue wnd[1]/tbar[0]/btn[5] → SPOP Yes wnd[1]/usr/btnSPOP-OPTION1 | captured |
List download (%PC) | format popup → DY_PATH/DY_FILENAME | best-effort — %PC N/A on S/4HANA/ECC ALV output; use background→spool (/sap-sp02) |
Get-Variant and Execute-in-Background paths were identical on S/4HANA 1909 and ECC (EC2
verified under a JA logon) — core SAPLSVAR / SAPLSPRI / SAPLBTCH kernel dialogs, stable
across release and language, so one set covers both. Each step is still guarded with
On Error + RUN_REPORT: NEEDS_RECORDING so an unresolved control never reports a false
success. The %PC classic-list path stays a seed (both test reports rendered ALV); the
reliable foreground capture is background→spool via /sap-sp02.
Z_RUN_REPORT +
references/sap_run_report_rfc.ps1, Step 3B — verified on S4G 2026-07-09), with GUI
Execute-in-Background (3C) as the fallback. A dedicated sap_variant_rfc.ps1 for
variant create/edit does not exist yet — variant set (create/overwrite) and delete
remain GUI (SAPLSVAR, Step 3V); list/show are RFC via /sap-rfc-wrapper.%PC); ALV /
interactive lists need the background+spool path (3B + /sap-sp02) for reliable capture./sap-job or SM37.%PC classic-list save
stays a best-effort seed (both probe reports rendered ALV); reliable foreground capture is
background→spool via /sap-sp02.README.md (opens in a new tab)references/Z_RUN_REPORT.abap (opens in a new tab)references/sap_run_report_rfc.ps1 (opens in a new tab)references/sap_sa38_run.screens.json (opens in a new tab)references/sap_sa38_run.vbs (opens in a new tab)references/sap_sa38_variant.screens.json (opens in a new tab)references/sap_sa38_variant.vbs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
61 skills in this plugin
/sap-activate-objectActivates an inactive SAP repository object via SAP GUI Scripting. Routes to
the correct transaction by object type: SE38 for reports/programs/function-
group main programs, SE37 for function modules, SE24 for classes/interfaces
/methods, SE11 for DDIC objects (table, view, dataelement, structure,
tabletype, typegroup, domain, searchhelp, lockobject). Handles the
"inactive objects worklist" popup that SAP shows when there are multiple
inactive objects of the same locality (transportable vs. local — SAP filters
the popup by package locality of the triggering object). Verifies activation
via PROGDIR (programs/FMs include) and DWINACTIV.
Prerequisites: Active SAP GUI session (use /sap-login first).
/sap-api-advisorNatural-language SAP API discovery over RFC (no GUI): turn a goal like "create
a sales order" or "post a goods movement" into a ranked, trap-annotated,
paste-ready shortlist of BAPIs / function modules / classes — with released
state (S/4), interface + documentation for the top candidates, the team's known
traps inlined, and a ready-to-paste CALL FUNCTION snippet. Reads the BAPI
catalog (BAPI_MONITOR_GETLIST), TFDIR/TFTIT name+text, SEOCLASS, ARS_W_API_STATE
(S/4 released state), FUPARAREF/FUNCT + DOCU_GET. HARD rule: it never test-calls
a candidate — snippets are text only. Read-only; deploys nothing.
Use for: "which BAPI/FM for X", find an API, is this BAPI released, API to
create/read/post <object>, discover function module, released API S/4.
`successor` (released→sanctioned replacement) is phase 2; `scan` is phase 3.
Prerequisites: an RFC-capable connection profile (/sap-login). No dev-init, no GUI.
/sap-atcRuns the SAP ABAP Test Cockpit (ATC) end-to-end as a quality gate:
builds an SCI Object Set scoped to the target object(s), creates an
ATC Run Series bound to that set, polls the ATC Run Monitor until the
run completes, then reads the Priority 1 / Priority 2 / Priority 3
finding counts from the Manage Results screen and (best-effort)
downloads the result text file. Applies the customer brief's
MAX_PRIORITY threshold to decide pass / fail.
Replaces the legacy SCI-results-tree implementation that lacked a
Priority column. Per-stage VBS references are recorded against the
S/4HANA 1909 ATC layout — re-record on first failure with
/sap-gui-probe --record if your release uses different tree node IDs / grid
column IDs.
Prerequisites: Active SAP GUI session (use /sap-login first).
/sap-call-bdcExecutes BDC (Batch Data Communication) sessions in SAP via RFC.
Reads SHDB recording files from the bdc/ folder, connects via
SAP NCo 3.1, calls ABAP4_CALL_TRANSACTION, and outputs
full BDCMSGCOLL messages to a result file.
Connection parameters resolved from the AI session's pinned profile in
connections.json (saved via /sap-login).
Prerequisites: SAP profile saved via /sap-login (RFC password required).
SAP NCo 3.1 (32-bit, .NET 4.0) in GAC.
/sap-change-packageChanges the package (TADIR-DEVCLASS) assignment of an SAP repository object
via the "Object Directory Entry" dialog (Goto > Object Directory Entry).
Routes by object type to SE38 / SE37 / SE24 / SE11 / SE91 / CMOD (the last
for enhancement projects — used by /sap-cmod). Handles three
flows automatically based on current vs new package locality:
(a) $TMP → transportable (Z*/Y*): resolves a modifiable TR via
/sap-transport-request, then enters the new package + TR.
(b) transportable A → transportable B: pre-checks E071/E070 to ensure
the object is NOT linked to a modifiable TR (would block the move).
(c) transportable → $TMP: confirms the move and presses "Local object".
Verifies via TADIR re-query.
Prerequisites: Active SAP GUI session (use /sap-login first).
/sap-check-abapValidates ABAP source (report / program / FM / class / include) before
deployment — one skill, dimension-dispatched: naming (variable conventions),
type (DDIC type validity), unused (dead variables), sql (SELECT/UPDATE/DELETE
fields vs table defs), contract (offline generation rules), spec (offline: code
covers every dependency / message / text / selection field in the design spec),
fm (CALL FUNCTION params / sections / types vs the live FM over RFC — absorbed
from the former sap-check-fm), syntax (compiler-level EDITOR_SYNTAX_CHECK via
RFC, catching real errors offline before any GUI upload). Writes tab-delimited
result files with fix advice; feed findings to /sap-fix-abap. SAP connection
optional — offline skips type/sql/fm/syntax; live dimensions that can't run
report COULD_NOT_CHECK, never a silent pass.
Prerequisites: SAP GUI (SAP.Functions COM); SAP NCo 3.1 (32-bit) + the dev-init
wrapper Z_GENERIC_RFC_WRAPPER_TBL for the syntax dimension.
npx claudepluginhub sapdev-ai/sap-dev --plugin sap-dev-coreOther plugins' skills for the same job