# sap-abap-cds

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 939 installs · ★ 475
- Author: secondsky
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-abap-cds/skills/sap-abap-cds/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/sap-abap-cds

## What it 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`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-abap-cds -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/sap-abap-cds/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/sap-abap-cds/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-abap-cds -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/sap-abap-cds/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-abap-cds -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/sap-abap-cds/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install secondsky/sap-skills sap-abap-cds
```

2. **Manually: put the files in place**
- File: `.github/skills/sap-abap-cds/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-abap-cds -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-abap-cds/skills/sap-abap-cds
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/sap-abap-cds/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-abap-cds -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-abap-cds/skills/sap-abap-cds/SKILL.md

## When to use it
- 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
- 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

## Similar
- [sap-fiori-add-visual-filter](https://affpapa.org/en/nevibecode/skills/sap-fiori-tools-sap-fiori-add-visual-filter.md) — skill · 601 installs
- [sap-fiori-app-development](https://affpapa.org/en/nevibecode/skills/sap-fiori-app-development.md) — skill · 595 installs
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

From the same set: [secondsky/sap-skills](https://affpapa.org/en/nevibecode/by/secondsky/sap-skills.md) — 40 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
