abap-sql-amdp

abap-sql-amdp is a skill for Claude Code, Codex from Ciltress/sap-abap-mcp. It costs 201 tokens per session (2,689 once invoked), scanned A, original, MIT.

Guidance for writing modern ABAP SQL queries and AMDP, SAP's way to run database procedures managed through ABAP. It covers query features, AMDP procedures and functions, and CDS table functions.

In plain words
What is it for?
Writing or improving queries, using grouping, window functions, common table expressions and other SQL features, and creating AMDP or CDS table functions.
Why use it?
It helps developers choose between regular ABAP SQL and AMDP and write database code that fits Cloud or Standard ABAP rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Writing or improving queries, using grouping, window functions, common table expressions and other SQL features, and creating AMDP or CDS table functions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ciltress/sap-abap-mcp/abap-sql-amdp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ciltress/sap-abap-mcp --skill abap-sql-amdp
Clone the repo
git clone --depth 1 https://github.com/Ciltress/sap-abap-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for abap-sql-amdp

README.md
[![agentmods](https://agentmods.dev/badge/skills/ciltress/sap-abap-mcp/abap-sql-amdp/github.svg)](https://agentmods.dev/skills/ciltress/sap-abap-mcp/abap-sql-amdp)
Your own site
<a href="https://agentmods.dev/skills/ciltress/sap-abap-mcp/abap-sql-amdp"><img src="https://agentmods.dev/badge/skills/ciltress/sap-abap-mcp/abap-sql-amdp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for abap-sql-amdp

Your own site · 80×15
<a href="https://agentmods.dev/skills/ciltress/sap-abap-mcp/abap-sql-amdp"><img src="https://agentmods.dev/badge/skills/ciltress/sap-abap-mcp/abap-sql-amdp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 201 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,689 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00201 $0.02689
Opus 5 $0.00101 $0.01345
Sonnet 5 $0.00040 $0.00538
Haiku 4.5 $0.00020 $0.00269

Measured 9d ago against content hash c5bfbd3c9935, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

abap-sql-amdp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ABAP/skills/abap-sql-amdp/SKILL.md · 331 lines

How it starts

The opening of the file, as written. The whole thing — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ABAP SQL & AMDP

Guide for writing modern ABAP SQL statements and ABAP Managed Database Procedures (AMDP) in ABAP Cloud and Standard ABAP.

Workflow

  1. Determine the user's goal:

    • Writing or optimizing ABAP SQL queries
    • Using advanced SQL features (window functions, CTEs, aggregates)
    • Creating AMDP procedures or functions
    • Implementing CDS table functions via AMDP
    • Understanding PRIVILEGED ACCESS for authorization bypass
  2. Identify the context:

    • ABAP for Cloud Development vs. Standard ABAP (affects available syntax)
    • Performance optimization needs
    • Whether AMDP is justified (prefer ABAP SQL when possible)
  3. Guide implementation using modern ABAP SQL syntax

Modern ABAP SQL Quick Reference

Basic SELECT with Inline Declaration

"Single record
SELECT SINGLE FROM ztravel
  FIELDS travel_id, description, total_price, currency_code
  WHERE travel_id = @lv_travel_id
  INTO @DATA(ls_travel).

"Multiple records into internal table
SELECT FROM ztravel
  FIELDS travel_id, description, total_price, currency_code
  WHERE status = 'O'
  ORDER BY total_price DESCENDING
  INTO TABLE @DATA(lt_travels)
  UP TO 100 ROWS.

Expressions in SELECT List

SELECT FROM zflight
  FIELDS carrier_id,
         connection_id,
         flight_date,
         seats_max - seats_occupied AS seats_free,
         CASE WHEN seats_occupied > seats_max * 80 / 100
              THEN 'FULL'
              ELSE 'AVAILABLE'
         END AS availability,
         CAST( price AS DECFLOAT34 ) AS price_dec,
         CONCAT( carrier_id, connection_id ) AS flight_key
  INTO TABLE @DATA(lt_flights).

Aggregate Functions and GROUP BY

SELECT FROM zflight
  FIELDS carrier_id,
         COUNT(*) AS flight_count,
         SUM( seats_occupied ) AS total_passengers,
         AVG( price ) AS avg_price,
         MIN( flight_date ) AS first_flight,
         MAX( flight_date ) AS last_flight
  GROUP BY carrier_id
  HAVING COUNT(*) > 10
  INTO TABLE @DATA(lt_stats).

Read the full file on GitHub · 331 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 331 lines · 201 tokens per session scan A c5bfbd3c9935

Subscribe to this mod's changes

abap-sql-amdp is a skill published in the GitHub repository Ciltress/sap-abap-mcp (3 stars, last pushed 17d ago), licensed MIT. It adds 201 tokens to every session and 2,689 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

azure-resource-manager-postgresql-dotnet

Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for…

microsoft/skills · 97 tokens

azure-data-tables-java

Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.

microsoft/skills · 47 tokens

azure-cosmos-java

Azure Cosmos DB SDK for Java. NoSQL database operations with global distribution, multi-model support, and reactive patterns. Triggers: "CosmosClient java", "CosmosAsyncClient", "cosmos database java", "cosmosdb java", "document database java".

microsoft/skills · 59 tokens

kotlin-exposed-patterns

JetBrains Exposed ORM patterns including DSL queries, DAO pattern, transactions, HikariCP connection pooling, Flyway migrations, and repository pattern.

hashgraph-online/awesome-codex-plugins · 36 tokens

jpa-patterns

JPA/Hibernate patterns and common pitfalls (N+1, lazy loading, transactions, queries). Use when user has JPA performance issues, LazyInitializationException, or asks about entity relationships and fetching strategies.

decebals/claude-code-java · 47 tokens