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

ABAP Cloud Part 6: Language Version, Syntax Restrictions and API Checks

Preview · a free account unlocks the full lesson

Key takeaway

Understand ABAP language versions (Standard ABAP, ABAP for Cloud Development, ABAP for Key Users), what the cloud version forbids, how to set and check it in ADT, and how to rewrite common classic statements in cloud-compliant style.

In this lessonShow sections

Visual overview

ABAP Cloud Part 6: Language Version, Syntax Restrictions and API Checks — learning sheetFlow: Create package ZPR_CLOUD with the ABAP Cloud language version (or in a cloud software component) → Create class ZCL_PR_DEMO implementing IF_OO_ADT_CLASSRUN → Add a WRITE statement and a SELECT on a classic table; activate and read the errors → Replace them with the cloud-compliant code shown in the example; activate again. Key ideas: THE LANGUAGE VERSIONS; WHERE IT IS SET; WHAT IS NOT ALLOWED (TYPICAL); WHAT TO USE INSTEAD. Watch out: You can use your own custom tables and objects freely. The restriction is on SAP objects that are not released.ERPClimb.com / RAP / LESSON 6/7 / LEARNING SHEETABAP Cloud Part 6: Language Version, Syntax Restrictionsand API Checks1 · HOW IT FLOWS1Create packageZPR_CLOUD withthe ABAP Cloud…2Create classZCL_PR_DEMOimplementing…3Add a WRITEstatement and aSELECT on a…4Replace themwith thecloud-compliant…2 · KEY IDEAS EXPLAINEDThe Language VersionsStandard ABAP: the classic full language. Anythingis allowed; nothing is checked for release.ABAP for Cloud Development: restricted syntax plusa release check. Only released SAP APIs and yourown objects may be used. This is ABAP Cloud.Where It Is SetIn ADT: object → Properties → General → ABAPLanguage Version.Usually inherited: the software component orpackage is set up for ABAP Cloud, so every newobject gets the cloud version automatically.What Is Not Allowed (Typical)Classic list and screen programming: WRITE, dynproscreens, selection screens, SUBMIT, CALLTRANSACTION.Native and dynamic access to SAP internals: EXECSQL, direct access to SAP tables that are notreleased.What To Use InsteadOutput: console classes (IF_OO_ADT_CLASSRUN) fortests, RAP services and Fiori apps for users.User and time: CL_ABAP_CONTEXT_INFO for user, dateand time.3 · REMEMBER · WATCH OUTRememberEvery ABAP object has a language version. "ABAP for CloudDevelopment" is the one used for ABAP Cloud.The syntax check itself enforces the rules: forbidden statements andunreleased objects are syntax errors, not just warnings.Classic UI and system statements (WRITE, SUBMIT, CALL TRANSACTION,dynpro) are not allowed. Use RAP, released classes and console output.!Watch outYou can use your own custom tablesand objects freely. The restrictionis on SAP objects that are notreleased.4 · IN A REAL PROJECTA team switched 60 existing classes to ABAP for Cloud Development in one transport because "ATC showedonly a few findings per class". Activation failed with hundreds of syntax errors, the transport wasblocked and a release date slipped. They restarted with a plan: replace dependencies per class first, switch…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Every ABAP object carries a language version, and "ABAP for Cloud Development" is the version used for ABAP Cloud. The syntax check itself enforces its rules — forbidden statements and unreleased objects produce actual syntax errors, not just warnings. Classic UI and system statements, such as WRITE, SUBMIT, CALL TRANSACTION or dynpro, are not allowed; RAP, released classes and console output take their place. Your own custom tables and objects can still be used freely — the restriction only applies to SAP objects that haven't been released.

Part 4 used ATC to find problems; this part explains the underlying rule that produces many of them: the language version assigned to each object.

There are three language versions worth knowing. Standard ABAP is the classic, full language, where anything is allowed and nothing is checked for release. ABAP for Cloud Development restricts the syntax and adds a release check, meaning only released SAP APIs and your own objects may be used — this is what ABAP Cloud actually is.

ABAP for Key Users is used by key-user tools, such as custom logic inside Fiori apps, and is even more restricted than that. In the SAP BTP ABAP environment and S/4HANA Cloud Public Edition, developer objects are always ABAP for Cloud Development; in S/4HANA on-premise and Private Cloud, you choose the version per software component or package.

The language version is set, in ADT, under an object's Properties → General → ABAP Language Version. It's usually inherited — the software component or package is set up for ABAP Cloud, so every new object created in it automatically gets the cloud version. Mixed packages, where this isn't consistent, are a warning sign, and it's better to keep ABAP Cloud code in dedicated packages.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

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.