/sap-dev-core:sap-forms inventory [--type all|smartforms|sapscript|adobe] [--namespace Z,Y | --all] [--packages ..] [--usage-days N] [--no-usage] | download smartform <N> | download sapscript <N> | inspect adobe <N> | explain <kind> <N> [--spec] | test-print driver <PROG> | test-print nast <KAPPL> <KSCHL> <OBJKY>from sap-dev-core
Discovers, exports, and parses SAP SmartForms, SAPscript, and Adobe forms with usage evidence from TNAPR and NAST. Supports inventory, download, tree/spec parsing, and test-print delegation. Read-only except gated report execution.
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 make forms legible: inventory SmartForms/SAPscript/Adobe with TNAPR+NAST usage evidence, export and parse a form into a node tree/spec, and delegate test-prints. Read-only except confirm-gated report executions; the SmartForm XML round-trip is GUI-menu-only (no FM exists).
Task: $ARGUMENTS
The inventory / Adobe-inspect are RFC scripts; the parse is offline; the SmartForm download is a GUI VBS; you narrate the tree and the scope evidence.
| File | Token / call | Purpose |
|---|---|---|
<SKILL_DIR>/references/sap_forms_inventory.ps1 | -Type -Namespace -UsageDays | Forms inventory + TNAPR/NAST overlay (RFC) |
<SKILL_DIR>/references/sap_forms_fp_inspect.ps1 | -Name | Adobe inspect (TADIR + usage; FP* = COULD_NOT_CHECK) |
<SKILL_DIR>/references/sap_forms_parse.ps1 | -Kind smartform|sapscript -InFile | Offline form parser (node tree) |
<SKILL_DIR>/references/sap_forms_sf_download.vbs | via 32-bit cscript | SmartForm XML download (SMARTFORMS menu) |
<SKILL_DIR>/references/sap_forms_sf_download.screens.json | baseline | Golden-screen baseline (NEEDS_RECORDING rails) |
/sap-run-report · /sap-sp02 | sub-skills | download sapscript (RSTXSCRP) + test-print |
/sap-login · /sap-se16n | sub-skills | session / RFC-blocked table fallback |
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))"
Then sap_log_helper.ps1 -Action start -StateFile {RUN_TEMP}\sap_forms_run.json.
{OUT} = Get-SapArtifactDir -ScopeKey SYS_<SID>_<CLIENT> -Skill sap-forms (from
sap_artifact_lib.ps1; creates the dir) — the artifact output dir Step 3A writes to
and Step 4 registers.
Modes: inventory | download smartform|sapscript | inspect adobe | explain | test-print driver|nast. RFC modes need the pinned profile; download modes need a GUI session (/sap-login).
download sapscript (RSTXSCRP executes) and test-print * are confirm-gated (report execution;
test-print nast with NACHA!=1 -> typed REPROCESS). Read modes (inventory/inspect/explain/download
smartform) skip.
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_forms_inventory.ps1" -Type <t> -Namespace "Z,Y" [-Packages ..] [-UsageDays N] [-NoUsage] -OutFile "{OUT}\forms_inventory.tsv" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"
Render the TSV (form_type, name, package, output_types, channels, driver, routine, usage_count,
coverage). A usage column that can't be read is COULD_NOT_CHECK / >=N (capped), never "unused".
Pre-arm the security sidecar; substitute %%SESSION_PATH%%/%%ATTACH_LIB_VBS%%/%%FORMNAME%%/
%%SAVE_PATH%%/%%MENU_PATH%% (the recorded Utilities->Download findById from the baseline) and run
sap_forms_sf_download.vbs (32-bit cscript). FORMS: NEEDS_RECORDING -> record the SMARTFORMS
Utilities->Download menu with /sap-gui-probe --record for this release, set %%MENU_PATH%%, retry.
Verify the file exists, is non-empty, and parses as <SMARTFORM>-rooted XML.
download sapscript: confirm -> delegate /sap-run-report RSTXSCRP (object class FORM, EXPORT) ->
fetch the export; verify ITF header present.inspect adobe: sap_forms_fp_inspect.ps1 -Name <N> -> dossier (TADIR existence/package/author +
TNAPR usage; FP* interface/context/layout are COULD_NOT_CHECK — not RFC-readable, SFP GUI/ADT only).explain: ensure a fresh download/inspect, then sap_forms_parse.ps1 -Kind <k> -InFile <file> ->
<name>_form_tree.md (+ --spec sap-docs work folder). Wrapper-FM enrichment (READ_TEXT/
SSF_STATUS_INFO via Z_GENERIC_RFC_WRAPPER_TBL) is best-effort and SKIPs with the /sap-dev-init prompt
when the wrapper is absent (Rule 2 — never auto-deploy).driver <PROG> -> /sap-run-report (its own gate) -> /sap-sp02 spool. nast <KAPPL> <KSCHL> <OBJKY> -> pre-read the single NAST row (refuse wildcard/missing OBJKY); NACHA!=1 -> typed
REPROCESS; then /sap-run-report RSNAST00 -> /sap-sp02.
Register inventory / export / dossier / spec / run_output artifacts (coverage tri-state).
Print one FORMS: verdict line per mode + paths.
sap_log_helper.ps1 -Action end with status + error_class: FORMS_NOT_FOUND, FORMS_EXPORT_INVALID,
FORMS_NAST_CHANNEL_REFUSED, RFC_LOGON_FAILED, plus NEEDS_RECORDING recording-stops.
inventory, download smartform (GUI), download sapscript (RSTXSCRP),
inspect adobe, explain (offline parse + --spec), test-print (delegation). One code path for
ECC 6 + S/4.inventory enumerated 11,134 forms (2719 SmartForms /
3172 SAPscript / 5243 Adobe) with packages, and the TNAPR + NAST overlay is proven with real
evidence — SAPscript MEDRUCK shows 25 output-determination assignments (EA/ABSA ...), channels
1/2/5, driver SAPFM06P, routine ENTRY_ABSA, and usage=604 NAST records; a SmartForm matched via
the SFORM column. explain parsed a SmartForm XML into a page/window/text/code/condition tree and
a malformed file into FORMS_EXPORT_INVALID; a SAPscript ITF into windows/formats/elements.
inspect adobe on MEDRUCK_PO returned package/author from TADIR.inspect adobe reports the interface/context/layout as
COULD_NOT_CHECK with that reason and does NO XDP extraction. There is also no SmartForm download FM
(SSF_DOWNLOAD_FORM absent), so that path is GUI-menu-only.download smartform (SMARTFORMS
Utilities->Download menu) and download sapscript (RSTXSCRP) drive/execute in the GUI and need a
session; the SMARTFORMS menu position is release-specific and ships NEEDS_RECORDING-guarded
(record via /sap-gui-probe, set %%MENU_PATH%%) rather than guessing. This session verified the
RFC inventory / Adobe-inspect / offline-parse paths, not a live GUI download.explain
(v1.5); patch smartform text-node/condition edits (v2). EC2 shares the identical path (RSTXSCRP /
RSNAST00 / SAPMSSFO probed identical; DOCTL is CLUSTER on ECC handled by DOCU_GET elsewhere); EC2 was
unavailable this session for the ECC re-confirm.README.md (opens in a new tab)references/sap_forms_fp_inspect.ps1 (opens in a new tab)references/sap_forms_inventory.ps1 (opens in a new tab)references/sap_forms_parse.ps1 (opens in a new tab)references/sap_forms_sf_download.screens.json (opens in a new tab)references/sap_forms_sf_download.vbs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sap-forms, smartforms, sapscript, adobe-forms, sap-rfc, sap-gui
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