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

ABAP Cloud Part 2: RAP and ABAP Cloud Architecture for Clean-Core Extensions

Preview · a free account unlocks the full lesson

Key takeaway

Design clean-core extensions with RAP and ABAP Cloud: the extensibility options, the layered architecture of an extension, and how SAP's three-tier model handles code that cannot yet be cloud-ready on private cloud and on-premise.

In this lessonShow sections

Visual overview

ABAP Cloud Part 2: RAP and ABAP Cloud Architecture for Clean-Core Extensions — learning sheetFlow: List the SAP data you read and change → For each: find a released CDS view / RAP interface / class (Business Accelerator Hub, ADT API state) → Missing? → design a tier 2 wrapper (code example) and release it for cloud development → Build the RAP BO in tier 1 on top. Key ideas: THE EXTENSIBILITY OPTIONS; ANATOMY OF AN ON-STACK RAP EXTENSION; WHAT IF SOMETHING IS NOT RELEASED? — THE TIER MODEL; DESIGN RULES. Watch out: WATCH OUT: wrappers must stay thin: a clear interface, no business logic, no UI, full error handling.ERPClimb.com / RAP / LESSON 2/7 / LEARNING SHEETABAP Cloud Part 2: RAP and ABAP Cloud Architecture forClean-Core Extensions1 · HOW IT FLOWS1List the SAPdata you readand change2For eachfind a released CDS view/ RAP interface / class…3Missing? →design a tier 2wrapper (code…4Build the RAP BOin tier 1 on top2 · KEY IDEAS EXPLAINEDThe Extensibility OptionsKey user extensibility — custom fields, customlogic in released BAdIs, custom CDS views viaFiori apps. For simple needs; no developer tools.Developer extensibility (on-stack) — ABAP Cloud inADT, in the same system as S/4HANA. For customapps, custom BOs, logic close to SAP data.Anatomy Of An On-Stack RAP ExtensionOwn persistence and RAP BO: ZPR_HEAD/ZPR_ITEM,ZR_PurchReq, behavior pool — fully ABAP Cloud.Read SAP data through released CDS views:I_Supplier, I_Product, I_CostCenter (names asexamples; check availability).What If Something Is Not Released? — The…Tier 1 — ABAP Cloud: all new development; onlyreleased APIs.Tier 2 — cloud API enablement: small wrapperclasses in Standard ABAP that call unreleased SAPfunctionality (e.g. a BAPI) and are themselves…Design RulesBusiness logic in tier 1 (RAP BO, classes).One wrapper per missing capability, not one percaller.3 · REMEMBER · WATCH OUTRememberThree extensibility options: key user (no code/low code), developer(on-stack ABAP Cloud), side-by-side (BTP).A RAP extension = your own BO + released SAP APIs + released extensionpoints.On private cloud / on-premise, SAP's tier model separates cloud-readycode, released wrappers and classic code.!Watch outWATCH OUT: wrappers must stay thin:a clear interface, no businesslogic, no UI, full error handling.4 · IN A REAL PROJECTA team building a new approval app on S/4HANA private cloud needed to create purchase requisitions, but theclassic BAPI was not released for cloud development, and the team's first draft called it directly from RAPcode in Standard ABAP. The architect introduced a tier-2 wrapper with a five-parameter interface, released it…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

There are three extensibility options to choose from: key user extensibility, which needs no code or only low code; developer extensibility, which is on-stack ABAP Cloud; and side-by-side extensibility, which runs on BTP. A RAP extension, in practice, is your own business object combined with released SAP APIs and released extension points. On private cloud and on-premise systems, SAP's tier model separates cloud-ready code, released wrappers and classic code, and wrappers are what turn unreleased SAP functionality into a small, released, testable API.

Part 1 introduced ABAP Cloud; this part shows how a real extension is actually structured.

Key user extensibility covers custom fields, custom logic in released BAdIs, and custom CDS views built through Fiori apps — it suits simple needs and requires no developer tools.

Developer extensibility, or on-stack extensibility, means writing ABAP Cloud in ADT within the same system as S/4HANA, and suits custom apps, custom business objects, and logic that needs to sit close to SAP data.

Side-by-side extensibility means building a separate application on SAP BTP — the ABAP environment or CAP — connected through released remote APIs and events, suited to decoupled scenarios, a topic covered further in Part 5.

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.