sap-abap

sap-abap is a skill for Claude Code from BoxLogoDev/sapstack. It costs 156 tokens per session (2,519 once invoked), scanned A, original, MIT.

A development guide for SAP ABAP, the programming language used to customise SAP business systems. It covers reports, services, extensions, forms, testing, performance checks, and troubleshooting, with choices based on the SAP release and deployment model.

In plain words
What is it for?
Use it to build or debug ABAP reports, classes, BAdIs, user exits, ALV screens, forms, CDS views, RAP and OData services, ABAP Unit tests, and short-dump fixes.
Why use it?
It helps an agent avoid incompatible extension methods and account for constraints such as Clean Core, cloud deployment, package naming, and transport routes. It also provides patterns for implementing and testing ABAP code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the sap-abap plugin — 1 skill shipped together

Good fit Use it to build or debug ABAP reports, classes, BAdIs, user exits, ALV screens, forms, CDS views, RAP and OData services, ABAP Unit tests, and short-dump fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/boxlogodev/sapstack/sap-abap
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 BoxLogoDev/sapstack --skill sap-abap
Clone the repo
git clone --depth 1 https://github.com/BoxLogoDev/sapstack

Made for: Claude Code.

Or install sap-abap, the plugin that ships this one along with the rest of its 1 skill.

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 sap-abap

README.md
[![agentmods](https://agentmods.dev/badge/skills/boxlogodev/sapstack/sap-abap/github.svg)](https://agentmods.dev/skills/boxlogodev/sapstack/sap-abap)
Your own site
<a href="https://agentmods.dev/skills/boxlogodev/sapstack/sap-abap"><img src="https://agentmods.dev/badge/skills/boxlogodev/sapstack/sap-abap/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 sap-abap

Your own site · 80×15
<a href="https://agentmods.dev/skills/boxlogodev/sapstack/sap-abap"><img src="https://agentmods.dev/badge/skills/boxlogodev/sapstack/sap-abap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,519 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00156 $0.02519
Opus 5.5 $0.00062 $0.01008
Sonnet 5.5 $0.00031 $0.00504
Haiku 4.5 $0.00016 $0.00252

Measured 3mo ago against content hash d451f8099803, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sap-abap 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 3mo 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.

plugins/sap-abap/skills/sap-abap/SKILL.md · 313 lines

How it starts

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

1. Environment Detection

Ask before writing any code:

□ ABAP release? (7.02 ECC / 7.40 / 7.50 / 7.57 S/4HANA 2023)
□ Clean Core required? (on-premise CBO allowed vs BTP side-by-side only?)
□ Package / naming convention? (Z* / Y* prefix, package structure)
□ Transport landscape? (DEV → QAS → PRD, how many systems?)
□ S/4HANA deployment? (on-premise / RISE / Cloud PE — affects what's allowed)

2. Enhancement Framework — Decision Table

Scenario Recommended Approach Notes
Classic user exit exists SMOD / CMOD ECC only — avoid in new S/4HANA dev
BAdI definition exists New BAdI (SE19 / GET BADI) All releases — preferred approach
No exit/BAdI, on-premise Enhancement Spot (SE18/SE19) CBO allowed on-premise
S/4HANA Clean Core / Cloud PE BTP side-by-side extension (RAP + Events) No on-stack modifications

3. Code Patterns with Full Examples

New BAdI (All Releases — Preferred)

" Step 1: Find BAdI via SE19 or BADI Explorer (SPRO)
" Step 2: Create enhancement implementation
" Step 3: Implement interface method

DATA lo_badi TYPE REF TO badi_name.
GET BADI lo_badi.
CALL BADI lo_badi->method_name
  EXPORTING iv_input  = lv_value
  IMPORTING ev_output = lv_result.

ALV — OO Approach (Recommended Over REUSE_ALV_GRID_DISPLAY)

DATA: lo_alv    TYPE REF TO cl_salv_table,
      lt_result TYPE TABLE OF your_structure.

" ... populate lt_result ...

TRY.
    cl_salv_table=>factory(
      IMPORTING r_salv_table = lo_alv
      CHANGING  t_table      = lt_result ).

    " Optional: configure columns
    lo_alv->get_columns( )->set_optimize( abap_true ).

    " Optional: add sort
    DATA(lo_sorts) = lo_alv->get_sorts( ).
    lo_sorts->add_sort( columnname = 'FIELD1' ).

    lo_alv->display( ).
  CATCH cx_salv_msg INTO DATA(lx_err).
    MESSAGE lx_err->get_text( ) TYPE 'E'.
ENDTRY.

BAPI with Complete Error Handling

DATA lt_return TYPE TABLE OF bapiret2.

CALL FUNCTION 'BAPI_NAME'
  EXPORTING
    iv_param1 = lv_value1
    iv_param2 = lv_value2
  IMPORTING
    ev_result = lv_result
  TABLES
    return    = lt_return.

" ALWAYS check return table — never assume success
IF line_exists( lt_return[ type = 'E' ] )
OR line_exists( lt_return[ type = 'A' ] ).
  " Error — do NOT commit; handle or raise
  LOOP AT lt_return INTO DATA(ls_err) WHERE type CA 'EA'.
    MESSAGE ls_err-message TYPE 'E'.
  ENDLOOP.
ELSE.
  " Success — commit
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING wait = abap_true.
ENDIF.

Read the full file on GitHub · 313 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. 3mo ago First seen · 313 lines · 156 tokens per session scan A d451f8099803

Subscribe to this mod's changes

sap-abap is a skill published in the GitHub repository BoxLogoDev/sapstack (20 stars, last pushed 2mo ago), licensed MIT. It adds 156 tokens to every session and 2,519 once invoked, about $0.0006 per session on Opus 5.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-30.

Related

sap-abap compared with skills from other repositories

sap-abap next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sap-abapBoxLogoDev/sapstackSkill202mo agoMITA156Claude Code
sap-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A92Claude Code
light-data-engineeringLight0305/Light-skillsSkill1.1k23d agoMITA361Claude Code, Codex
light-review-rebuttalLight0305/Light-skillsSkill1.1k23d agoMITA162Codex
sap-customizingmarcellourbani/vscode_abap_remote_fsSkill411todayMITA103Claude Code
sap-system-personality-reportmarcellourbani/vscode_abap_remote_fsSkill411todayMITA82Claude Code
abap-researchmarcellourbani/vscode_abap_remote_fsSkill411todayMITA96Claude Code