ERPClimb logoERPClimb
ABAP Cloud and Released APIs
RAP / CDS / ODataintermediate 7 min read

ABAP Cloud Part 1: Released APIs, ATC and Clean Core

Free sample lesson · open to everyone

Key takeaway

Understand ABAP Cloud and clean core in practical terms: what changes for a developer, what "released API" means, how ATC enforces the rules, and what your first ABAP Cloud class looks like.

In this lessonShow sections

Expert visual walkthrough

RAP · CDS · ODATA ACADEMY · Integration pathERPClimb.com

Released APIs, ATC and Clean Core

ABAP Cloud and Released APIs · Chapter-specific technical teaching map

Integration path

1Concept

ABAP object

2Concept

Syntax / ATC checks

3Concept

Automated testing

4Concept

Transport readiness

Tutor's chapter takeaway

Understand ABAP Cloud and clean core in practical terms: what changes for a developer, what "released API" means, how ATC enforces the rules, and what your first ABAP Cloud class looks like.

In a real project

A company's S/4HANA upgrade took nine months, mostly to adapt about 4,000 custom objects that read SAP tables and called internal function modules. For new development after the upgrade, the architecture board mandated ABAP…

Watch out for

• Thinking ABAP Cloud only matters for public cloud. • Reading SAP tables because "the data is there". • Using sy-uname/sy-datum instead of cl_abap_context_info. • Writing reports with WRITE output for new development. •…

Conceptual study map, not an SAP configuration screenshot or a guaranteed runtime sequence. Consult the lesson for implementation prerequisites and exceptions.

The situation: a real project scenario

A company's S/4HANA upgrade took nine months, mostly to adapt about 4,000 custom objects that read SAP tables and called internal function modules. For new development after the upgrade, the architecture board mandated ABAP Cloud for all new extensions.
Two years later, the next upgrade needed only small adjustments to the classic legacy objects; the roughly 300 new ABAP Cloud objects built on released APIs worked unchanged. The difference convinced management to fund a gradual migration of the most critical legacy extensions.

Explanation

This series covers ABAP Cloud across seven parts: this lesson covers released APIs, ATC and clean core; Part 2 covers RAP and ABAP Cloud architecture for extensions; Part 3 covers replacing direct table and classic API dependencies; Part 4 covers ATC readiness for finding and fixing unreleased usage; Part 5 covers on-stack developer extensibility versus BTP side-by-side; Part 6 covers language version, syntax restrictions and API checks; and Part 7 covers released APIs and release contracts.

Clean core matters because classic custom code reads SAP tables directly, calls internal function modules, and modifies SAP objects — and every upgrade can break code like that, turning upgrades into expensive projects. Clean core means extensions use only stable, released interfaces instead, interfaces that SAP guarantees across upgrades, so the extensions keep working.

ABAP Cloud is the development model built for clean-core extensions. It's used in the SAP BTP ABAP environment, in S/4HANA Cloud Public Edition, and in S/4HANA Cloud Private Edition and on-premise for what's called developer extensibility.

It consists of a language version, "ABAP for Cloud Development," which is a restricted form of ABAP with no dynpros, no WRITE lists, no SUBMIT, and no direct access to unreleased objects; released SAP APIs only, meaning CDS views (I_…), RAP business object interfaces (…TP), and classes and interfaces that carry a release contract; modern models, with RAP for transactions and services, CDS for data, and ABAP classes for logic; and tooling built around ADT in Eclipse, ATC checks, and abapGit or gCTS.

A fair amount changes for a developer working this way. SELECT FROM vbak becomes SELECT FROM i_salesorder. Calling a BAPI becomes EML on a released RAP BO interface, or a released wrapper around it. Reports using WRITE become RAP services with Fiori Elements, or console classes implementing if_oo_adt_classrun for technical tests. sy-uname and sy-datum become cl_abap_context_info. And SE38/SE80 give way entirely to ADT.

These rules get enforced in a few ways. The syntax check for "ABAP for Cloud Development" objects rejects forbidden statements and unreleased objects outright. ATC, the ABAP Test Cockpit, with its cloud readiness variants, finds violations in existing code, as covered in Part 4. And in ADT, every SAP object shows its API state — released or not — right in the Properties view.

A first ABAP Cloud class can be built by creating a package with the ABAP language version "ABAP for Cloud Development" (the default in cloud systems), creating a class ZCL_FIRST_CLOUD implementing if_oo_adt_classrun as shown in the code example, trying "SELECT FROM vbak" and watching the syntax check reject it, replacing it with I_SalesOrder, and running it with F9.

It's worth remembering throughout that code compiling under Standard ABAP says nothing about whether it's actually cloud-ready — with that understood, and a first compliant class written, the meaning of ABAP Cloud is in place.

Code example

ABAP Code
" ===== A first ABAP Cloud class (language version: ABAP for Cloud Development) =====CLASS zcl_first_cloud DEFINITION PUBLIC FINAL CREATE PUBLIC.  PUBLIC SECTION.    INTERFACES if_oo_adt_classrun.        " console output in ADT (F9)ENDCLASS. CLASS zcl_first_cloud IMPLEMENTATION.  METHOD if_oo_adt_classrun~main.     " Released CDS view instead of table VBAK    SELECT SalesOrder, SalesOrganization, TotalNetAmount, TransactionCurrency      FROM i_salesorder      WHERE SalesOrganization = '1010'      ORDER BY SalesOrder DESCENDING      INTO TABLE @DATA(orders)      UP TO 5 ROWS.     " Released class instead of sy-uname / sy-datum    DATA(user)  = cl_abap_context_info=>get_user_technical_name( ).    DATA(today) = cl_abap_context_info=>get_system_date( ).     out->write( |User { user }, date { today }| ).    out->write( orders ).  ENDMETHOD.ENDCLASS. " ===== Rejected by the ABAP Cloud syntax check =====" SELECT * FROM vbak ...                      -> table not released" CALL FUNCTION 'BAPI_SALESORDER_GETLIST' ... -> function module not released" WRITE: / 'Hello'.                            -> list output not allowed" SUBMIT zreport.  CALL TRANSACTION 'VA03'.   -> not allowed" DATA(u) = sy-uname.                          -> use cl_abap_context_info

Watch out

Common mistakes

  • Thinking ABAP Cloud only matters for public cloud.
  • Reading SAP tables because "the data is there".
  • Using sy-uname/sy-datum instead of cl_abap_context_info.
  • Writing reports with WRITE output for new development.
  • Ignoring the API state shown in ADT.
  • Using SE80 instead of ADT.

Do this

Best practices

  • Use ABAP for Cloud Development for all new extensions where possible.
  • Check the API state of every SAP object before using it.
  • Build transactional apps with RAP and read data via released CDS views.
  • Use console classes for technical tests.
  • Run ATC cloud checks continuously.

In the interview

Interview angle

Questions: "What is ABAP Cloud?", "What does clean core mean for developers?", "What is a released API?"
Strong answer: ABAP Cloud is the clean-core development model: ABAP for Cloud Development language version, only released SAP APIs (CDS, RAP BO interfaces, classes), RAP and CDS as models, ADT tooling, enforced by syntax checks and ATC. It applies to BTP ABAP, S/4HANA Cloud and — for developer extensibility — private cloud and on-premise. Give concrete replacements: I_SalesOrder for VBAK, cl_abap_context_info for sy-uname.

Practice this lesson

Quick check

0 of 3 questions attempted

Question 1 of 3

What is the typical released replacement for reading table VBAK in ABAP Cloud?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1What is ABAP Cloud, and what changes for a developer compared to classic ABAP?

2Describe how you would build a new custom approval app on S/4HANA in a clean-core way.

See it in code

Each example starts from a requirement, shows the design, then the code step by step with a plain-language explanation of every part.

Was this lesson helpful?

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.