/sap-dev-core:sap-se01 [create [W|C] ["<desc>"]] | [release <TR>] | [delete <TR>] | [remove-objects <TR> [OBJECTS=a,b]]from sap-dev-core
Manages SAP transport requests via SE01 (SAP GUI Scripting) with CREATE, RELEASE, DELETE, and REMOVE-OBJECTS modes. Requires active SAP GUI session.
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 manage SAP transport requests via SE01 using SAP GUI Scripting. Four modes: CREATE (default), RELEASE, DELETE, and REMOVE-OBJECTS.
Task: $ARGUMENTS
Look at $ARGUMENTS to pick the mode:
| First token (case-insensitive) | Mode | Skip to |
|---|---|---|
release followed by a TR (e.g. release ER1K900234) | RELEASE | "Release Mode" section below |
delete followed by a TR (e.g. delete ER1K900234) | DELETE | "Delete Mode" section below |
remove-objects / remove-object / delobj followed by a TR (e.g. remove-objects ER1K900234 OBJECTS=ZCMD_RFCVAL) | REMOVE-OBJECTS | "Remove-Objects Mode" section below |
create (or no first-token keyword) | CREATE | continue with Step 1 |
Direct callers (/sap-transport-request) typically use the bare CREATE form.
Steps 0 – 7 below are the CREATE flow.
| 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 |
<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md | Mandatory operating rules (no SQL writes on standard tables; no unsolicited deploys) |
<SAP_DEV_CORE_SHARED_DIR>/rules/tr_resolution.md | Transport request resolution flow — defines way_to_get_transport_request, rule_of_tr_description, and the 60-char compression algorithm. This skill is a leaf called by /sap-transport-request; it implements the description rendering and request-type defaults. |
<SAP_DEV_CORE_SHARED_DIR>/rules/language_independence_rules.md | GUI-scripting language independence — identify by component ID + DDIC field name, status-bar checks via MessageType codes (S/W/E/I/A), VKey instead of menu-text, no branching on .Text/.Tooltip/window titles |
Resolve work_dir via the env-aware helper — do NOT take work_dir from a direct settings.json read (that ignores the SAPDEV_AI_WORK_DIR env var and userconfig.json). Use the WORK_DIR= value printed by:
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))"
The settings note below still applies to the OTHER keys.
Settings reads/writes follow shared/rules/settings_lookup.md — merge per-key on the .value field (env var → settings.local.json → userconfig.json → settings.json); non-per-connection writes go to userconfig.json. Resolve sap-dev-core paths: 2 levels up from <SKILL_DIR> to the plugin root, then settings.json and (if present) settings.local.json.
Per-connection keys (Phase 4.4): rule_of_tr_description and tr_description_template are SAP-system-specific (customer naming conventions vary). Per settings_lookup.md § Per-connection exception, read them from connections.json[pinned-profile].dev_defaults FIRST (resolve the pin via {work_dir}\runtime\session_registry.json ai_sessions[<id>]); only fall back to the two-file merge when dev_defaults is empty.
Read:
| Setting | Default if blank |
|---|---|
work_dir | C:\sap_dev_work |
sap_user | (must be set; ask if blank) |
rule_of_tr_description | ASK |
tr_description_template | (blank) |
Set {WORK_TEMP} = {work_dir}\temp. Ensure it exists:
cmd /c if not exist "{WORK_TEMP}" mkdir "{WORK_TEMP}"
Set {RUN_TEMP} = the RUN_TEMP= value printed above — a fresh per-run scratch
directory {work_dir}\temp\run_<id>, already created by Get-SapRunTemp.
Resolve it once here and reuse the same value for the rest of this
invocation; it isolates this run's generated wrappers / state / scratch files so
concurrent runs (parallel sub-agents, multi-connection deploys) never collide.
{WORK_TEMP} stays the base temp dir and is used ONLY for
Get-SapCurrentSessionPath -WorkTemp '{WORK_TEMP}' (the session-attach plumbing
derives {work_dir}\runtime from its parent, so it must see the base path, not
the run dir). Everything the skill writes itself goes under {RUN_TEMP}.
The logged-in SAP user (sap_user) is needed for the E070 lookup. If blank,
ask the user.
This skill MUST honour
<SAP_DEV_CORE_SHARED_DIR>/rules/tr_resolution.md for description and type
defaults.
Start a structured log run. State file: {RUN_TEMP}\sap_se01_run.json. Best-effort.
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_se01_run.json" -Skill sap-se01 -ParamsJson "{\"description\":\"<DESC>\",\"request_type\":\"W\"}"
safety_policy.md)Every mode of this skill mutates the transport landscape (create / release / delete / remove-objects). Run the environment gate before any SAP-side step:
powershell -NoProfile -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_safety_gate.ps1" -Action assert -Skill sap-se01
| Verdict (last line) | Exit | Action |
|---|---|---|
SAFETY: ALLOW ... | 0 | proceed (log via -Action step, step safety_gate) |
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 drive SE01 manually instead — Rule 0 outranks every other instruction, including mid-session user ones. |
SAFETY: ERROR ... | 2 | treat exactly as REFUSED (fail closed) |
Accepted argument forms (all optional):
| Parameter | Notes |
|---|---|
W / C | Request type. Default: W (Workbench) — do NOT ask. Only treat as C when the user explicitly typed C / customizing / cust in the arguments or the conversation. |
"<short description>" | If the caller passed a description, use it (still truncated to 60 chars in Step 3). |
OBJECT_TYPE=<...> | Object type the caller is deploying (e.g. REPORT, TABLE, FM, CLASS, MSGCLASS). Used by PATTERN. |
OBJECT_DESCRIPTION=<...> | Object name being deployed (e.g. ZHKMARA). Used by PATTERN. |
Mapping:
W / workbench / dev → radKO042-REQ_CONS_KC / customizing / cust → radKO042-REQ_CUST_WDo NOT prompt the user for the request type. A bare /sap-se01 call
defaults to W.
This skill requires an active SAP GUI session. If not already logged in, use
/sap-login, then return here.
If the caller passed an explicit "<short description>" argument and that
argument was provided by the human user (not by an upstream skill that just
forwarded a placeholder), use it as-is and skip to the truncation step.
Otherwise, render the description per rule_of_tr_description:
| Value | What to do |
|---|---|
ASK | Prompt the user: "Short description for the new TR?" Use the answer. |
PATTERN | Render tr_description_template with placeholder substitution (table below). If the template is blank, fall back to {YYYYMMDD}_{OBJECT_TYPE}_{OBJECT_DESCRIPTION}. |
FIXED | Use tr_description_template literally. If blank, fall back to ASK. |
RANDOM | Generate TR_<8-hex-random>_<yyyyMMdd> (e.g. TR_4f8b2a91_20260426). |
PATTERN| Placeholder | Source |
|---|---|
{YYYYMMDD} | Workstation date (Get-Date format yyyyMMdd) |
{HHMMSS} | Workstation time (Get-Date format HHmmss) |
{USER} | sap_user from settings.json |
{OBJECT_TYPE} | The OBJECT_TYPE=... argument; if absent, OBJ |
{OBJECT_DESCRIPTION} | The OBJECT_DESCRIPTION=... argument; if absent, UNKNOWN |
{RANDOM4} | 4-char alphanumeric (e.g. 7K2P) — uniqueness suffix |
SE01 short description field accepts at most 60 characters. After rendering:
{OBJECT_DESCRIPTION} portion.{OBJECT_TYPE}.The primary TRKORR resolution (Step 5) reads the number straight from the
create-success statusbar and does not depend on the description at all. Only
the SE16N fallback filters E07T by AS4TEXT = this exact description;
a reused description (e.g. FIXED mode) is disambiguated there by picking
the highest matching modifiable TRKORR, so uniqueness is not required — but
appending _<RANDOM4> is still recommended so parallel test runs stay
distinguishable in TR listings.
The VBS will echo back INFO: AS4TEXT=<...> and INFO: AS4USER=<...> for
diagnostics, plus INFO: TRKORR=<...> / INFO: TRFUNCTION=<...> and the
authoritative RESULT_TR: <...> once it has resolved the new request.
Template: ./references/sap_se01_create.vbs. Tokens: %%REQUEST_TYPE%%,
%%DESCRIPTION%%. The VBS performs both create and lookup in a
single run.
Write {RUN_TEMP}\sap_se01_create_run.ps1:
$content = [System.IO.File]::ReadAllText('<SKILL_DIR>\references\sap_se01_create.vbs', [System.Text.Encoding]::UTF8)
$content = $content -replace '%%REQUEST_TYPE%%','THE_TYPE'
$content = $content -replace '%%DESCRIPTION%%','THE_DESC'
$content = $content -replace '%%SESSION_LOCK_VBS%%','<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_session_lock.vbs'
# Phase 4.2 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 -- which would create
# the TR on a different SAP system than the deploy that asked for it (2026-08-06).
. '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'
$sessionPath = Get-SapCurrentSessionPath -WorkTemp '{WORK_TEMP}'
$content = $content.Replace('%%SESSION_PATH%%', $sessionPath)
$content = $content -replace '%%ATTACH_LIB_VBS%%','<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_attach_lib.vbs'
[System.IO.File]::WriteAllText('{RUN_TEMP}\sap_se01_create_run.vbs', $content, [System.Text.UnicodeEncoding]::new($false, $true))
Write-Host ("Done (session_path='" + $sessionPath + "')")
Replace THE_TYPE (W or C), THE_DESC (short text), and <SKILL_DIR> /
{WORK_TEMP} with absolute paths.
Run:
powershell -ExecutionPolicy Bypass -File "{RUN_TEMP}\sap_se01_create_run.ps1"
Declare the GUI target in the SAME block as cscript — the attach lib reads
SAPDEV_EXPECT_SYSTEM/_CLIENT from the process environment, so the TR is always
created on the system the caller's 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_se01_create_run.vbs'
Expected last line of stdout: DONE. If the VBS prints ERROR:, abort
and report.
Capture from the VBS stdout:
INFO: AS4TEXT=<...> — the description as writtenINFO: AS4USER=<...> — the SAP login userRESULT_TR: <...> — the authoritative resolved new transport request
(this is the answer; no further lookup is needed)INFO: TRKORR=<...> — same value, kept for back-compat parsersINFO: TRFUNCTION=<...> — K (Workbench) or W (Customizing)The VBS gates and resolves in one run (no /sap-se16n call required):
wnd[0]/sbar.MessageType (locale-independent). E / A → the create
FAILED → ERROR: TR create failed - <sbar text> + exit 1. It never
proceeds to resolution on a failed create (that would resolve some
pre-existing request as "the new one").MessageParameter, guarded with On Error — not exposed on every
release), then scans the sbar text for the transport-number shape
3 alphanumerics + "K" + 6 digits (e.g. S4DK912345) — the shape is
locale-independent even though the message text is translated. Found →
that IS the result; SE16N is skipped entirely.E07T (request short texts — the description lives in
E07T (TRKORR, LANGU, AS4TEXT), NOT E070) filtered by AS4TEXT =
the exact description just written → candidate TRKORR set.E070 filtered by AS4USER = current user and
TRSTATUS = D; keep rows whose TRKORR is in the candidate set AND
whose TRFUNCTION is K/W (top-level requests — tasks share the
description but use S/Q/T/X). Multiple matches (reused
description, e.g. FIXED mode) → the highest TRKORR wins (numbers
are monotonic; the just-created request is the highest).INFO: TR_RESOLUTION_DEFERRED - resolve via RFC by AS4TEXT+AS4USER (sap_se01_resolve_trkorr.ps1). and exits 0 (non-fatal). This is the
normal path on releases/locales where the create leaves wnd[0]/sbar empty
— confirmed S/4HANA 1909 ZH (2026-07-02 finding F-1): the sbar carries
no create-confirmation and the SE16N GUI grid read is unreliable. The VBS
still NEVER guesses; it defers to the wrapper's RFC resolver in Step 5b.Step 5b — Authoritative RFC resolution (wrapper). When the VBS did NOT
print a RESULT_TR: line (it printed TR_RESOLUTION_DEFERRED), the wrapper
resolves the number over RFC — locale-independent and reliable where the
GUI is not — using the INFO: AS4TEXT=<...> and INFO: AS4USER=<...> values
the VBS echoed. Run under 32-bit PowerShell (NCo 3.1 in GAC_32):
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_se01_resolve_trkorr.ps1" -Description "<AS4TEXT>" -User "<AS4USER>"
It reads E07T by AS4TEXT → candidate TRKORRs, then E070 by AS4USER +
TRSTATUS = D + TRFUNCTION in K/W → highest matching TRKORR (newest;
no date filter). Last line: RESULT_TR: <TRKORR> (authoritative) or
TR_RESOLUTION_FAILED: <reason> (exit 1 = request genuinely not found /
not modifiable — verify in SE01; NEVER blind-re-run, that creates a SECOND
request). Creds fall back to the pinned profile via Connect-SapRfc.
SE16N field-selection rows are located by the Technical name column
(index 6) — the localised description column is unreliable across logon
languages — and each LOW value is written while its row is in the
viewport (scroll-safe).
Read the VBS stdout. Look for:
ERROR: TR create failed - <sbar text> — the create itself failed
(status-bar E/A). Nothing was resolved; report the SAP message.INFO: TR_RESOLUTION_DEFERRED - resolve via RFC ... — the create SUCCEEDED
but the GUI paths did not yield the number (normal on S/4HANA 1909 ZH). Run
the Step 5b RFC resolver with the echoed AS4TEXT/AS4USER; its
RESULT_TR: is authoritative.TR_RESOLUTION_FAILED: <reason> (from the Step 5b resolver) — the request is
genuinely not found / not modifiable over RFC. Check SE01 / E070 manually
before re-running — a blind re-run would create a SECOND request.ERROR: — navigation/layout failure; abort and report.RESULT_TR: <TRKORR> — the new transport request (authoritative) —
emitted by the VBS (statusbar fast-path) OR by the Step 5b RFC resolver.INFO: TRKORR=<TRKORR> — same value (back-compat line).INFO: TRFUNCTION=<K|W> — top-level Workbench (K) or Customizing (W).Report the resolved transport request to the user:
Created <TYPE> request <TRKORR> ("<DESC>")
Persistence is decided by the caller, not by /sap-se01. Specifically:
/sap-se01 invocation by the user does NOT update
sap_dev_transport_request./sap-transport-request in DEFAULT mode, the caller
persists the new TRKORR./sap-transport-request in ASK mode, the caller asks the
user once whether to save it as default./sap-transport-request in CREATE_NEW mode, the caller
does NOT persist.See <SAP_DEV_CORE_SHARED_DIR>/rules/tr_resolution.md for the full flow.
Use this section when $ARGUMENTS starts with release (e.g.
/sap-se01 release ER1K900234). Release marks the TR (and all of its tasks)
as R (Released) in E070-TRSTATUS. Release is irreversible — once
released, the TR cannot be modified again.
Same as Step 0 above: resolve work_dir, set {WORK_TEMP}, ensure it exists.
Extract the TR number from $ARGUMENTS (the token after release). Validate
the format (<SID>K<digits>, e.g. ER1K900234). If missing or malformed:
"Which transport request should I release? (e.g.
ER1K900234)"
BOTH checks below are mandatory and run BEFORE the confirmation prompt (R3) — the operator must see what the release will do before being asked to approve it. Do not skip either check.
E070). Query E070 via /sap-se16n (filter
TRKORR EQ <TR>, select TRKORR TRSTATUS TRFUNCTION AS4USER):
<TR> does not exist on this system."TRSTATUS = R (Released) or O (release started) → report and stop:
"TR
<TR>is already<STATUS>— nothing to release."
TRSTATUS = D (modifiable; L likewise) proceeds.
Also query E070 with STRKORR EQ <TR> — the child tasks and their
statuses (the release processes open tasks first; the task numbers feed
the inventory below).E071). Read what the TR will transport — objects
of a Workbench request live in its TASKS, so include them: /sap-se16n TABLE=E071 filtering TRKORR IN <TR>,<task1>,<task2>,... (the request
plus every task from check 1), selecting
TRKORR PGMID OBJECT OBJ_NAME OBJFUNC. Equivalent (RFC): the shared
helper <SAP_DEV_CORE_SHARED_DIR>\scripts\sap_tr_object_entries.ps1 -Trkorr <TR>, which walks the request + tasks in one call and reports a
deletions= count (OBJFUNC = D entries record object DELETIONS that
will transport onward).
An empty inventory is legal (releasing an empty TR) — state that
explicitly in R3 instead of showing a blank list.Read-failure guard (both checks). /sap-se16n now distinguishes a genuine
empty result (ROWS=0 (NO_DATA)) from a failed query (QUERY_FAILED, exit 1 —
authorization / lock / invalid table). If EITHER read returns QUERY_FAILED, the
status/inventory is UNKNOWN — do NOT treat it as "TR does not exist" or "empty
inventory" and do NOT proceed to R3. Surface the message and stop; a release
must never run on an unread inventory.
Release is irreversible. Show the R2 findings — the status line plus the full object inventory — and ask; NEVER release without explicit confirmation:
"About to release TR
<TR>(statusD,<K>open task(s)) via SE01. It will transport<N>object entr(ies) [of which<d>record DELETIONS]:
<one line per E071 entry: TRKORR PGMID OBJECT OBJ_NAME [OBJFUNC]>This is irreversible — once released the TR cannot be modified and these objects transport onward. Proceed? (yes / no)"
(For an empty TR say "It currently holds NO object entries" instead of the
list.) Only proceed on explicit yes. Anything else → abort.
If <TR> matches sap_dev_transport_request in settings.json, also warn:
"Note: this TR is currently your saved default (
sap_dev_transport_request). After release I'll clear that setting so the next deploy creates / asks for a new TR."
If the user confirms, plan to call /update-config to clear
sap_dev_transport_request after a successful release.
Same as Step 2: requires an active SAP GUI session.
Template: ./references/sap_se01_release.vbs. Token: %%TRANSPORT%%.
Write {RUN_TEMP}\sap_se01_release_run.ps1:
$content = [System.IO.File]::ReadAllText('<SKILL_DIR>\references\sap_se01_release.vbs', [System.Text.Encoding]::UTF8)
$content = $content -replace '%%TRANSPORT%%','THE_TR'
# BAKE the session path (attach Strategy 1) -- an env var exported by this
# generator process never reaches the separate process that runs cscript. Release
# is irreversible, so a silent retarget would release the WRONG system's TR.
. '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'
$sessionPath = Get-SapCurrentSessionPath -WorkTemp '{WORK_TEMP}'
$content = $content.Replace('%%SESSION_PATH%%', $sessionPath)
$content = $content -replace '%%ATTACH_LIB_VBS%%','<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_attach_lib.vbs'
[System.IO.File]::WriteAllText('{RUN_TEMP}\sap_se01_release_run.vbs', $content, [System.Text.UnicodeEncoding]::new($false, $true))
Write-Host ("Done (session_path='" + $sessionPath + "')")
Run:
powershell -ExecutionPolicy Bypass -File "{RUN_TEMP}\sap_se01_release_run.ps1"
Declare the GUI target in the SAME block as cscript. Release is irreversible, so refusing a GUI parked on a different system than the RFC leg is the difference between releasing the intended TR and releasing another system's namesake:
. '<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_se01_release_run.vbs'
The VBS releases each task once (collected by number, not by fixed label
position) then the request, and emits a status[<type>]: <text> line per node
plus a final DONE or WARNING / ERROR line. The VBS output is NOT
authoritative — it cannot read E070; R7's RFC check is the gate.
| Last line | Meaning |
|---|---|
DONE: TR <TR> release flow ran (no visible failure). Caller MUST verify E070-TRSTATUS=R ... | No failure was visible in the GUI. Still verify in R7 — this is not a success claim. |
WARNING: request <TR> release appears to have FAILED ... | The request release hit a transport-control (tp) error or an E/A status — the request is likely still modifiable (TRSTATUS=D). Exit code 1. Surface the tp message; the TR did NOT release. Most often the system's STMS / transport route is not configured for an outbound release (common on sandboxes), or the TR has unsaved objects / RDDIMPDP is down. |
ERROR: ... | A navigation/attach step failed. Show the SAP message. |
Always RFC-verify — regardless of the VBS verdict. The bare VBS cannot read
E070, so a DONE line is "no visible failure", NOT "released". Confirm via
/sap-se16n E070 (or RFC_READ_TABLE) filtering TRKORR EQ <TR> and
STRKORR EQ <TR> (the child tasks):
TRSTATUS = R. If the request is still
D (modifiable) while tasks are R, the request release failed (e.g. the
S4D-style tp return-code-0012 — STMS not configured) — report it as a
failure, NOT a success, and surface the tp/sbar message. Do not clear
any default or claim the TR is released.R: if R3 noted the TR was the saved default, run
/update-config to clear sap_dev_transport_request (set to empty).Released TR <TR>. Verified E070-TRSTATUS = R (request + N task(s)).
[sap_dev_transport_request cleared.]
or, on the failure path:
TR <TR> did NOT release: request still TRSTATUS=D (tasks R). <tp/sbar message>.
Likely STMS/transport route not configured for release on this system.
| Element | ID |
|---|---|
| OK code | wnd[0]/tbar[0]/okcd |
| Transport Organizer tab | wnd[0]/usr/tabsMAINTABSTRIP/tabpTSSN |
| TR input field | wnd[0]/usr/tabsMAINTABSTRIP/tabpTSSN/ssubCOMMONSUBSCREEN:RDDM0001:0210/ctxtTRDYSE01SN-TR_TRKORR |
| Display button | wnd[0]/usr/tabsMAINTABSTRIP/tabpTSSN/ssubCOMMONSUBSCREEN:RDDM0001:0210/btn%_AUTOTEXT028 (auto-name; falls back to F8) |
| Release Directly | sendVKey 9 (F9) on wnd[0] after focusing a list row |
| Confirmation popup | wnd[1] — Enter to confirm |
| Status bar | wnd[0]/sbar |
| End-of-flow detector | wnd[0]/usr/tabsMAINTABSTRIP re-appears (back on SE01 main) |
The VBS scans wnd[0]/usr.Children for the first GuiLabel each iteration
instead of using fixed positions like lbl[24,11] — those positions in the
recording are list-layout dependent and break when the list reshuffles.
Use this section when $ARGUMENTS starts with delete (e.g.
/sap-se01 delete ER1K900234). Delete removes the request object itself --
NOT release (releasing would transport its objects onward). Deletion is
irreversible, and only an unreleased request can be deleted.
Two-phase delete. SAP will not delete a request that still contains objects (the request silently survives -- confirmed live on EC2/ERP 2026-06-22). So the VBS works in two phases:
tbar[1]/btn[25]), opens the Objects
tab, and if the list is non-empty does Select-All (btnDB_SELECT_ALL) +
Delete (btnDB_DELETE) + confirm + Save. This unassigns the objects from
the request -- it does NOT delete the repository objects, which remain in
their package as orphans (no transport). Every removed entry is echoed.tbar[1]/btn[13] = Shift+F1), answer the confirm (btnBUTTON_1 / Yes)
via the shared popup walker, re-displaying fresh between deletions. The
request-delete does not reliably cascade to its tasks across releases (and
some releases refuse to delete a request that still owns a task), so each node
is deleted explicitly -- the node-by-node flow recorded in
Record_EC2_SE01_DeleteTR001.vbs. This is what makes a clean delete of an
empty TR/Task reliable; a freshly-created Workbench request typically owns
one auto-created task, which Phase 2 removes before the request.This mode is the back end for /sap-dev-clean --reset Step 3g: by the time it
runs, the dev TR's objects have already been deleted by Steps 3a-3e, so Phase 1
finds an empty list and is a no-op safety net -- nothing is orphaned. Only a
standalone /sap-se01 delete on a TR that still holds live objects will
orphan them (see D2).
Same as Step 0 above: resolve work_dir, set {WORK_TEMP} and {RUN_TEMP}.
Extract the TR number from $ARGUMENTS (the token after delete). Validate the
format (<SID>K<digits>, e.g. ER1K900234). If missing / malformed:
"Which transport request should I delete? (e.g.
ER1K900234)"
Deletion is irreversible. Show the operator what's inside, then confirm:
OBJFUNC + a deletions= count):
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_tr_object_entries.ps1" -Trkorr <TR>
(or /sap-se16n E071 filtering TRKORR EQ <TR> reading OBJFUNC too). Also
read E070-TRSTATUS. Each ENTRY line ends …OBJ_NAME<TAB>OBJFUNC<TAB>REQUEST
where OBJFUNC = K (create/change) or D (records a DELETION).TRSTATUS is R (Released) or O (release
started), stop: a released request cannot be deleted (only reimported).OBJFUNC='D', deletions=<d> > 0). A D entry is
a record that the object was deleted (the object is already gone). Phase 1
will unassign it -- which un-records the deletion: the object stays
deleted in THIS system, but the deletion will no longer transport to QA /
PROD (and any TADIR orphan stays). For a throwaway dev TR that is the right
outcome; for a TR whose deletions are meant to ship, you almost certainly
want to RELEASE it, not delete it. Call this out explicitly when <d> > 0
and require a knowing confirmation. (A TR holding ONLY D entries is
"effectively empty" of live content -- safe to drop for cleanup, but the
un-record consequence still applies.)<N> > 0; add the deletion
note whenever <d> > 0):
"About to DELETE transport request
<TR>(status<TRSTATUS>,<N>entries shown above;<d>of them are DELETION records) via SE01. The<N>entr(ies) will first be unassigned from the request, then the request is dropped. [If<d>>0:] This un-records<d>deletion(s) -- those objects stay deleted here but the deletions will NOT transport onward. Irreversible. Proceed? (yes / no)"
Only proceed on explicit yes. (When called from /sap-dev-clean --reset,
that skill has already shown the E071 list and confirmed -- it may pass the
confirmation through.)
P6 -- where an object's deletion actually lands (read before assuming a "new TR"). When you DELETE a repository object (via
/sap-se11,/sap-se21, …), SAP records the deletion in the object's own modifiable request if it still has one -- auto-creating a task there -- and only prompts for a different TR (theKO008popup) when the object's original request is released. So "the deletions go to a new TR" holds ONLY for released-original objects; otherwise they fold back into the original (still-D) request and any TR you passed is ignored / left empty. Never assume which TR captured a deletion -- query it (the helper's by-object mode,-Objects <name>, returns the actualREQUEST).
Same as Step 2: requires an active SAP GUI session.
Template: ./references/sap_se01_delete.vbs. Token: %%TRANSPORT%%.
Write {RUN_TEMP}\sap_se01_delete_run.ps1:
$content = [System.IO.File]::ReadAllText('<SKILL_DIR>\references\sap_se01_delete.vbs', [System.Text.Encoding]::UTF8)
$content = $content -replace '%%TRANSPORT%%','THE_TR'
$content = $content -replace '%%SESSION_LOCK_VBS%%','<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_session_lock.vbs'
# BAKE the session path (attach Strategy 1) -- an env var exported by this
# generator process never reaches the separate process that runs cscript. Delete
# is irreversible, so a silent retarget would destroy the WRONG system's TR.
. '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'
$sessionPath = Get-SapCurrentSessionPath -WorkTemp '{WORK_TEMP}'
$content = $content.Replace('%%SESSION_PATH%%', $sessionPath)
$content = $content -replace '%%ATTACH_LIB_VBS%%','<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_attach_lib.vbs'
[System.IO.File]::WriteAllText('{RUN_TEMP}\sap_se01_delete_run.vbs', $content, [System.Text.UnicodeEncoding]::new($false, $true))
Write-Host ("Done (session_path='" + $sessionPath + "')")
The VBS derives the shared sap_delete_popups.vbs path from the substituted
%%ATTACH_LIB_VBS%% directory (same shared/scripts folder) -- no extra token.
Run:
powershell -ExecutionPolicy Bypass -File "{RUN_TEMP}\sap_se01_delete_run.ps1"
Declare the GUI target in the SAME block as cscript. Deletion is irreversible, so refusing a GUI parked on a different system than the RFC leg is the difference between deleting the intended TR and destroying another system's namesake:
. '<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_se01_delete_run.vbs'
Before the verdict the VBS echoes Phase-1 progress -- one
INFO: Request nodes found: <N> line, then per node either
INFO: node <TR/task>: 0 objects. or INFO: node <task>: <N> object(s) -- unassigning... followed by one INFO: - <PGMID> <OBJECT> <NAME> line
per unassigned entry, then INFO: Phase 1 removed <N> object entr(ies). Surface
the unassigned-object lines to the operator -- they are the orphaned objects.
Then Phase 2 echoes one INFO: deleting <task|request> node <TR> (Shift+F1)...
line per node deleted (tasks first, then the request), and a closing
INFO: Phase 2 deleted <N> node(s) (tasks then request).. A node reported
not present; skip (already deleted) was removed by a prior step / cascade --
harmless.
| Last line | Meaning |
|---|---|
SUCCESS: Transport request <TR> deleted. | All nodes are gone (the VBS re-displayed the request and its screen no longer opened). Verify authoritatively in D6. |
ERROR: Request display did not open ... | The TR did not exist to begin with (already gone) -- treat as success once the D6 RFC check confirms absence. |
ERROR: TR <TR> still exists after delete ... | Delete did not take (a confirm-popup style the walker didn't match, the TR was actually released, or Phase 1 could not empty a task). Show the SAP sbar line; recheck status and retry, or finish in SE01 manually. |
RFC_READ_TABLE on E070 filtering
TRKORR = '<TR>' -> expect 0 rows. (The VBS's own verify is a
language-independent Info.Program check; this RFC read is authoritative.)
Also confirm no orphaned child task survived -- E070 filtering
STRKORR = '<TR>' should likewise return 0 rows (the node-by-node Phase 2
deletes each task explicitly, so a leftover task here means a node delete was
blocked -- surface it).Deleted TR <TR> (request + tasks). Verified E070 rows absent./sap-dev-clean --reset, it clears the dev-default TR
reference (its Step 4). A direct /sap-se01 delete does not touch settings.| Element | ID |
|---|---|
| TR input field | .../ssubCOMMONSUBSCREEN:RDDM0001:0210/ctxtTRDYSE01SN-TR_TRKORR |
| Display button | .../btn%_AUTOTEXT028 (auto-name) |
| Request-display program | SAPMSSY0 (screen 120) |
| Node rows (request + tasks) | wnd[0]/usr GuiLabels; identified by TR-number pattern (same 4-char prefix + 6 digits as the request), never by column text |
| Drill into a node | focus its label + sendVKey 2 (F2) -> object editor SAPLSCTSREQ screen 100 |
| Change-mode toggle (editor) | wnd[0]/tbar[1]/btn[25] |
| Objects tab | wnd[0]/usr/tabsREQ_TABSTRIP/tabpOBJECTS |
| Object subscreen base | .../tabpOBJECTS/ssubSCREEN_HEADER:SAPLSCTS_OLE:0500/ |
| Object count field | <base>txtDV_OBJECT_COUNT |
| Select-all / Delete (Phase 1) | <base>btnDB_SELECT_ALL / <base>btnDB_DELETE |
| Object-delete confirm | wnd[1]/usr/btnSPOP-OPTION1 / wnd[1]/tbar[0]/btn[0] / Enter (cascade) |
| Delete node (Phase 2) | wnd[0]/tbar[1]/btn[13] (Shift+F1 -- stable id; alt menu mbar/menu[0]/menu[5]). Applied per node: focus the task label then Delete, repeat for each task, then focus the request label + Delete. Re-display fresh between deletions. |
| Node-delete confirm popups | handled by the shared sap_delete_popups.vbs walker (btnBUTTON_1 / btnSPOP-OPTION1 / Enter) -- same popup for a task or a request delete |
| Status bar | wnd[0]/sbar |
Live-verified 2026-06-22 (two-phase delete, multi-object TRs):
ERPK900035 with 2 domains -> Phase 1
unassigned both -> Phase 2 deleted -> RFC E070 ROWS=0.S4DK941297 with 2 domains -> same flow ->
request-display re-open verify confirmed gone.ERPK900031/ERPK900033 ->
btnBUTTON_1 confirm -> RFC E070 ROWS=0.)Use this section when $ARGUMENTS starts with remove-objects (aliases
remove-object / delobj), e.g. /sap-se01 remove-objects ER1K900234 OBJECTS=ZCMD_RFCVAL,ZCMDE_RFCVAL. This unassigns object entries (E071) from
an unreleased request and keeps the request alive — the surgical counterpart
to Delete Mode (which drops the whole request).
Why this mode exists. An object recorded in an unreleased request holds a
name-lock. When the object's definition is later deleted (e.g. /sap-se11 delete) but its E071 entry lingers in the old request, re-creating the
object fails — SAP refuses with "object <X> is in request <TR>" / "enter
object only in original request". Removing the lingering E071 entry releases
the lock so the name can be created again. This is the root-cause fix behind the
/sap-dev-clean teardown and the /sap-dev-init defensive pre-create.
Removing an E071 entry is NOT a repository delete. It only unassigns the object from the request. If the object still exists it becomes a package orphan (no transport record); if its definition is already gone (the lock-clearing case) there is nothing to orphan. Releasing the lock is the whole point.
Same as Step 0 above: resolve work_dir, set {WORK_TEMP} and {RUN_TEMP}.
remove-objects (validate <SID>K<digits>, e.g.
ER1K900234). If missing / malformed:
"Which transport request should I remove objects from? (e.g.
ER1K900234)"
OBJECTS=<comma-separated OBJ_NAME list> — the objects to unassign (matched
case-insensitively against the E071 OBJ_NAME column). If omitted, the
mode removes ALL objects from the request (Select-All). Callers that want
surgical removal (/sap-dev-clean, /sap-dev-init) ALWAYS pass OBJECTS=.Read the TR's object list — /sap-se16n E071 filtering TRKORR EQ <TR>
(or RFC RFC_READ_TABLE on E071), plus E070-TRSTATUS.
Refuse a released TR. If TRSTATUS is R (Released) or O (release
started), stop — a released request cannot be edited (only reimported). The
name-lock is already gone for a released TR, so there is nothing to clear.
Resolve the effective removal set: intersect OBJECTS= with the E071 rows.
Show the operator exactly which entries will be unassigned. If OBJECTS=
was omitted (remove-ALL), spell that out and list every entry — removing
all entries from a TR that holds other work would unassign that work too.
Confirm:
"About to remove
<N>object entr(ies) from transport request<TR>(status<TRSTATUS>):<list>. This unassigns them from the request (clears their name-lock); it does NOT delete the repository objects. The request<TR>itself is kept. Proceed? (yes / no)"
Only proceed on explicit yes. When called from /sap-dev-clean /
/sap-dev-init, those skills have already shown the list and confirmed — they
may pass the confirmation through (each names a bounded OBJECTS= set of its
own dev-init artefacts, never remove-ALL).
Same as Step 2: requires an active SAP GUI session.
Template: ./references/sap_se01_remove_objects.vbs. Tokens: %%TRANSPORT%%,
%%OBJECTS%%.
Write {RUN_TEMP}\sap_se01_remove_objects_run.ps1:
$content = [System.IO.File]::ReadAllText('<SKILL_DIR>\references\sap_se01_remove_objects.vbs', [System.Text.Encoding]::UTF8)
$content = $content -replace '%%TRANSPORT%%','THE_TR'
$content = $content -replace '%%OBJECTS%%','THE_OBJECTS'
$content = $content -replace '%%SESSION_LOCK_VBS%%','<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_session_lock.vbs'
# BAKE the session path (attach Strategy 1) -- an env var exported by this
# generator process never reaches the separate process that runs cscript.
. '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'
$sessionPath = Get-SapCurrentSessionPath -WorkTemp '{WORK_TEMP}'
$content = $content.Replace('%%SESSION_PATH%%', $sessionPath)
$content = $content -replace '%%ATTACH_LIB_VBS%%','<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_attach_lib.vbs'
[System.IO.File]::WriteAllText('{RUN_TEMP}\sap_se01_remove_objects_run.vbs', $content, [System.Text.UnicodeEncoding]::new($false, $true))
Write-Host ("Done (session_path='" + $sessionPath + "')")
Replace THE_TR, THE_OBJECTS (the comma-separated list, or empty for
remove-ALL), and <SKILL_DIR> / {WORK_TEMP} / {RUN_TEMP} with absolute
values. Pass OBJECTS= from every automated caller — leave THE_OBJECTS
empty only for a deliberate operator-confirmed remove-ALL.
Run:
powershell -ExecutionPolicy Bypass -File "{RUN_TEMP}\sap_se01_remove_objects_run.ps1"
Declare the GUI target in the SAME block as cscript, so object entries are only ever unassigned from the TR on the system 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_se01_remove_objects_run.vbs'
The VBS echoes one INFO: Request nodes found: <N> line, then per node either
INFO: node <TR/task>: 0 objects. / ... none of the named objects present.
or INFO: node <task>: removing <N> matched object(s)... followed by one
INFO: - <PGMID> <OBJECT> <OBJ_NAME> line per removed entry. The removed
count is grid-verified: after Delete + Save the VBS re-reads the node's
object count and reports removed = before - after — a delete that SAP
silently ignored (released/locked TR) can no longer surface as SUCCESS.
| Last line | Meaning |
|---|---|
SUCCESS: Removed <N> object entr(ies) from <TR>. | <N> entries unassigned (count verified by post-delete re-read). Verify in X6. <N> = 0 with a "(none of the named objects were in the request)" tail means the lock was already clear — that is a clean success for the lock-clearing use case. |
ERROR: Change-mode switch failed on node <node> ... | SE01 refused edit mode (sbar E/A — typically a released/locked request). Nothing was removed. X2's E070-TRSTATUS gate should have caught this — re-check the status. |
ERROR: node <node> still holds <after> object(s) after delete+save (before=<n>, expected remaining=<m>). | The Delete/Save did not take (released mid-flight, lock, unexpected popup). Both counts are echoed; treat as failure — establish the real state via the X6 RFC check before assuming anything was removed. |
ERROR: Save failed on node <node> ... | The unassignment was not committed (sbar E/A on Save). Treat as failure. |
ERROR: Could not re-read the object count on node <node> ... | The screen drifted after the delete — removal is UNVERIFIED. Run the X6 RFC check to establish the real state. |
ERROR: Request display did not open ... | The TR did not exist (already gone). For the lock-clearing use case treat as success once X6 confirms E071 has no row. |
ERROR: TRANSPORT is empty ... | The %%TRANSPORT%% token was not substituted. Re-generate the VBS. |
RFC_READ_TABLE on
E071 filtering TRKORR = '<TR>' (or /sap-se16n E071). Each removed
OBJ_NAME should no longer appear under that TRKORR. (The request header
E070 row still exists — that is intended; only the object entries were
removed.)Removed <N> object entr(ies) from <TR> (request kept).
Verified E071 no longer lists: <objects>.
| Element | ID |
|---|---|
| TR input field | .../ssubCOMMONSUBSCREEN:RDDM0001:0210/ctxtTRDYSE01SN-TR_TRKORR |
| Display button | .../btn%_AUTOTEXT028 (auto-name) |
| Request-display program | SAPMSSY0 |
| Object editor program | SAPLSCTSREQ |
| Node rows (request + tasks) | wnd[0]/usr GuiLabels; identified by TR-number pattern, never column text |
| Drill into a node | focus its label + sendVKey 2 (F2) |
| Change-mode toggle (editor) | wnd[0]/tbar[1]/btn[25] |
| Objects tab | wnd[0]/usr/tabsREQ_TABSTRIP/tabpOBJECTS |
| Object subscreen base | .../tabpOBJECTS/ssubSCREEN_HEADER:SAPLSCTS_OLE:0500/ |
| Object count field | <base>txtDV_OBJECT_COUNT |
| Object table control | <base>tblSAPLSCTS_OLETC_OLE (cells ctxtTRE071X-PGMID[1,r] / ctxtTRE071X-OBJECT[2,r] / txtTRE071X-OBJ_NAME[3,r]) |
| Select-all (remove-ALL path) | <base>btnDB_SELECT_ALL |
| Targeted row select | <table>.GetAbsoluteRow(i).Selected = True (scroll via <table>.VerticalScrollbar.Position) |
| Delete selected | <base>btnDB_DELETE |
| Object-delete confirm | wnd[1]/usr/btnSPOP-OPTION1 / btnBUTTON_1 / tbar[0]/btn[0] / Enter (cascade) |
| Save (commit unassign) | sendVKey 11 |
Log the run-end record. Best-effort.
On success:
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action end -StateFile "{RUN_TEMP}\sap_se01_run.json" -Status SUCCESS -ExitCode 0
On failure:
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action end -StateFile "{RUN_TEMP}\sap_se01_run.json" -Status FAILED -ExitCode 1 -ErrorClass <CLASS> -ErrorMsg "<short>"
Suggested <CLASS>: TR_CREATE_FAILED, TR_RESOLUTION_FAILED, GUI_TIMEOUT.
| Element | ID |
|---|---|
| OK code field | wnd[0]/tbar[0]/okcd |
| Create button (F6) | wnd[0]/tbar[1]/btn[6] |
| Workbench radio | wnd[1]/usr/radKO042-REQ_CONS_K |
| Customizing radio | wnd[1]/usr/radKO042-REQ_CUST_W |
| Confirm | wnd[1]/tbar[0]/btn[0] |
| Description field | wnd[1]/usr/txtKO013-AS4TEXT |
| Status bar | wnd[0]/sbar |
| Field | Meaning |
|---|---|
TRKORR | Transport request number (e.g. S4DK900123) |
TRFUNCTION | K Workbench, W Customizing, T Task / Repair, S Development task |
TRSTATUS | D Modifiable, L Locked, O Released started, R Released |
AS4USER | Owner |
AS4DATE | Last-changed date (YYYYMMDD) |
AS4TIME | Last-changed time (HHMMSS) |
STRKORR | Parent request (empty for top-level requests, populated for tasks) |
AS4TEXT | Short description — lives in E07T (TRKORR, LANGU, AS4TEXT), NOT in E070; join on TRKORR (see Step 5) |
wnd[1] before backing out.AS4TEXT filter uses the inline single-value cell,
which rejects some characters (e.g. [). The primary statusbar extraction is
unaffected; when both paths fail the VBS exits with TR_RESOLUTION_FAILED
instead of guessing.README.md (opens in a new tab)references/sap_se01_create.screens.json (opens in a new tab)references/sap_se01_create.vbs (opens in a new tab)references/sap_se01_delete.screens.json (opens in a new tab)references/sap_se01_delete.vbs (opens in a new tab)references/sap_se01_release.screens.json (opens in a new tab)references/sap_se01_release.vbs (opens in a new tab)references/sap_se01_remove_objects.screens.json (opens in a new tab)references/sap_se01_remove_objects.vbs (opens in a new tab)references/sap_se01_resolve_trkorr.ps1 (opens in a new tab)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