# sap-sqlscript

A skill with SQLScript patterns for HANA procedures, functions, and AMDP methods. It helps an agent write database-layer code without hunting through SAP docs.

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

## What it does

The skill covers the SQLScript syntax an agent needs most: anonymous blocks, stored procedures, scalar and table functions, table types, cursors, and exception handlers. It also explains the language quirks that trip people up — variables take a colon when referenced, statements end with semicolons, and everything is case-insensitive.

A section on AMDP shows how to call HANA procedures from ABAP. The guide stresses the code-to-data paradigm: push computation into the database instead of moving data to the application layer. Imperative logic runs sequentially and blocks parallel execution, so performance-sensitive code should stay declarative where possible.

For the browser-based Datasphere editor, the skill delegates to `sap-browser-automation`, which handles manual authentication, Edge startup with CDP, and approved screenshots. CDP inspection is limited to local UI diagnostics; actual database validation belongs in SQL/HANA tooling. Version 2.4.1, no live HANA runtime evidence — documentation and community references only.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

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

## When to use it
- write a stored procedure with IN, OUT, and INOUT parameters
- implement an AMDP method that calls a HANA procedure from ABAP
- handle SQLScript exceptions with EXIT HANDLER
- spot imperative logic that blocks parallel execution
- get variable and table declaration syntax right

## Example prompts
- write a SQLScript procedure that counts records by status
- create a table function that returns employees with a filter
- show an AMDP method example that calls a HANA procedure

## Similar
- [sap-fiori-app-development](https://affpapa.org/en/nevibecode/skills/sap-fiori-app-development.md) — skill · 595 installs
- [sap-fiori-add-visual-filter](https://affpapa.org/en/nevibecode/skills/sap-fiori-tools-sap-fiori-add-visual-filter.md) — skill · 601 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) — 20 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
