# sap-abap

A skill that guides an agent through ABAP code: internal tables, ABAP SQL, RAP, CDS, EML, unit tests. Useful when the project runs on SAP and the syntax has to match a specific release.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1300 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/skills/sap-abap/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/sap-abap

## What it does

The skill covers how ABAP is written: data declarations, constructor operators such as VALUE, NEW and CONV, table expressions, string templates, exception handling, dynamic programming, RTTI/RTTC, field symbols and data references. Modern ABAP for Cloud Development gets its own treatment — RAP, CDS views, EML statements.

A compatibility table maps features to releases, from 7.40 SP08 up to ABAP Cloud. Anything that needs a newer release carries an inline marker like `" [7.xx+]` in the examples. On a 7.40 system you swap `FINAL(...)` for `DATA(...)` and skip the 7.50+ features. Most of the modern syntax — VALUE, NEW, CONV, inline declarations, table expressions, REDUCE, FILTER, `GROUP BY` — works from 7.40 SP08 onward.

There is also an error catalog, performance notes and a list of source documentation. Related skills sit alongside it: `sap-abap-cds`, `sap-btp-cloud-platform`, `sap-cap-capire`, `sap-fiori-tools`, `sap-api-style`. If several of them are installed, watch that the agent does not blend advice meant for different layers.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-abap -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/skills/sap-abap/SKILL.md

## When to use it
- write ABAP that matches the release of the target system
- move classic ABAP toward ABAP Cloud patterns
- build an ABAP SQL query with joins and aggregates
- work through internal tables and field symbols
- add ABAP unit tests to existing code

## Example prompts
- Declare an internal table with a key and fill it using VALUE
- Rewrite this SELECT as ABAP SQL with host variables and check it works on 7.40 SP08
- Show me how to do this with RAP and a CDS view

## Similar
- [migrate-to-shoehorn](https://affpapa.org/en/nevibecode/skills/migrate-to-shoehorn.md) — skill · 475388 installs
- [write-swift](https://affpapa.org/en/nevibecode/skills/write-swift.md) — skill · 119300 installs
- [megacave](https://affpapa.org/en/nevibecode/skills/megacave.md) — skill · 25400 installs
- [find-docs](https://affpapa.org/en/nevibecode/skills/find-docs.md) — skill · 9400 installs
- [typescript-advanced-types](https://affpapa.org/en/nevibecode/skills/typescript-advanced-types.md) — skill · 92169 installs
- [smart-explore](https://affpapa.org/en/nevibecode/skills/smart-explore.md) — skill · 7300 installs

From the same set: [secondsky/sap-skills](https://affpapa.org/en/nevibecode/by/secondsky/sap-skills.md) — 24 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
