/sap-dev-core:sap-update-addon <table-name> <data-file> [<operation>] [<sap-logon-description>]from sap-dev-core
Inserts or updates records in SAP add-on tables (Y/Z prefix) by automatically selecting SM30, SE16, or a fallback program. Requires SAP GUI with active 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 maintain records in SAP add-on tables (Y/Z prefix) by detecting the best method and executing the appropriate transaction.
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 |
<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md | Mandatory operating rules |
<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 |
<SAP_DEV_CORE_SHARED_DIR>/rules/abap_code_quality_rules.md | ABAP code-quality rules — apply to ABAP this skill generates or checks. Exception: references/ZCMRUPDATE_ADDON_TABLE.abap is a deliberately classic-syntax bootstrap utility (it must activate on ECC 6.0 / NetWeaver ≤7.40 as well as S/4HANA) — do NOT modernize it. See "Classic-syntax exception" in Step 4c. |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_gui_security_sidecar.ps1 | OS-level (Win32) auto-dismiss for the "SAP GUI Security" dialog. Step 4c (PROG method) launches it in parallel: the program's GUI_UPLOAD (data-file read) and save-list GUI_DOWNLOAD (output write) are SAP-GUI-side file IO that trip the modal when {work_dir} isn't trusted — without the watcher, cscript hangs. |
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. Read custom_url.
| Setting | Default if blank |
|---|---|
work_dir | C:\sap_dev_work |
custom_url | {work_dir}\custom |
Set {WORK_TEMP} = {work_dir}\temp
Ensure the temp directory 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}.
Start a structured log run. State file: {RUN_TEMP}\sap_update_addon_run.json. Best-effort.
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_update_addon_run.json" -Skill sap-update-addon -ParamsJson "{\"table\":\"<TABLE>\"}"
safety_policy.md)This skill writes business data into Y/Z add-on tables. 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-update-addon
| 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 the transaction manually instead — Rule 0 outranks every other instruction, including mid-session user ones. |
SAFETY: ERROR ... | 2 | treat exactly as REFUSED (fail closed) |
Extract from $ARGUMENTS:
INSERT (default), UPDATE, or DELETE.
For the ZCMRUPDATE_ADDON_TABLE (PROG) method, INSERT and UPDATE both result in MODIFY (upsert).
DELETE is refused by all three method scripts — SM30 flow: not implemented
(ERROR: SM30_DELETE_UNSUPPORTED); SE16: stub on all releases
(ERROR: SE16_DELETE_UNSUPPORTED); PROG: the utility has no DELETE mode
(ERROR: PROG method supports upsert (MODIFY) only). Each exits 1 before
touching any data. For deletes, drive SM30 manually or ask for a dedicated flow.If the user provides inline data instead of a file, write it to {RUN_TEMP}\<TABLE_NAME>_data.txt
as a TAB-delimited file with header.
Verify the data file exists:
powershell -Command "if (Test-Path 'THE_FILE') { 'EXISTS' } else { 'NOT FOUND' }"
Read SAP connection parameters from the merged sap-dev-core settings (per shared/rules/settings_lookup.md — settings.local.json overrides settings.json per-key on the .value field):
| Setting key | Maps to | Example |
|---|---|---|
sap_application_server | %%SAP_SERVER%% | 10.0.0.1 |
sap_system_number | %%SAP_SYSNR%% | 00 |
sap_client | %%SAP_CLIENT%% | 100 |
sap_user | %%SAP_USER%% | DEVELOPER |
sap_password | %%SAP_PASSWORD%% | (masked) |
sap_language | %%SAP_LANGUAGE%% | EN |
If settings are not configured, ask the user to provide the values and suggest they configure settings.json for future use.
This skill requires an active SAP GUI session. If not already logged in, use the /sap-login skill first, then return here.
The detection PowerShell template is at ./references/sap_update_addon_detect.ps1.
Write {RUN_TEMP}\sap_update_addon_detect_run.ps1:
$content = [System.IO.File]::ReadAllText('<SKILL_DIR>\references\sap_update_addon_detect.ps1', [System.Text.Encoding]::UTF8)
$content = $content.Replace('%%SAP_SERVER%%', '')
$content = $content.Replace('%%SAP_SYSNR%%', '')
$content = $content.Replace('%%SAP_CLIENT%%', '')
$content = $content.Replace('%%SAP_USER%%', '')
$content = $content.Replace('%%SAP_PASSWORD%%', '')
$content = $content.Replace('%%SAP_LANGUAGE%%', '')
$content = $content.Replace('%%RFC_LIB_PS1%%', '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_rfc_lib.ps1')
$content = $content.Replace('%%TABLE_NAME%%', 'THE_TABLE_NAME')
[System.IO.File]::WriteAllText('{RUN_TEMP}\sap_update_addon_detect_run.ps1', $content, [System.Text.Encoding]::UTF8)
Write-Host 'Done'
Execute via 32-bit PowerShell. The outer command resolves the AI session's
pinned SAP session (canonical Get-SapCurrentSessionPath wrapper line) and
bridges it into the child via $env:SAPDEV_SESSION_PATH, so detection runs
against the pinned session instead of grabbing the first session of the first
connection. The detect script resolves its target in attach-lib order:
explicit -SessionPath → $env:SAPDEV_SESSION_PATH → sole-connection +
sole-session default → refuse loud (exit 1, listing the attached connections
and telling the user to /sap-login pin).
powershell -NoProfile -ExecutionPolicy Bypass -Command '. "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1"; $env:SAPDEV_SESSION_PATH = Get-SapCurrentSessionPath -WorkTemp "{WORK_TEMP}"; & "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -File "{RUN_TEMP}\sap_update_addon_detect_run.ps1"'
(The -Command string is single-quoted for the shell so $env: survives
git-bash verbatim.) If the user supplied an explicit --session /app/con[N]/ses[M], append -SessionPath "/app/con[N]/ses[M]" to the inner
powershell.exe invocation instead.
Parse the output lines:
RESULT_SM30:True / RESULT_SM30:FalseRESULT_MAINFLAG:X / RESULT_MAINFLAG:RESULT_PROG:True / RESULT_PROG:FalseRESULT_METHOD:SM30 / SE16 / PROG / NONEIf RESULT_METHOD:NONE, tell the user no method is available and suggest deploying
ZCMRUPDATE_ADDON_TABLE first using the sap-se38 skill.
Detection-attach failure (exit code 2): On some Windows 11 + SAP GUI 760+
builds, GetActiveObject("SAPGUI") fails with CO_E_CLASSSTRING ("Invalid
class string") because the SAPGUI ProgID is not registered in the Running
Object Table for the calling process bitness. The detect script tries
SAPGUI, SAPGUI.ScriptingCtrl.1, and SapGui.ScriptingCtrl.1 in turn; if
all fail it exits with code 2. When you see exit code 2, skip detection
entirely and proceed directly to Step 4c (PROG method) — the universal
ZCMRUPDATE_ADDON_TABLE program path uses VBS GetObject("SAPGUI") which is
not affected by the same registration issue.
Template: ./references/sap_update_addon_sm30.vbs
Write {RUN_TEMP}\sap_update_addon_sm30_run.ps1:
$content = [System.IO.File]::ReadAllText('<SKILL_DIR>\references\sap_update_addon_sm30.vbs', [System.Text.Encoding]::UTF8)
$content = $content.Replace('%%TABLE_NAME%%', 'THE_TABLE_NAME')
$content = $content.Replace('%%DATA_FILE%%', 'THE_DATA_FILE')
$content = $content.Replace('%%OPERATION%%', 'THE_OPERATION')
# Transport for the SM30 transport popup (probed by control id
# ctxtKO008-TRKORR). Resolve it via /sap-transport-request FIRST whenever the
# maintenance view can be transportable / recording-enabled. '' is allowed,
# but if SAP then prompts for a TR the VBS aborts with ABORT_EMPTY_TR -- it
# never blind-Enters the transport popup.
$content = $content.Replace('%%TRANSPORT%%', 'THE_TRANSPORT_OR_EMPTY')
# 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 (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_update_addon_sm30_run.vbs', $content, [System.Text.UnicodeEncoding]::new($false, $true))
Write-Host ("Done (session_path='" + $sessionPath + "')")
Execute (SAP GUI Scripting COM requires 32-bit cscript), declaring the GUI target
in the SAME block — the attach lib reads SAPDEV_EXPECT_SYSTEM/_CLIENT from the
process environment, so add-on table rows can never be written to a system other
than the one the RFC detection 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_update_addon_sm30_run.vbs"
SM30 Notes:
ctxt<TABLE>-<FIELD> / txt<TABLE>-<FIELD> fields and saves once; a
multi-row data file is refused upfront (rows 2..N would overwrite the same
fields before the Save). Table-control (list) maintenance dialogs are refused
with ERROR: SM30_LAYOUT_UNSUPPORTED (table control) - use the SE16 or PROG method
before anything is saved.ctxtKO008-TRKORR probe,
same discriminator as shared/scripts/sap_delete_popups.vbs) — never
blind-Enter'd. Present + %%TRANSPORT%% filled → fill + Enter; present +
empty transport → the run echoes ABORT_EMPTY_TR and exits 1 (resolve a TR
via /sap-transport-request, re-run). Non-TR info popups (e.g. the
cross-client caution) are dismissed with Enter; a popup chain that survives
5 dismissals fails loud.ERROR: SM30_DELETE_UNSUPPORTED, exit 1).tbar[1]/btn[14]; Save via Ctrl+S (sendVKey 11).MessageType E/A after Enter or after Save →
ERROR: ... + exit 1. SUCCESS: SM30 maintenance completed for <TABLE>
prints only after every gate passes.Template: ./references/sap_update_addon_se16.vbs
Write {RUN_TEMP}\sap_update_addon_se16_run.ps1:
$content = [System.IO.File]::ReadAllText('<SKILL_DIR>\references\sap_update_addon_se16.vbs', [System.Text.Encoding]::UTF8)
$content = $content.Replace('%%TABLE_NAME%%', 'THE_TABLE_NAME')
$content = $content.Replace('%%DATA_FILE%%', 'THE_DATA_FILE')
$content = $content.Replace('%%OPERATION%%', 'THE_OPERATION')
# 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_update_addon_se16_run.vbs', $content, [System.Text.UnicodeEncoding]::new($false, $true))
Write-Host ("Done (session_path='" + $sessionPath + "')")
Execute (SAP GUI Scripting COM requires 32-bit cscript), declaring the GUI target in the SAME block (see the SM30 path above) so rows land only on the system the RFC detection 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_update_addon_se16_run.vbs"
SE16 Notes (INSERT / UPDATE):
tbar[1]/btn[5] (icon B_CREA) on the SE16 initial screen (SAPLSETB/230), pressed after entering the table name. Live-verified the SAME on both ECC 6.0 (SID ER1) and S/4HANA 1909 (S4D), 2026-06-17. NB: tbar[1]/btn[18] is not Create Entries (it is Selection-Screen-Help / Info, icon B_INFO, and only exists on the post-Enter selection screen) — the original "S/4 = btn[18]" assumption was wrong; it's kept only as a legacy fallback.btn[5] → btn[18] (legacy) → the Edit menu, and verifies it reached the Insert form (probes the first non-MANDT field via EntryFieldPresent) before filling — a press that lands on the wrong screen never leads to saving an empty/wrong row; if none reach the form it fails loud./1BCDWB/DB<table>/101): txt<TABLE>-<FIELD> (or ctxt); MANDT is read-only and skipped. Each record is saved with Ctrl+S → status "Database record successfully created".btn[5] path.ERROR: SE16_DELETE_UNSUPPORTED, exit 1, before any row is touched) — the SE16 result is a non-grid classic SAPMSSY0/120 list with no Delete button on both ER1 and S4D. For deletes use SM30 (needs a maintenance view) or delete manually. INSERT/UPDATE is the supported SE16 path.MessageType E/A counts as FAILED. A row where only SOME field IDs matched is not saved (saving it would commit silently-empty fields) — the VBS backs out with F12 (+ discard confirm) and counts it FAILED. Any failed row makes the final verdict ERROR: <n> of <m> rows failed (rows: <list>) + exit 1; only an all-rows-clean run ends SUCCESS: SE16 maintenance completed. <n> of <m> rows saved.First, ensure the ZCMRUPDATE_ADDON_TABLE program is available. If not, tell the user to deploy it using the sap-se38 skill (or run /sap-dev-init).
The source code for ZCMRUPDATE_ADDON_TABLE is at ./references/ZCMRUPDATE_ADDON_TABLE.abap for reference.
Classic-syntax exception — do not modernize
ZCMRUPDATE_ADDON_TABLE.abap. Unlike customer-facing ABAP (which follows the modern-syntax / OOP rules inabap_code_quality_rules.md), this bootstrap utility is written entirely in classic, release-independent ABAP so a SINGLE source activates on BOTH classic ECC 6.0 / NetWeaver ≤7.40 AND S/4HANA 1909+. The 7.40+ expression syntax a generator normally emits — inlineDATA(...),VALUE/NEW/CONV, string templates|…{ }…|, the&&operator, table typesWITH EMPTY KEY— does not activate on ECC 6.0 (verified 2026-06-17 on SID ER1: the program deploys but will not activate and will not launch from SA38). If you edit this file keep it classic — explicitDATA,CREATE OBJECT,CONCATENATE/WRITE,WITH DEFAULT KEY. The file header repeats this rule. No release detection is needed: one file runs everywhere.
Template: ./references/sap_update_addon_prog.vbs
Write {RUN_TEMP}\sap_update_addon_prog_run.ps1:
$content = [System.IO.File]::ReadAllText('<SKILL_DIR>\references\sap_update_addon_prog.vbs', [System.Text.Encoding]::UTF8)
$content = $content.Replace('%%TABLE_NAME%%', 'THE_TABLE_NAME')
$content = $content.Replace('%%DATA_FILE%%', 'THE_DATA_FILE')
$content = $content.Replace('%%TEMP_DIR%%', '{RUN_TEMP}')
# ZCMRUPDATE_ADDON_TABLE's only write path is MODIFY (upsert). The VBS
# refuses OPERATION=DELETE upfront with
# "ERROR: PROG method supports upsert (MODIFY) only" (exit 1).
$content = $content.Replace('%%OPERATION%%', 'THE_OPERATION')
# 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_update_addon_prog_run.vbs', $content, [System.Text.UnicodeEncoding]::new($false, $true))
Write-Host ("Done (session_path='" + $sessionPath + "')")
The PROG method does SAP-GUI-side file IO — the ABAP program's GUI_UPLOAD
reads the data file, and the save-list step writes sap_update_addon_output.txt.
Both can raise the modal SAP GUI Security dialog, which suspends the Scripting
API and hangs cscript unless {work_dir} is already trusted (so a plain
cscript run with no guard hangs — verified 2026-06-17 on SID ER1, where the
save-list dialog blocked the run). Launch the OS-level watcher
sap_gui_security_sidecar.ps1 in parallel; it dismisses each dialog (clicks
Allow + ticks Remember, persisting the rule so later runs are clean). The timeout
is generous because on slower systems (e.g. classic ECC 6.0) the save-list dialog
can appear well after the upload.
$shared = '<SAP_DEV_CORE_SHARED_DIR>\scripts'
# Declare which SAP system the GUI leg may write to; MUST be in the same block as
# cscript (the attach lib reads it from the process environment).
. "$shared\sap_connection_lib.ps1"
Set-SapGuiTargetExpectation -WorkTemp '{WORK_TEMP}' | Out-Null
$watcher = Start-Process powershell -PassThru -WindowStyle Hidden `
-RedirectStandardOutput "{RUN_TEMP}\sap_update_addon_sidecar.out" `
-ArgumentList @('-NoProfile','-ExecutionPolicy','Bypass','-File',
"$shared\sap_gui_security_sidecar.ps1",'-TimeoutSeconds','90')
Start-Sleep -Milliseconds 800
# cscript returns only after the program run + save-list complete (all dialogs handled).
& 'C:\Windows\SysWOW64\cscript.exe' //NoLogo "{RUN_TEMP}\sap_update_addon_prog_run.vbs"
if (-not $watcher.HasExited) { Stop-Process -Id $watcher.Id -Force -ErrorAction SilentlyContinue }
Get-Content "{RUN_TEMP}\sap_update_addon_sidecar.out" -Tail 1 # DISMISSED:WIN32 / TIMEOUT
The VBS gates its own verdict (SUCCESS only when every gate passes):
MessageType E/A after F8, or still on selection screen 1000
(= the program never ran) → ERROR: ... + exit 1.{RUN_TEMP}\sap_update_addon_output.txt and
parses the program's result-count block locale-independently: the line
directly above the final all-= separator holds exactly two integers
(success, error). The program's WRITE labels are Japanese and can render as
# under a non-matching logon codepage — the digits and the ==== lines
always survive, so the parse never depends on words. Echoes
RESULT_COUNTS: success=<n> error=<m>.error > 0, success = 0, or a saved list WITHOUT the count block
(= the program aborted early, e.g. column-count mismatch — first list lines
are echoed as LIST: ...) → ERROR: ... + exit 1.SUCCESS_UNVERIFIED: ... (exit 0): the sbar gate passed but the counts are
unread — treat as unconfirmed and verify via /sap-se16n.SUCCESS: ZCMRUPDATE_ADDON_TABLE upserted <n> row(s) into <TABLE>. prints
only when the parsed error count is 0.The saved list holds the per-row messages. The authoritative result is the
target table content — confirm via /sap-se16n (or RFC where available).
Show the user:
Terminal script outcomes to relay verbatim:
| Line | Meaning | Exit |
|---|---|---|
SUCCESS: ... | All gates passed (SM30 sbar gate / SE16 all rows saved / PROG parsed error count = 0) | 0 |
SUCCESS_UNVERIFIED: ... (PROG only) | sbar gate passed but the result-count list could not be saved/read — verify via /sap-se16n before trusting | 0 |
ABORT_EMPTY_TR (SM30) | Transport popup appeared with no TR resolved — nothing saved | 1 |
ERROR: SM30_LAYOUT_UNSUPPORTED (table control) - use the SE16 or PROG method | Maintenance dialog is a table-control layout — nothing saved | 1 |
ERROR: <n> of <m> rows failed (rows: ...) (SE16) | Per-row failures (sbar E/A, or partial field match — those rows were not saved) | 1 |
ERROR: SM30_DELETE_UNSUPPORTED / ERROR: SE16_DELETE_UNSUPPORTED / ERROR: PROG method supports upsert (MODIFY) only | DELETE requested — refused before touching data | 1 |
any other ERROR: ... | Gate failure (sbar E/A, program never ran, count block missing, ...) | 1 |
cmd /c del {RUN_TEMP}\sap_update_addon_detect_run.ps1 {RUN_TEMP}\sap_update_addon_sm30_run.vbs {RUN_TEMP}\sap_update_addon_sm30_run.ps1 {RUN_TEMP}\sap_update_addon_se16_run.vbs {RUN_TEMP}\sap_update_addon_se16_run.ps1 {RUN_TEMP}\sap_update_addon_prog_run.vbs {RUN_TEMP}\sap_update_addon_prog_run.ps1 {RUN_TEMP}\sap_update_addon_output.txt {RUN_TEMP}\sap_update_addon_sidecar.out
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_update_addon_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_update_addon_run.json" -Status FAILED -ExitCode 1 -ErrorClass <CLASS> -ErrorMsg "<short>"
Suggested <CLASS>: UPDATE_ADDON_FAILED, RFC_LOGON_FAILED.
| Error | Cause | Fix |
|---|---|---|
RESULT_METHOD:NONE | No method available | Deploy ZCMRUPDATE_ADDON_TABLE first |
ERROR: N SAP connections attached; cannot pick one safely (detect) | Multiple SAP connections and no pinned session | Run /sap-login to pin, or pass -SessionPath |
ABORT_EMPTY_TR (SM30) | Save raised the transport popup (ctxtKO008-TRKORR) but no TR was resolved | Resolve a TR via /sap-transport-request, substitute it into %%TRANSPORT%%, re-run |
ERROR: SM30_LAYOUT_UNSUPPORTED (table control) | The generated maintenance dialog is a table-control (list) layout, not single-record | Use the SE16 or PROG method |
ERROR: SM30 single-record flow supports exactly 1 data row per run | Multi-row data file on the SM30 path | One run per row, or use the SE16 / PROG method |
ERROR: <n> of <m> rows failed (SE16) | Row saves rejected (sbar E/A) or entry-form fields missing (partial rows are never saved) | Check the listed row numbers; fix the data or re-record the entry-form field IDs |
ERROR: *_DELETE_UNSUPPORTED / PROG method supports upsert (MODIFY) only | DELETE requested — no script path implements it | Delete manually (or via SM30 maintenance dialog by hand) |
SUCCESS_UNVERIFIED (PROG) | sbar gate passed but the saved list with the result counts could not be read | Verify the table content via /sap-se16n before trusting the run |
SE16 Create Entries not found | MAINFLAG not set or editing blocked | Fall back to PROG method |
ZCMRUPDATE_ADDON_TABLE field mismatch | Data file header doesn't match table | Check field names match table definition |
ERROR: Could not open the SE16 Create-Entries form | Neither btn[5] (Create — verified ECC6 + S/4) nor btn[18] (legacy) nor the Edit menu reached the entry form on this release | Re-record the Create-Entries button for this release and add its ID to sap_update_addon_se16.vbs; or use the PROG / SM30 method |
ZCMRUPDATE_ADDON_TABLE deploys but won't activate / won't launch on ECC 6.0 | Stale modern-syntax source (pre-2026-06-17) | Redeploy the current classic-syntax ZCMRUPDATE_ADDON_TABLE.abap via /sap-se38 (or /sap-dev-init) |
| SE16/SM30 path: "must have header + data lines" on a valid file | Older VBS read the data file as UTF-16 | Fixed 2026-06-17 — both VBS now read UTF-8; ensure the data file is UTF-8, TAB-delimited |
README.md (opens in a new tab)references/ZCMRUPDATE_ADDON_TABLE.abap (opens in a new tab)references/sap_update_addon_detect.ps1 (opens in a new tab)references/sap_update_addon_prog.screens.json (opens in a new tab)references/sap_update_addon_prog.vbs (opens in a new tab)references/sap_update_addon_se16.screens.json (opens in a new tab)references/sap_update_addon_se16.vbs (opens in a new tab)references/sap_update_addon_sm30.screens.json (opens in a new tab)references/sap_update_addon_sm30.vbs (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.
Other plugins' skills for the same job