/sap-dev-core:sap-se14 check <TABLE> | adjust <TABLE> | unlock <TABLE> [continue]from sap-dev-core
Diagnoses and fixes stuck SAP DDIC tables via SE14: check consistency, adjust (save-data only), unlock terminated conversions. Requires SAP GUI and RFC.
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 diagnose a stuck table (check, read-only, auto-chainable) and, on request, fix it via the
save-data-only adjust or a terminated-conversion unlock — both confirm-gated, with the
delete-data path structurally refused, verified by an authoritative RFC re-read.
Task: $ARGUMENTS
| File | Token / call | Purpose |
|---|---|---|
<SKILL_DIR>/references/sap_se14_check_rfc.ps1 | -Table | RFC consistency battery + verdict (also the write-mode post-verify) |
<SKILL_DIR>/references/sap_se14_adjust.vbs | GUI (%%TABLE%%·%%OUTPUT_FILE%%·%%SESSION_PATH%%·%%ATTACH_LIB_VBS%%·%%SESSION_LOCK_VBS%%) | SAPMSGTB save-data-only adjust driver — recorded + live-verified end-to-end on S4D (S/4HANA 1909) 2026-07-12 |
<SKILL_DIR>/references/sap_se14_unlock.vbs | GUI | SAPMSGTB conversion-recovery driver — NEEDS_RECORDING until captured (CONVERSION_TERMINATED cannot be safely manufactured) |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_rfc_lib.ps1 · sap_connection_lib.ps1 · sap_attach_lib.vbs · sap_session_lock.vbs | libs | RFC + Tier-3 attach + session lock |
<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 any write mode |
/sap-activate-object · /sap-run-report (RADPROTA) · /sap-se16n · /sap-dev-status | sub-skills | Plain reactivate / full log (v1.5) / raw dumps / wrapper preflight |
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_se14_run.json). Pinned RFC profile for check; GUI session for write modes.
check | adjust | unlock (token continue -> unlock/continue). Uppercase <TABLE>. Any
wording asking for the delete-data variant -> immediate refusal SE14_DELETE_PATH_REFUSED (v1
has no override), no further steps. --background -> "v1.5".
... sap_se14_check_rfc.ps1 -Table <T> -OutDir "{RUN_TEMP}\se14"
SE14: CHECK <probe>=<state> lines + SE14: VERDICT <v> + se14_check_<T>.tsv. Mode check ->
stop here (report verdict + suggested adjust/unlock command). CONSISTENT + adjust -> nothing
to do (if only DWINACTIV set, suggest /sap-activate-object). RFC down -> GUI SE14-check fallback.
Rule 0 first (safety_policy.md): powershell -NoProfile -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_safety_gate.ps1" -Action assert -Skill sap-se14 —
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 drive SE14 manually instead
(read-only check mode does not run the gate).
TABCLASS != TRANSP -> SE14_UNSUPPORTED_TABCLASS. Verdict CONVERSION_RUNNING -> refuse both write
modes (SE14_CONVERSION_RUNNING). unlock requires verdict CONVERSION_TERMINATED. unlock release-lock additionally runs the QCM-data guard (wrapper DD_EXISTS_DATA on the QCM table; data
found OR COULD_NOT_CHECK -> SE14_QCM_DATA_AT_RISK, refused in v1).
CONFIRM (mandatory yes/no): adjust -> "I will ACTIVATE AND ADJUST table <T> on
<SID>/<CLIENT> via the SAVE-DATA path (data preserved). Proceed?"; unlock/continue -> equivalent.
On no -> SKIPPED.
unlock stays NEEDS_RECORDING (the conversion-recovery controls only materialize in a
CONVERSION_TERMINATED state, which cannot be safely manufactured — see Scope). Running
sap_se14_unlock.vbs echoes SE14: NEEDS_RECORDING and exits 3; report it and stop (never a
guessed click).
adjust — substitute the 5 tokens and run the recorded save-data-only driver via 32-bit
cscript. Mirror the parallel-safe attach contract (BAKE the resolved path into
%%SESSION_PATH%%, keep the base {WORK_TEMP} for Get-SapCurrentSessionPath, write the runtime
VBS to {RUN_TEMP}, UTF-16 LE BOM):
$shared = '<SAP_DEV_CORE_SHARED_DIR>\scripts'
. "$shared\sap_connection_lib.ps1"
# BAKE the path (attach Strategy 1) rather than exporting $env:SAPDEV_SESSION_PATH:
# this generator is a SEPARATE process from the one that runs cscript, so the env
# var would already be gone and the attach lib would silently fall through to its
# sole-connection default (2026-08-06).
$sessionPath = Get-SapCurrentSessionPath -WorkTemp '{WORK_TEMP}' # or the --session value
$vbs = [IO.File]::ReadAllText('<SKILL_DIR>\references\sap_se14_adjust.vbs', [Text.Encoding]::UTF8)
$vbs = $vbs.Replace('%%TABLE%%', '<T>') # upper-cased table name
$vbs = $vbs.Replace('%%OUTPUT_FILE%%', '{RUN_TEMP}\se14_adjust.json')
$vbs = $vbs.Replace('%%SESSION_PATH%%', $sessionPath)
$vbs = $vbs.Replace('%%ATTACH_LIB_VBS%%', "$shared\sap_attach_lib.vbs")
$vbs = $vbs.Replace('%%SESSION_LOCK_VBS%%', "$shared\sap_session_lock.vbs")
[IO.File]::WriteAllText('{RUN_TEMP}\se14_adjust_run.vbs', $vbs, [System.Text.UnicodeEncoding]::new($false, $true))
Declare the GUI target in the SAME block as cscript — the attach lib reads
SAPDEV_EXPECT_SYSTEM/_CLIENT from the process environment, and an SE14 adjust
is a data-affecting write, so landing on the wrong system is not recoverable:
. '<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}\se14_adjust_run.vbs"
Parse the SE14: / STATUS: lines (and read {RUN_TEMP}\se14_adjust.json =
{"table","op":"adjust","save_data":true,"status","sbar"}):
STATUS: OK (exit 0) -> proceed to Step 5 post-verify — the sbar S is only the first-pass
signal; the RFC re-read is authoritative.STATUS: SE14_SDATA_NOT_DEFAULT (exit 1) -> the save-data rail was not confirmable; refuse
(the driver never pressed adjust).STATUS: SE14_ADJUST_FAILED (exit 1) -> sbar E/A; surface the echoed sbar text as the
diagnostic only.SE14: NEEDS_RECORDING step=<label> (exit 3) -> unknown screen/popup at a decision point;
record via /sap-gui-probe --record, never a guessed click.Structural delete-data rail: the VBS asserts the save-data radio's component ID
(radRSGTB-SDATA) exists AND .Selected=True before the adjust press, only READS radRSGTB-DDATA
to assert it is not selected, and never .Selects the delete-data radio; an unconfirmable rail ->
SE14_SDATA_NOT_DEFAULT, an unknown layout -> SE14: NEEDS_RECORDING — never a guessed radio.
Re-run sap_se14_check_rfc.ps1 — only a clean re-read (DD02L active + no pending, DWINACTIV empty,
no TBATG, QCM gone) yields SUCCESS; GUI status text alone never does. Register-SapArtifact
(kind ddic-consistency, verdict) for /sap-evidence-pack.
Log end (SUCCESS/FAILED/SKIPPED + error_class). Error classes: SE14_DELETE_PATH_REFUSED,
SE14_CONVERSION_RUNNING, SE14_QCM_DATA_AT_RISK, SE14_UNSUPPORTED_TABCLASS, SE14_ADJUST_FAILED,
SE14_SDATA_NOT_DEFAULT (save-data rail not confirmable — adjust refused); reused NEEDS_RECORDING
(unknown adjust screen/popup, or the whole unlock leg) / RFC_LOGON_FAILED / GUI_TIMEOUT /
GUI_LAYOUT_UNKNOWN.
DDIF_TABL_ACTIVATE is
FMODE-blank and doesn't drive conversion control). The delete-data path is structural, not
gated: no VBS code path selects that radio (radRSGTB-DDATA is only ever READ, to assert it is
not selected), and the save-data radio (radRSGTB-SDATA) is asserted present AND .Selected by
component ID before the adjust press — an unconfirmable save-data rail refuses with
SE14_SDATA_NOT_DEFAULT (adjust never pressed). The adjust SAPMSGTB control IDs are now
recorded + live-verified (see next bullet); unlock stays NEEDS_RECORDING until captured —
never guessed.radRSGTB-SDATA asserted .Selected, radRSGTB-DDATA only
read as not-selected) -> btnRSGTB-CNVTA ("Activate and adjust database") -> the "Execute online:"
confirm popup (wnd[1]/usr/btnBUTTON_1 = Yes, SAPLSPO1 500) -> sbar S "executed successfully".
(a) It ran against a CONSISTENT scratch table, so the conversion was a no-op
re-conversion, not a real data-preserving conversion of an ADJUST_NEEDED table — every control
ID, the confirm popup and the success verdict are real and were pressed live; only the "pending DB
work" precondition was absent (a real ADJUST_NEEDED needs data + an incompatible structure change
SAP defers to SE14 — not manufactured this session). The control contract is state-independent
(the SE14 screens are identical whether the table is CONSISTENT or ADJUST_NEEDED), so the recorded
driver is valid; SUCCESS is still gated by the authoritative Step-5 RFC re-read, never the sbar
alone. (b) unlock stays NEEDS_RECORDING — its unlock / continue-adjustment /
restart-conversion controls only materialize in a CONVERSION_TERMINATED state, which cannot be
safely manufactured (it requires a running DB conversion deliberately killed mid-flight on a shared
dev system); it needs SAP's built-in Script Recorder against a genuinely terminated conversion./sap-se11 auto-chains /sap-se14 check <TABLE> after a failed table activation (read-only, safe)
and surfaces the verdict + suggested write command; the user still triggers the write.adjust --background (TBATG), full log via RADPROTA, DB-existence via the wrapper.
v2: index-rebuild / storage-parameter verbs; delete-data + forced-unlock (typed-echo confirm).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sapdev-ai/sap-dev --plugin sap-dev-core61 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.
Other plugins' skills for the same job