Logo: Rap Bo Design

Rap Bo Design

Communautéit
matt1as
rap-bo-design

Design a complete RAP business object end-to-end and create it via the official SAP ABAP MCP. Use when the user asks to design, scaffold, generate, or create a new RAP BO, OData service, Fiori UI service, or RAP managed/unmanaged behavior. Prefers the MCP x-ui-service / ui-service / webapi-service generators; falls back to hand-crafted CDS/BDEF skeletons when no generator fits. Applies the ABAP Cloud / RAP overlay rules in ../CLAUDE.md (loaded on invocation). Targets BTP ABAP Environment and S/4HANA on-prem in the ABAP Cloud development model.

Iwwersiicht

Editeurmatt1as
Repositoryclaude-abap-skills
Skill-Nummrap-bo-design
Stären
34
Forks
5
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    matt1as huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rap Bo Design an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/matt1as/claude-abap-skills/tree/main/abap-cloud-rap/rap-bo-design
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matt1as/claude-abap-skills.git /tmp/claude-abap-skills
mkdir -p .claude/skills
cp -r /tmp/claude-abap-skills/abap-cloud-rap/rap-bo-design .claude/skills/rap-bo-design
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rap Bo Design an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rap Bo Design automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rap Bo Design net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

abap-cloud-rap:rap-bo-design

Design a new RAP business object end-to-end and create it via the SAP ABAP MCP Server.

What this command does

You are designing a complete RAP business object from a short spec, then creating it in the connected ABAP system. The official ADT MCP Server (in SAPSE.adt-vscode) exposes three RAP generators that bootstrap a conformant stack in one call — that is the primary path. You then validate the generated stack against the rules in ../CLAUDE.md and refine it.

The "hand-crafted skeleton" path is a fallback for cases the generators do not fit.

Tool routing. Read the ## Tooling section in ../CLAUDE.md before the first tool call. This skill is write-heavy, so the official server owns nearly all of it:

StepPrimaryFallback
Generate a full RAP stack in one callabap-adt abap_generators-*none — no other server has the generators
Create individual objects, activate, transportsabap-adt abap_creation-*, abap_activate_objects, abap_transport-*arc-1 SAPWrite + SAPActivate when write scope is enabled (SAPManage action="create_package" for the package; syntax-check each artifact with SAPDiagnose action="syntax" before writing)
Confirm the target package exists / inspect itarc-1 SAPRead type=DEVCproceed and let creation fail loudly
Read back the generated source for the post-generation reviewarc-1 SAPRead (type=DDLS / BDEF / SRVD / CLAS)inspect the generation response only, and mark every review row not verified
Verify the generated stack activates cleanlyabap-adt abap_activate_objects resultarc-1 SAPDiagnose action="syntax"
Service binding / OData checkabap-adt abap_business_services-fetch_service_informationarc-1 SAPRead type=SRVB

The post-generation review below is only meaningful when you can read the generated source. Without arc-1 (or another read path), you are reviewing a response payload, not code — say so instead of ticking boxes.

Inputs to collect

Before doing anything, confirm or ask for each of the following. If anything is ambiguous, ask — do not silently pick a default. Bundle the questions in one short turn rather than multi-turn interrogation.

  1. Project name — short label that becomes the SAP Object Type / Service Definition / Service Binding name (max 24 chars). E.g. Flight, Travel, WorkOrder.
  2. Artifact prefix and suffix — used for the generated CDS / BDEF / table names. E.g. prefix Z → ZR_Flight, ZI_Flight, ZFlight table.
  3. Application type — readOnly, withDraft, or withoutDraft (transactional). withDraft is the default for editable BOs.
  4. Entities — for each entity:
    • Entity alias (e.g. Flight)
    • Composition parent (if a child entity) and cardinality (toOne / toMany)
    • Field list with:
      • field name
      • data type (uuid, char, numc, integer, decimal, date, timestamp, amount, currencyCode, quantity, unitOfMeasure, string, boolean)
      • whether it is a semantic key (the human-readable business identifier — required per semantic-key-alongside-technical-uuid)
      • length / decimals where relevant
      • linked currency / unit field for amounts and quantities
  5. Package — $TMP for trial / throwaway work, or a real Z* package. Real packages need a transport request.
  6. Target system — BTP ABAP Environment, or S/4HANA on-prem in ABAP Cloud development model. Released-API sets differ.

Procedure

Step 1 — pick the generation path

Decision tree, in order:

SituationPath
New BO, no existing persistent tablex-ui-service generator — creates persistent table, draft table, CDS interface, projection, BDEF, projection BDEF, behavior pool, access control, service definition, service binding, metadata extension
New BO, persistent table already existsui-service generator — reuses the table, generates the rest of the UI stack
New BO, Web API only (no Fiori UI)webapi-service generator — reuses table, generates Web API stack only
Pattern outside the generators (e.g. heterogeneous compositions, non-CDS sources, abstract entities)Hand-crafted fallback — see Step 5

Call mcp__abap-adt__abap_generators-list_generators once if you want to confirm the available IDs in this system.

Step 2 — fetch the schema and build the spec

Call mcp__abap-adt__abap_generators-get_schema for the chosen generator. The schema returns a referenceContent block with a sessionId — use that sessionId verbatim in the spec you submit. Then build the JSON spec:

  • metadata.package — the chosen package
  • serviceConfiguration.serviceNaming.projectName — the project name
  • serviceConfiguration.objectsNaming.prefix / .suffix — for generated artifact names
  • serviceConfiguration.applicationType — readOnly / withDraft / withoutDraft
  • businessEntities — one entry per entity, with entityName, compositionParent (if a child), compositionCardinality
  • businessEntitiesFields — one entry per entity, with the field list

Apply the rules in CLAUDE.md while building the spec:

  • semantic-key-alongside-technical-uuid — at least one field per entity must have isSemanticKey: true. The generator adds the technical UUID key automatically.
  • composition-for-children-association-for-references — declare child entities with compositionCardinality toOne or toMany; reference data goes via associations in the post-generation refinement, not as composition.
  • For amounts and quantities — link currencyCode / unitOfMeasure to the appropriate currency or UoM field on the same entity.

Step 3 — request a transport (if needed)

If the package is not $TMP, call mcp__abap-adt__abap_transport-get for the package (objectType DEVC/K, isCreation: true). Ask the user to pick an existing transport or create a new one — never auto-select.

Step 4 — generate, activate, verify

Precondition — MCP client timeout. Claude Code's default MCP tool timeout (~30 s) is shorter than a full x-ui-service run, which routinely takes 60–180 s for a multi-entity BO. The tool call will return "operation timed out" while the MCP server keeps generating in the background. Before running this step, ask the user to launch Claude Code with MCP_TIMEOUT=600000 (10 min). If they cannot restart, proceed anyway — the server will finish — and use the recovery path below to discover what was created.

  1. Call mcp__abap-adt__abap_generators-generate_objects with the spec from Step 2 and the transport from Step 3.
  2. Collect the URIs and names of the generated objects from the response. The response is the only authoritative source for actual names — see naming caveat below.
  3. Call mcp__abap-adt__abap_activate_objects with those URIs.
  4. Run the post-generation review below.

Naming caveat — names are not deterministic from the spec. The generator inserts auto-namespace fragments that are not present in the input spec. Observed pattern: with prefix: "Z" and projectName: "Flight", the consumption entity surfaced as ZC_01FLIGHT (note the _01), the service binding as ZUI_FLIGHT_O4. Do not predict names from the spec — use the response. If the response was lost (e.g. client-side timeout), recover in this order: (1) arc-1 SAPRead type=DEVC on the target package — it lists everything the generator actually created, with real names and URIs; (2) arc-1 SAPSearch for the naming pattern; (3) mcp__abap-adt__abap_business_services-fetch_services with the most likely service binding name (Z<prefix>UI_<PROJECTNAME>_O4 for V4 UI services), where a successful response confirms generation succeeded and surfaces the entity-set names.

Step 5 — fallback (hand-crafted skeletons)

Only when no generator fits. Emit:

  • Interface entity (ZI_<Entity>) — define view entity, every annotation per interface-entity-required-annotations
  • Projection entity (ZR_<Entity>) — provider contract transactional_query, redirected compositions only, no business logic
  • Consumption entity (ZC_<Entity>) — UI annotations live here
  • BDEF — managed implementation in class zbp_<root> unique; strict ( 2 ); with draft; if drafts
  • Behavior pool class — one per entity, FINAL, PRIVATE-constructor, local handler classes for validations / determinations / actions

Each is then created via mcp__abap-adt__abap_creation-create_object after abap_creation-run_validation. If the official server is unavailable and arc-1 SAPWrite is enabled, write them there instead — writing the stack in dependency order, then SAPActivate, then confirm SAPRead type=INACTIVE_OBJECTS is clear. Do not treat a per-artifact syntax check as a gate here: writing a RAP stack means intermediate states that legitimately do not compile (a BDEF before its behavior pool, a projection before its interface view), which is exactly why arc-1's server-side pre-write check is advisory. Activation is the gate. A hand-crafted stack left half-activated is worse than no stack.

Post-generation review

Apply the rules from CLAUDE.md to whatever the generator produced. The generator emits a conformant skeleton, but the rules are stricter than the defaults.

Read the generated source first — arc-1 SAPRead on the BDEF, the interface and projection DDLS, and the behavior pool class. Every check below is a claim about source you have actually seen. If you could not read it, mark the row not verified rather than ✓.

Check, in order:

  1. BDEF strict ( 2 ); — required for new behaviors. Add if missing.
  2. @AccessControl.authorizationCheck: #CHECK on every interface entity. Add if missing.
  3. Semantic key fields — confirm the right fields are marked as semantic keys; technical UUID is not the semantic key.
  4. Composition vs association — confirm compositions are used for parent-owned children only; references to other BOs (e.g. Customer, Product) should be associations to released CDS view entities, not compositions or direct table joins.
  5. No business logic in the projection layer — projections should be pure structural mapping per projection-views-contain-no-business-logic.
  6. Determinations / validations / side effects separation — the generator does not add these; you do, per separate-determinations-validations-and-side-effects.
  7. Test class missing — the generator does not create ABAP Unit tests. Add a local test class per behavior implementation, using cl_cds_test_environment, per every-behavior-class-has-abap-unit-with-cds-test-doubles.

Flag every gap in the output report. Do not silently fix issues that change semantics.

Output format

# RAP Business Object Design — <Project>

## Decision summary
- Generator: x-ui-service | ui-service | webapi-service | hand-crafted
- Application type: readOnly | withDraft | withoutDraft — <one sentence why>
- Target system: BTP | S/4HANA on-prem
- Package: <name> — <transport: TR / $TMP>

## Generated spec
` ` `json
<full JSON spec submitted to abap_generators-generate_objects, including sessionId>
` ` `

## Generated objects
| Type                          | Name                        | URI                              |
|-------------------------------|-----------------------------|----------------------------------|
| Persistent table              | <name>                      | <uri>                            |
| Draft table                   | <name>                      | <uri>                            |
| CDS interface view            | ZI_<Entity>                 | <uri>                            |
| CDS projection view           | ZR_<Entity>                 | <uri>                            |
| Metadata extension            | ZR_<Entity>                 | <uri>                            |
| BDEF                          | ZI_<Entity>                 | <uri>                            |
| Projection BDEF               | ZR_<Entity>                 | <uri>                            |
| Behavior pool class           | zbp_<entity>                | <uri>                            |
| Service definition            | <name>                      | <uri>                            |
| Service binding               | <name>                      | <uri>                            |
| Access control                | <name>                      | <uri>                            |
| Node type / object type       | <name>                      | <uri>                            |

## Activation
<activation result, error count, any failures>

## Post-generation review
| Check                                                                   | Status | Note                        |
|-------------------------------------------------------------------------|--------|-----------------------------|
| BDEF has `strict ( 2 );`                                                | ✓ / ✗  | <if ✗: fix proposed>        |
| Every interface entity has `@AccessControl.authorizationCheck: #CHECK`  | ✓ / ✗  |                             |
| Semantic key fields correctly marked                                    | ✓ / ✗  |                             |
| Composition only for parent-owned children                              | ✓ / ✗  |                             |
| Projection layer has no business logic                                  | ✓ / ✗  |                             |
| Determinations / validations / side effects in place (or noted as TODO) | ✓ / ✗  |                             |
| ABAP Unit test class with CDS test doubles present                      | ✗      | always TODO — generator does not create |

## Next steps
1. Address any ✗ from post-generation review.
2. Add ABAP Unit tests in the behavior pool include (always required, never generated).
3. Preview the service binding to confirm the UI renders.

Hard rules for this command

  • Use the generator when one fits. A hand-crafted skeleton is the fallback, not the default.
  • Always include sessionId from the schema response in the generation spec — verbatim.
  • Set MCP_TIMEOUT=600000 (10 min) before launching Claude Code when generation is on the plan. A 30 s client timeout against a 2 min server operation looks like a failure but is not.
  • Names come from the generation response, not the spec. The generator adds suffixes (_01) and infixes (UI) that are not in the input. If the response is missing, recover via fetch_services with the conventional binding name pattern, never invent names downstream.
  • Apply every rule from this plugin's CLAUDE.md in the post-generation review.
  • Always emit a semantic key field for every entity, regardless of whether the spec explicitly mentioned it.
  • Always include strict ( 2 ); in the BDEF — add it post-generation if missing.
  • Never propose unmanaged for a new BO on new tables. The generators do not even offer it.
  • Ask before requesting a transport. Never auto-select an existing TR; never auto-create one.
  • Call out BTP vs S/4HANA on-prem differences wherever they affect the design (released APIs, annotations).
  • Tests are always TODO. The generator never emits them; the post-generation review always flags this.

Heefeg gestallte Froen

Wat mécht de KI-Skill Rap Bo Design?

Design a complete RAP business object end-to-end and create it via the official SAP ABAP MCP. Use when the user asks to design, scaffold, generate, or create a new RAP BO, OData service, Fiori UI service, or RAP managed/unmanaged behavior. Prefers the MCP x-ui-service / ui-service / webapi-service generators; falls back to hand-crafted CDS/BDEF skeletons when no generator fits. Applies the ABAP Cloud / RAP overlay rules in ../CLAUDE.md (loaded on invocation). Targets BTP ABAP Environment and S/4HANA on-prem in the ABAP Cloud development model.

Firwat Rap Bo Design op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rap Bo Design besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rap Bo Design an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/matt1as/claude-abap-skills/tree/main/abap-cloud-rap/rap-bo-design an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rap Bo Design benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rap Bo Design benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rap Bo Design domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rap Bo Design gratis?

Jo. matt1as huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇