/sc4sap:create-objectfrom sc4sap
Guided ABAP object creation workflow that confirms transport and package assignment, auto-creates the object, generates initial code, and activates it.
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): blocked — reply with the stop line there and stop.
Guided ABAP object creation workflow. Hybrid mode: confirms transport and package interactively, then auto-creates, writes initial code, and activates the object.
sc4sap:create-object handles the full lifecycle of creating a new ABAP object: determining the right object type, confirming package and transport assignment, creating the object via MCP, generating a well-structured initial implementation, and activating it — all in one workflow.<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>
<Phase_Banner>
Multi-phase skill. Before each Agent(...) dispatch, emit ▶ phase=<id> (<label>) · agent=<name> · model=<Opus|Sonnet|Haiku> per ../../common/model-routing-rule.md § Phase Banner Convention. Resolve the dispatch mode first per ../../common/model-dispatch-mode.md: auto (default) uses the model below/in the rule; user-defined asks the user Opus / Sonnet / Haiku (recommended one first) before each dispatch group.
</Phase_Banner>
<Use_When>
rap-stack.md
</Use_When><Do_Not_Use_When>
Update* tools (UpdateClass, UpdateProgram, UpdateInclude, etc.) in patch mode (../../common/patch-mode.md)/sc4sap:create-program for a full program with includes<Session_Trust_Bootstrap> MANDATORY — runs as Step 0 before any MCP call or user interaction.
Invoke /sc4sap:trust-session with parent_skill=sc4sap:create-object to pre-grant all MCP tool + file-op permissions for this session (eliminates per-tool "Allow this tool?" prompts during Create* + activation flow).
.sc4sap/session-trust.log already has a line within the last 24h, skip silently.Full spec: see ../trust-session/SKILL.md.
</Session_Trust_Bootstrap>
<Supported_Object_Types>
| Type | MCP Create Tool | Description |
|---|---|---|
| Class | CreateClass | ABAP OO class (local or global) |
| Interface | CreateInterface | ABAP OO interface |
| Program | CreateProgram | Executable program (report) |
| Function Module | CreateFunctionModule + CreateFunctionGroup | RFC-capable function module |
| Table | CreateTable | Transparent database table |
| Structure | CreateStructure | ABAP structure (type definition) |
| Table Type | CreateTableType | DDIC table type (row type, access mode, primary key) |
| Data Element | CreateDataElement | Domain-based data element |
| Domain | CreateDomain | Value domain with fixed values or ranges |
| CDS View / View Entity / Projection / Custom Entity / Table Function | CreateView + UpdateView | DDL source decides the kind; custom entity + query class, table function + AMDP class (CreateClass) — S/4 only |
| Metadata Extension | CreateMetadataExtension + UpdateMetadataExtension | DDLX (Fiori UI annotations) — S/4 only |
| Service Definition | CreateServiceDefinition | OData service definition — S/4 only |
| Service Binding | CreateServiceBinding (ValidateServiceBinding fails on 8xx: GET not supported) | OData V2 / V4 binding; publish is manual — S/4 only |
| Behavior Definition | CreateBehaviorDefinition + UpdateBehaviorDefinition | RAP managed / unmanaged / projection — S/4 only |
| Behavior Pool | CreateBehaviorImplementation + UpdateBehaviorImplementation | RAP behavior implementation class — S/4 only |
| CDS Unit Test | CreateClass + UpdateLocalTestClass (rap-stack.mjs single) | test class with CDS test doubles — S/4 only |
| RAP Stack | plan of the above | table → views → BDEF + pool → projection BDEF → DDLX → SRVD → SRVB (rap-stack.md) |
| Screen | CreateScreen | Dynpro screen (selection screen or dialog) |
| GUI Status | CreateGuiStatus | PF-Status (menu bar, toolbar, function keys) |
| </Supported_Object_Types> |
<RAP_Objects>
MANDATORY for any CDS / RAP type: read rap-stack.md. Gate first (§ 1): on ECC every CDS / RAP object is refused with the gate message and no MCP call; on S/4 each type has a minimum release. A RAP stack is built from scripts/create-object/rap-stack.mjs plan (names, sources, order) and run step by step by sap-executor; publish, binding category and access control (DCLS) are manual (no MCP tool).
</RAP_Objects>
<ECC_DDIC_Fallback>
MANDATORY on ECC: read ../../common/ecc-ddic-fallback.md before creating any Table / Structure / Data Element / Domain. Path 1 (default): the normal MCP tools with the ECC call shapes (CreateTable / CreateStructure with fields, CreateDataElement with a domain) — created, transported and activated through the ZMCP_ADT_DDIC_* FMs. Path 2 (fallback, only on the listed errors): helper report in $TMP from the templates under ecc/, run by the user in SE38.
</ECC_DDIC_Fallback>
<Field_Typing_Rule>
MANDATORY for every Table / Structure / Table Type field-type decision (standard MCP flow and ECC helper-program fallback): read ../../common/field-typing-rule.md.
Priority: Standard DE (1) → existing CBO DE (2) → new CBO DE (3) → Data Type + Length (4, last resort). Raw primitives like LIFNR CHAR 10 / MATNR CHAR 40 / BUKRS CHAR 4 are forbidden when an authoritative SAP data element exists. Before each field, run SearchObject against DTEL and check .sc4sap/cbo/<MODULE>/<PACKAGE>/inventory.json.
</Field_Typing_Rule>
<Function_Module_Rule>
MANDATORY for every UpdateFunctionModule source emission: read ../../common/function-module-rule.md.
FM signature is stored inline in the FUNCTION statement source (SAP parses it on write and updates TFDIR/FUPARAREF automatically). There is no separate "parameters" endpoint. Every FM source MUST declare IMPORTING / EXPORTING / CHANGING / TABLES / EXCEPTIONS clauses directly between FUNCTION {name} and the first .. Never emit the placeholder " You can use the template 'functionModuleParameter' ... line, never use *"*"Local Interface: blocks as a substitute, never declare shadow locals like lv_iv_xxx TYPE ... to stand in for missing parameters.
Remote-Enabled (RFC) flag is a separate concern — stored in TFDIR.FMODE, not in source. Currently requires manual SE37 Properties update; flag this in the completion report. </Function_Module_Rule>
<Hybrid_Mode> Confirm (interactive):
GetPackage if unsure)ListTransports, or create new)Auto-execute (after confirmation):
GetInactiveObjects
</Hybrid_Mode><Workflow_Steps>
MANDATORY: Follow the step sequence defined in workflow-steps.md.
Per-step model allocation (the main thread follows the session model — model: inherit; creation delegates to sap-executor; the report is rendered on main):
| Step | Owner | Model | Role |
|---|---|---|---|
| 0 Trust | skill-to-skill | Sonnet | permission bootstrap |
| 1 Classify | main | Sonnet | keyword → object type |
| 2 Metadata | main | Sonnet | name / package / transport / description (Q&A + SearchObject + ListTransports + naming validation) |
| 3 Pre-Creation Check | main | Sonnet | SearchObject (name-exists guard) |
| 3.5 Version Branch | main | Sonnet | SAP_VERSION ECC vs S/4 routing |
| 4 + 5 + 6 Create + Implement + Activate (standard flow) | sap-executor with model: "opus" override | Opus | One dispatch covers: CreateClass/CreateProgram/... → UpdateClass/UpdateProgram/... with initial implementation code → ActivateObjects → GetInactiveObjects verify. The Opus override is justified because Step 5 is novel code generation (common/model-routing-rule.md § Tier 1 (Opus)) — field typing priority 1–4, class constructor + method signatures, FM inline parameter declarations, etc. |
| 4-ECC DDIC Helper Program (ECC fallback) | sap-executor with model: "opus" override | Opus | Only after Step 4 returned ecc-fallback-needed (no OData backend, ZMCP_ADT_DDIC_* not installed, or old MCP). Executor picks the matching template from skills/create-object/ecc/, substitutes names, fills the field list per common/field-typing-rule.md, and CreateProgram + UpdateProgram + ActivateObjects the helper into $TMP. |
| 7 Completion Report | main | Sonnet | Pure formatting from the executor's structured return — no agent dispatch. Localizes to the user's current conversation language. Render rules: dispatch-prompts.md § Step 7. For ECC fallback, use the mandatory report format there verbatim (do NOT rephrase the ⚠ header + 3-step SE38/SE11 checklist). |
At Step 2 (metadata collection) — when the object belongs to a specific SAP module (MM table, SD structure, PS data element, …) — the main thread reads SAP_ACTIVE_MODULES from sap.env / config.json and consults ../../common/active-modules.md. If companion modules are active, proactively suggest integration fields (e.g., creating an MM CBO table in a landscape with PS active → suggest adding PS_POSID / AUFNR). Do NOT add silently — propose to user and let them accept/decline, then pass the confirmed field list through to the executor dispatch.
</Workflow_Steps>
<Naming_Convention_Enforcement>
MANDATORY: Always read configs/common/naming-conventions.md for the complete, authoritative ABAP naming conventions reference before creating any object.
The reference file covers:
Z{MODULE}_... patternQuick validation checklist (applied before every create):
Z or Y (customer namespace)[A-Z0-9_]ZCL_ for classes, ZIF_ for interfaces)If the user-provided name violates any rule, suggest a compliant alternative based on configs/common/naming-conventions.md before proceeding.
</Naming_Convention_Enforcement>
<MCP_Tools_Used>
SearchObject — check for existing objectsListTransports — list available transportsGetPackage — verify package existenceCreateClass / CreateInterface / CreateProgram / CreateFunctionGroup / CreateFunctionModule / CreateTable / CreateStructure / CreateDataElement / CreateDomain / CreateView / CreateServiceDefinition / CreateServiceBinding / CreateBehaviorDefinition / CreateScreen / CreateGuiStatusUpdateView / UpdateTable (DDL) / UpdateBehaviorDefinition / CreateBehaviorImplementation + UpdateBehaviorImplementation / CreateMetadataExtension + UpdateMetadataExtension / CreateServiceDefinition + UpdateServiceDefinition / UpdateLocalTestClass / ActivateObjects (in the order of the plan — rap-stack.md)UpdateClass / UpdateProgram / UpdateScreen / UpdateGuiStatus / etc. — write initial implementationGetInactiveObjects — verify activationCreateTable / CreateStructure / CreateDataElement / CreateDomain first (ECC shapes per common/ecc-ddic-fallback.md); the helper-report fallback (CreateProgram + UpdateProgram in $TMP) only after a Path 2 error.
</MCP_Tools_Used>Task: $ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
inheritThree short reads, in order
npx claudepluginhub babamba2/superclaude-for-sap --plugin sc4sap31 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).Other plugins' skills for the same job