sap-abap-cds — Claude Code skill: what it does, how to install
Provides reference data and syntax patterns for SAP ABAP Core Data Services from 7.40 SP8 up to ABAP Cloud. Useful when drafting CDS view entities, associations, and DCL roles.
npx skills add secondsky/sap-skills --skill sap-abap-cds -a claude-codeWhat sap-abap-cds does
This skill equips the assistant with syntax definitions and structure rules for SAP Core Data Services in Eclipse ADT. It includes patterns for both legacy DEFINE VIEW statements and modern DEFINE VIEW ENTITY definitions. The agent references required annotations such as @AccessControl.authorizationCheck and handles currency or quantity mappings to avoid SD_CDS_ENTITY105 compiler failures.
Beyond basic data definitions, the material covers row-level security using Data Control Language (DEFINE ROLE) with pfcg_auth checks. It details path expressions across associations, input parameters via WITH PARAMETERS, and session variables like $session.client or $session.user.
Release targets matter here. Systems on 7.40 lack table functions entirely, and trying to create view entities on releases older than 7.55 will trigger a syntax failure. For older environments, stick to classic CDS views with a valid @AbapCatalog.sqlViewName.
What it helps with
- define CDS view entities without generating separate database SQL views
- configure currency and quantity semantics to prevent SD_CDS_ENTITY105 errors
- implement access control logic using DCL and pfcg_auth checks
- model associations with explicit cardinality rules
- pass input parameters to CDS views using WITH PARAMETERS
Example prompts for the agent
- Create a CDS view entity for table zorders with customer filtering and currency semantics
- Write a DCL access control role for ZI_Invoice using pfcg_auth
- Help fix the SD_CDS_ENTITY105 error on my currency amount field
How to install sap-abap-cds
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-abap-cds -a claude-code2Manually: put the files in place
~/.claude/skills/sap-abap-cds/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/sap-abap-cds/
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-abap-cds -a codex2Manually: put the files in place
.agents/skills/sap-abap-cds/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-abap-cds -a cursor2Manually: put the files in place
.cursor/skills/sap-abap-cds/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install secondsky/sap-skills sap-abap-cds2Manually: put the files in place
.github/skills/sap-abap-cds/SKILL.md1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-abap-cds -a gemini-cli2Platform CLI
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-abap-cds/skills/sap-abap-cdsManually: put the files in place
.devin/skills/sap-abap-cds/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-abap-cds -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about sap-abap-cds
How to install sap-abap-cds in Claude Code?
Run npx skills add secondsky/sap-skills --skill sap-abap-cds -a claude-code in your terminal. The configuration is placed in ~/.claude/skills/sap-abap-cds/SKILL.md.
What does the sap-abap-cds skill do?
It provides syntax rules and modeling examples for SAP ABAP Core Data Services, covering view creation, semantic annotations, parameters, and access controls.
When should I use DEFINE VIEW ENTITY instead of DEFINE VIEW?
Use DEFINE VIEW ENTITY on ABAP release 7.55 or newer. It skips creating an underlying DDIC SQL view and drops the @AbapCatalog.sqlViewName requirement.