SAP ConsultingPlatform and development

SAP ABAP Development

SAP ABAP is the language S/4HANA itself is written in; reports, interfaces, forms and business rules added to standard processes are all built with it. For new development SAP recommends ABAP Cloud, RAP and CDS, while existing code is graded against the clean core levels.

Connected modules

Process

Building an app with RAP in SAP ABAP

Each layer from data model to service is a separate object built in ADT, and each object is recorded on a transport request.

  1. 01Data modelDEFINE VIEW ENTITY

    Business meaning over tables

  2. 02ProjectionMetadata extension

    UI annotations live here

  3. 03Behavior definitionBDEF · managed/unmanaged

    Create, update, delete

  4. 04Behavior poolABAP class · EML

    Business rules in ABAP

  5. 05Service definitionDEFINE SERVICE

    What gets exposed

  6. 06Service bindingOData V4 · UI / Web API

    Fiori elements or an API

Layers

Clean core levels A to D

In August 2025 SAP replaced the three-tier model with these four levels; the level is measured with the clean core checks in ATC.

  1. 01

    A · ABAP Cloud

    • Released APIs only
    • RAP and CDS
    • CAP, SAP Build on BTP
    • Upgrade-stable
  2. 02

    B · Classic APIs

    • SAP's classic APIs
    • Documented, mostly stable
    • Counted as compliant
  3. 03

    C · SAP internals

    • Access to internal objects
    • Partially compliant
    • Tracked via changelog, ATC
  4. 04

    D · Not recommended

    • Modifications
    • Implicit enhancements
    • Writes to SAP tables
    • Technical debt to reduce

Scope

SAP ABAP work we deliver

Current state

What S/4HANA means for SAP ABAP code

  • The data model was simplified: ACDOCA, MATDOC, the removal of VBUK/VBUP, the mandatory Business Partner and 40-character material numbers all hit code written against the old tables.
  • SAP HANA is the only database. Without ORDER BY a SELECT has no guaranteed sort order, and data-heavy calculations are pushed down with CDS and AMDP.
  • CDS and RAP objects can only be edited in ADT, which runs in Eclipse and in the SAP extension for VS Code. ALV does not exist in ABAP Cloud; new screens use Fiori elements.
  • In ABAP Cloud an OData service is published through a RAP service binding, not SEGW. DDIC-based CDS views (DEFINE VIEW) are obsolete since ABAP 7.57.

Localization

Code items specific to Türkiye

  • e-Document integration code

    Custom ABAP for e-Invoice, e-Dispatch notes or e-Ledger takes one of three paths at conversion: fixed and carried over, or replaced by SAP DRC or Negzel products.

    E-Invoice
  • Inflation adjustment reports

    S/4HANA has no standard inflation solution for Türkiye (SAP Note 3378302), so custom reports written since 2023 go on the list of code to migrate.

  • Turkish characters in forms

    Adobe and SmartForms output needs the right font and encoding settings. S/4HANA is Unicode-only, so programs that assume an old code page can break.

From the field

Findings that recur in SAP ABAP code

FAQ

SAP ABAP development questions

What is SAP ABAP, and how is ABAP Cloud different?

SAP ABAP is the SAP programming language that S/4HANA itself is written in. ABAP Cloud is a restricted development model within it: the "ABAP for Cloud Development" language version, released APIs only, RAP and CDS. It runs in the BTP ABAP environment, in public cloud and, since release 2022, in private cloud and on-premise S/4HANA, where classic ABAP keeps working too.

What are the clean core levels A, B, C and D?

The classification SAP introduced in August 2025 in place of the three-tier model. A covers ABAP Cloud and BTP extensions built on released APIs, B code using SAP's classic APIs, C code that touches SAP internal objects, and D techniques SAP advises against, such as modifications and implicit enhancements. ATC checks and SAP's Cloudification Repository measure it.

What happens to our custom code in an S/4HANA conversion?

First, usage data identifies code that never runs, and it is dropped. The rest is analyzed with ATC's S/4HANA readiness checks and Custom Code Migration (F3191); quick fixes are applied in bulk and the remainder by hand. SPDD and SPAU adjustments follow during the conversion, then regression testing.

What can AI do in custom code migration?

SAP's Custom Code Migration Agent runs the ATC readiness checks, classifies findings, applies deterministic fixes in bulk and generates AI fixes with a confidence score for the rest. The target must be S/4HANA 2023 or later, and it needs the MCP server in ADT for Eclipse, Joule for Developers ABAP AI capabilities and a GitHub Copilot Pro or Amazon Q Developer Pro license.

Do SmartForms still work in S/4HANA?

Yes. S/4HANA output control supports SmartForms and SAPscript, but only with the PDF1 and PDFUC device types. SAP recommends Adobe Document Services (ADS), and whether an output goes through the classic route or output control depends on the application.

Do we need Eclipse for ABAP development?

CDS and RAP objects require ADT, which is available in Eclipse and as SAP's VS Code extension. SAP documents the extension for SAP NetWeaver 7.3 EHP1 SP04 or higher, S/4HANA 1709 or higher and the BTP ABAP environment; features vary by release. Classic objects can still be edited in SE80 in SAP GUI.

Sources12 sourcesSAP Help Portal, SAP Learning, SAP News Center +2

SAP Consulting

Let's map your custom code

Bring your ATC results and your most-used developments, and we will decide with you what moves across and what gets retired.

Quick access

SAP module consulting

We provide consulting across SAP modules, from finance to manufacturing and from integration to data.

Looking for the right consultant?Find an Expert SAP Consultant
Finance8
Human resources3
Logistics11
Manufacturing7
Projects and engineering2
Platform and development4
Integration2
Data and control3