/sc4sap:cbo-relation-mapfrom sc4sap
Generates an interactive HTML relation map of SAP CBO (customer) objects from a graph.json — DDIC types, tables, programs, transactions, and their connections. Useful for impact analysis, AMS takeovers, and understanding object dependencies before changes.
Ships in sc4sap. 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.
Offline profile (
common/offline-mode.md): full — only from an existinggraph.json; collection is blocked.
One HTML page per package (or set of packages) that shows how the customer objects hang together: which tables use which data elements and domains, which tables check against which, which programs and function modules read or write which tables, which transactions start what — and what is affected when one of them changes. Drawn from the graph.json of /sc4sap:stock-cbo; the page itself needs no SAP call.
<Response_Prefix>Every response triggered by this skill MUST begin with [Model: <main-model> · Dispatched: <sub-summary>] per ../../common/model-routing-rule.md § Response Prefix Convention.</Response_Prefix>
<Use_When>
/sc4sap:stock-cbo on a package, or to compare / combine several packages
</Use_When><Do_Not_Use_When>
/sc4sap:stock-cbo/sc4sap:module-to-process/sc4sap:program-to-spec; code quality → /sc4sap:analyze-code
</Do_Not_Use_When><Decisions_Fixed> Settled with the user (2026-11-06) — do not ask again:
| Topic | Decision |
|---|---|
| Input | The graph.json of /sc4sap:stock-cbo (Step G), plus its side files when present: walk.json / inventory.json (descriptions), usage-result.json (used / unused), ddic-reads.json (standard check tables, object short texts), ddic-texts.json (short texts of a text refresh), fields.json (field-level CRUD, written by build-package-graph when DD03L was read). Missing graph → collect it per collect.md; a graph without short texts → text refresh, collect.md § C |
| Descriptions | The SAP short text (SE11 / SE38 / SE93 / SE37 / SE80 description; English first, else the logon language) wins over the inventory text. Placeholders (-, No DDIC description available) are dropped; a TCode whose text only names its program takes that program's description. Every related object in the side panel shows its description |
| Collection | Scope whole package or used TCodes only (productive ST03N). Standard = full /sc4sap:stock-cbo; eco = map-only collection (Haiku walk + Step G, no scouts, no finalize) |
| Objects | Customer objects only: in-package members and Z / Y / namespace objects outside the package. Standard and dynamic targets and their relations are never drawn; standard includes inside a Z function group (LSVIM*, …) neither. Standard check tables appear only as text in the side panel |
| Includes | Folded into their program / function group by default (relations move to the owner, evidence keeps the include and line); --includes keep draws them |
| Hubs | Ranked by business relations (everything except field typing); typing hubs are a separate list |
| First screen | Overview → click or search → neighbourhood view (presets Business / All DDIC / Code only / All, depth 1–3, direction, node cap) with side panel; impact; paths (any direction / along the arrows, up to 3 alternatives); Tours tab; Groups tab (Louvain, auto-named); Table CRUD tab; Fields tab |
| Tours | scripts/relmap/relmap-tour.mjs, from the graph only (no model call): one tour per program an entry TCode runs (TCodes on the same program merged), root reports when fewer than 3; steps entry → program → calls per depth (1–3) → tables changed (C / U / D) → tables only read → other TCodes changing the same tables; used-directly first, up to 200. UX after Understand-Anything's tour panel (MIT) |
| Process areas | scripts/relmap/relmap-domain.mjs: the /sc4sap:module-to-process model found next to the inventory (<AB>/processes/<MODULE>/_state/process-model.json; --process <file> names one, --process none skips it) — L2 = area, L3 = lane, L4 = step, TCodes / objects matched by name, tables changed and read over code relations (2 levels); hand-off between areas = a table one area changes and another reads. No model → Louvain groups as areas |
| Basis | Every relation is stated in DDIC, stated in source or inferred (dashed) |
| Several packages | One merged page; colour by type or by package; the same package's whole-package graph and used-TCode graph merge into one |
| Output | One self-contained HTML page per language — no library, no network, light / dark theme. Korean page plus English companion. Rebuilt on every run, no versions. Never published: it holds the customer's object names |
| </Decisions_Fixed> |
Step 1 — Find the graphs (offline, one call; --base repeats — the profile's <AB>/cbo, plus any knowledge-base or run folder named):
node "<PLUGIN_ROOT>/scripts/relmap/build-relation-map.mjs" find --base "<AB>/cbo" [--base "<dir2>" …] --packages "<list>"
It prints { ok, graphs[{ package, packages, module, scope, dir, builtAt, parsed, kinds, hasFields, moduleWide, notes }], missing, ambiguous, dirs }. dirs is the --dir list for Step 3 (per package its whole-package graph and its used-TCode graph; a module-wide used graph only for a package with no graph of its own).
missing → Scope Use existing graph: stop and name the packages (offer the Collect scopes); a Collect scope → collect.md, then run find again.ambiguous (same package under two modules, or two equal folders) → ask which dir; a hosted run stops and names them.collect.md.Step 2 — Notes. Relay each graph's notes in one line (notes, not stops): DDIC relations only; no fields.json with ddic-reads.json present → rerun G5 of ../stock-cbo/graph-usage.md first (seconds, no SAP call) so the Fields tab has data; typing only → the inventory predates the DDIC relation reads (G3); older than 30 days → may be out of date, offer collect.md. Never read graph.json into context.
Step 3 — Build (one Bash call per language — only the named one when a language is given; all folders in one call; --snippets when any graph has parsed > 0, unless Source lines: No):
node "<PLUGIN_ROOT>/scripts/relmap/build-relation-map.mjs" --dir "<dir1>" [--dir "<dir2>" …] --lang ko --snippets
node "<PLUGIN_ROOT>/scripts/relmap/build-relation-map.mjs" --dir "<dir1>" [--dir "<dir2>" …] --lang en --snippets
Use --dir once per entry of dirs. Add --sid <SID> (the profile's system) and, in a hosted run, --src <dir> per source folder, --max-bytes <n>, --out <file> and --process <file | none> as given. Each prints { page, bytes, nodes, edges, members, custom, groups, isolated, droppedEdges, foldedIncludes, byBasis, usage, stdChecks, snippets, sourcesParsed, packages, fields, tours, domains[, reason] }; domains.kind = process (with steps / matched) or groups — report it in one line, and with groups say that a /sc4sap:module-to-process run gives the L2 → L3 → L4 view. Exit 2 = graph missing or no customer object → show the stderr line and stop. reason: "size" → the page was rebuilt without source snippets to fit --max-bytes; say so. Exit 3 = still over --max-bytes without snippets, nothing written → stop and suggest fewer packages. Without --max-bytes: bytes over 15 MB → rebuild without --snippets and say so. Do not open the HTML into context.
Step 4 — Report in the Output_Format. Offer to open the page in the browser.
<Output_Format>
Relation map <PACKAGES> · <SID> · <ECC|S4>
Objects <nodes> (in package <members> · Z/Y outside <custom>) · relations <edges> · groups <groups> · unconnected <isolated> · tours <tours>
Process areas: <domains.domains> from <process map | groups> (L4 tasks on the map <matched>/<steps>) · hand-offs <handOffs>
Basis: DDIC <n> · source <n> · inferred <n> — standard / dynamic relations left out <droppedEdges> · includes folded <foldedIncludes>
Usage: used <direct>+<indirect> · unused <unused> · no evidence <n> (only when usage exists)
<notes from Step 2, if any>
Page: <path>-ko.html (+ -en.html) · <MB> MB · source snippets <n>
</Output_Format>
<Page_Guide> What to tell a user who asks how to read the page:
#tour=TRAN:<TCODE>&s=<n>). A TCode that has a tour shows Start tour in its card and panel.#dom=<L2>&st=<L4>.#n=TYPE:NAME&to=TYPE:NAME for sharing.UPDATE SET f changes that field, writes from a work area count as "whole row"; source line and snippet per reference; for writers the TCodes and jobs that reach them; "never read" / "never written" flags; CSV per table. Search TABLE-FIELD jumps straight to a field. Needs fields.json (a graph built before it → rebuild with G5, seconds, no SAP call; appends need G6).<MCP_Tools_Used>
None for the page. Collection (collect.md) uses the tools of /sc4sap:stock-cbo Step G and /sc4sap:module-to-process Step 2 (read-only).
</MCP_Tools_Used>
<Related_Skills>
/sc4sap:stock-cbo — builds the whole-package graph.json and inventory/sc4sap:module-to-process — the used-TCode graph laid onto business processes/sc4sap:program-to-spec — one program in depth
</Related_Skills>Task: $ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
inheritThree short reads, in order
sap, cbo, relation-map, impact-analysis, dependency-graph, ddic
31 skills in this plugin
/adobe-from-pdfBuild an Adobe form (SFP — interface, context and XDP layout) from a PDF of the printed form, the way smartform-from-pdf builds a SmartForm, upload it to the DEV system, print it there and score the print against the source page. Awaiting approval — not runnable yet./adobe-previewDraw the expected print of an Adobe form (SFP, S/4HANA) as HTML pages in mm (plus JPG / PDF with a local browser) — the XFA layout with its master pages, flowed tables with repeated headers, page breaks, captions, pictures (dates, numbers, currency shifts), rich text with embedded fields, rounded boxes and images — filled with invented sample values sized to the interface's DDIC types. On a development system it can print SAP's example forms through ADS and score the preview against SAP's own PDF./analyze-codeABAP code analysis — size-gated review (one Opus sap-code-reviewer, or Haiku sap-checker detectors + Opus judge for large objects), Haiku evidence check on every finding, then a canned report or a richer briefing on the main thread/analyze-symptomRead-only, step-by-step root cause analysis for SAP operational errors. Reads the dump summary and failing source via MCP (known-issue web lookup only when the failure is in standard SAP code), widens to transports and where-used only when the clues call for it, narrows hypotheses with minimal user questions, and provides SAP Note search keywords. Never changes code or data./ask-consultantDirect operational Q&A with a SAP module consultant agent. Auto-routes the question to the matching sap-{module}-consultant and answers against the configured SAP environment (version, industry, country, active modules)./assistBusiness assistant for the connected SAP system — looks up and changes specific documents through the installed business actions (query → preview → user confirm → execute), one confirmed step at a time. Use for requests about concrete SAP data such as open purchase orders, goods receipt, delivery complete, PO release, production order release / confirmation / TECO, sales order create or change, delivery / billing block, post goods issue, billing, FI document display or reversal, payment block, G/L posting, internal order status, cost center actuals, cost repost or activity allocation, document output status or reprint, shipments, picking, packing / handling units, shipment costs, warehouse transfer orders and requirements, bin and warehouse stock (ECC LE / WM), maintenance notifications and orders, equipment, functional locations and maintenance plans (ECC PM), EWM warehouse tasks, warehouse orders, bins, stock locations, handling units and delivery warehouse progress (S/4 EWM, lookups only). Korean requests too — 미결 PO, 입고, 완결, 납기 변경, 승인, 생산오더, 실적 등록, 기술적 완료, 판매오더, 출하 보류, 청구 보류, 출고 전기, 청구 생성, 전표 조회, 역분개, 지급보류, 분개 전기, 내부오더, 코스트센터 실적, 비용 재전기, 활동 배부, 출력 상태, 재출력, 운송/선적 생성, 피킹, 포장, HU, 운송비, 이전오더(TO) 생성/확정/취소, 이전요청(TR), 저장빈, 창고 재고, 재고실사, 보전오더, 보전통지, 고장 통지, 설비, 기능위치, 보전계획, 보전오더 기술적 완료, 미결 창고작업, 창고작업 조회, 창고오더, 빈 저장빈, 재고 위치, 납품 창고 진행, 검사로트, 사용결정, 검사결과 입력, 품질통지. Not for how / why / configuration questions (ask-consultant).npx claudepluginhub babamba2/superclaude-for-sap --plugin sc4sapOther plugins' skills for the same job