Product · Open source

ABAP & RAP Utilities

A plug-and-play library of generic ABAP / RAP utilities for modern SAP teams. Self-contained, documented, tested — and tagged for Clean Core readiness.
ABAP-Utilities — abapGit packages
Context (sy-uname replacement) cloud-ready
CSV — table ↔ CSV cloud-ready
Fiori scaffolding generator cloud-ready
HTTP / REST client cloud-ready
⚠️ JSON serialize / deserialize review
App-server files (OPEN DATASET) on-prem
+ 33 more in the catalog below ↓

✅ Cloud-ready ⚠️ Needs review ❌ On-prem only

SAP ABAP experience
15 yrs SAP ABAP experience
ABAP & RAP utilities
39 ABAP & RAP utilities
Academy modules
17 Academy modules
cookbooks & guides
20 cookbooks & guides

Cherry-pickable

One abapGit (Git-based ABAP version control) sub-package per tool. Pull a single class into a transport — never the whole repo.

Cloud-tagged

Every module is tagged ✅ / ⚠️ / ❌ for Clean Core readiness. 24 are cloud-safe today.

Generators

Scaffold Fiori apps (SAP's modern web UI), released-API wrappers and OData analytics (the standard web data feed) from a table.

MIT-licensed

Free to use, change and ship. Passes the abaplint code checker, with ABAP Unit tests on the core.

The catalog

39 utilities, grouped

Cloud readiness: Cloud-ready Check release On-premise

Core & data

Error

Shared exception class — the one blessed dependency.

String

Split, join, mask, case, pad and format helpers.

Date

Add/subtract periods, working days, age, ISO dates.

Number

Round, clamp, mod and grouped formatting.

GUID

UUID generation via released APIs.

Validation

Email, card (Luhn) and IBAN checks.

Internal tables

Dedupe, distinct counts and sorted lookups.

Diff (LCS)

Longest-common-subsequence text/table diff.

Batch / chunking

Pagination and chunked processing.

Message (BAPIRET2)

Parse and build standard message tables.

Context

Cloud-safe replacements for sy-uname / sy-datum.

Base64

Encode / decode.

Hash

MD5, SHA-1/256 checksums.

⚠️

Files & integration

JSON

Serialize / deserialize (XCO path documented).

⚠️

CSV

Table ↔ CSV, both directions.

HTTP / REST

Call external APIs via released destination API.

Safe dynamic SQL

Allow-listed, sanitized dynamic SELECTs.

Email

BCS wrapper — send with attachments.

⚠️

Zip

Build and read archives.

⚠️

App-server files

OPEN DATASET file I/O.

RAP, CDS & generators

RAP message helper

Build IF_ABAP_BEHV_MESSAGE cleanly.

Fiori scaffolding

Generate CDS + RAP + service from a table.

Released-wrapper gen

Scaffold a governed facade around an unreleased API.

Data export gen

Generate OData + analytical CDS for Power BI.

Doc generator

Auto-generate a Markdown API reference.

Dev experience & resilience

Guard

Fail-fast input validation and assertions.

Clock

Injected, testable “now”.

Feature flags

Toggles and canary rollouts.

Test data

Random value + property-test helpers.

Retry

Exponential backoff + circuit breaker.

⚠️

Logger

BAL application-log wrapper with correlation IDs.

⚠️

Config / toggles

TVARVC wrapper for externalized values.

⚠️

Stopwatch

Lightweight timing.

⚠️

Profiler

SAT/SE30-lite scoped runtime profiling.

⚠️

UI & operations

Number range

NUMBER_GET_NEXT wrapper.

⚠️

Locking

ENQUEUE / DEQUEUE wrapper.

⚠️

Background jobs

Background-job scheduling.

⚠️

SAPscript text

Read / write long texts.

⚠️

ALV (SALV)

Modern SALV table wrapper with events.

Cookbooks

20 hands-on guides

Patterns, not just classes — every common ABAP problem mapped to a fix with copy-paste before/after code.

Anti-patterns → remediation playbook

Every common ABAP bad habit mapped to a tool, a standard feature or a how-to.

Clean Core & ATC cookbook

The top findings from ATC (SAP's code-quality checker) — table writes, sy-fields, native SQL, Dynpro (old GUI screens) — with fixes.

RAP / CDS / BTP modernization

The modern SAP stack (RAP apps, CDS data models, BTP cloud platform) and how to migrate reports to CDS + RAP + Fiori.

Fiori conversion cookbook

Turn SM30 maintenance, ALV and selection screens into Fiori (SAP's modern web UI) tiles.

Data export cookbook

Feed reports & CDS to Power BI and Datasphere live via OData (the standard web data interface) / analytics.

BDC → BAPI / RAP cookbook

Replace brittle CALL TRANSACTION screen-scraping with released BAPIs (official interfaces), RAP (EML) or OData.

Internal tables cookbook

Remove nested loops; sorted vs hashed, table expressions, FOR / REDUCE / GROUP BY.

Performance profiling

Find the slowest program/SQL with instrumentation plus ST03N / SAT / ST05 (SAP's performance-tracing tools).

Parallel processing

aRFC & SPTA patterns (SAP's parallel-work frameworks), throttling, LUW rules and the cloud alternative.

API usage cheat-sheet

Released replacements for the most common non-released calls.

Clean Core readiness matrix

A per-object audit: what's cloud-safe, what's blocked and the replacement.

Dev workflow

Git hooks, Conventional Commits, CI gates and ADR / postmortem templates.

Engineering pitfalls cookbook

Number ranges, update task, enqueue scoping, jobs and customizing-as-code.

Underused standard features

Built-in ABAP capabilities most teams miss: PCRE regex, meshes, enums, RTTI, XCO and test doubles.

Auto-documentation

ABAP Doc enforcement in CI and Markdown generation from source.

ABAP & MCP integration

Wire SAP docs into Claude / Cursor / Copilot via MCP (the open standard for connecting AI tools to data) for grounded AI assistance.

Systemic vs dev-team scope

Which Clean Core problems a dev team can fix vs. what's vendor, licensing or org.

Cross-language ideas

DI, TDD, result objects, feature toggles and fluent APIs, applied to ABAP.

Related projects map

“Use this instead”: a problem → project map to established open-source ABAP.

Local AI code review

Free, offline LLM review of your diffs with Ollama — no keys, no internet.

Companion kit

ABAP Enclave — private AI for ABAP

Open-source, air-gapped AI tooling that wires a local LLM into your ABAP workflow — MIT-licensed, and tailored to your landscape by the ABAP Enclave service.

ABAP Enclave kit

Air-gapped, local-LLM AI toolkit for ABAP teams

The open-source companion to the ABAP Enclave service: an editor stack (a locally hosted open-weight model via Ollama, wired into VS Code with Continue + ABAPfs and abaplint) stood up by a one-command installer, plus a pip-installable `abap-enclave` CLI whose capability modules (ATC triage, test generation, documentation) reuse a shared ADT + Ollama foundation. Everything runs on your network — no ABAP source ever leaves it. MIT-licensed; a starting point the service tailors to your landscape.

  • install.ps1 / install.sh

    Step 1 — the one-command bootstrapper for the editor stack (VS Code, Ollama + model, extensions, config). Online or air-gapped.

  • Modelfile

    Step 2 — the Ollama Modelfile the installer uses to build the `abap-enclave` model with a Clean ABAP / Clean Core system prompt.

  • cli/

    The pip-installable `abap-enclave` package — shared ADT + Ollama foundation and capability subcommands.

  • README.md

    Setup, the zero-egress rationale, the CLI + config schema, and how the service tailors it.

Want these patterns in your codebase?

The utilities are free. If you'd like help cherry-picking, wiring up the generators, or remediating the ⚠️/❌ modules, book a call.