ERPClimb logoERPClimb
RAP Basics
Architect / Cross-trackbeginner 45 min read

RAP Build-Along Part 1: Build a Managed RAP App End to End

Preview · a free account unlocks the full lesson

Key takeaway

Build a draft-enabled managed RAP Travel application from persistence tables to CDS business object, behavior, Fiori Elements service, EML tests, authorization, debugging and transport—while understanding why every artifact exists.

In this lessonShow sections

Visual overview

RAP Build-Along Part 1: Build a Managed RAP App End to End — learning sheetIn one line: Build a draft-enabled managed RAP Travel application from persistence tables to CDS business object, behavior, Fiori Elements service, EML tests, authorization, debugging and transport—while understanding why every artifact exists.ERPClimb.com / ARCH / LESSON 1/9 / LEARNING SHEETRAP Build-Along Part 1: Build a Managed RAP App End to End1 · IN ONE LINEBuild a draft-enabled managed RAP Travel application from persistence tables to CDS businessobject, behavior, Fiori Elements service, EML tests, authorization, debugging andtransport—while understanding why every artifact exists.2 · KEY IDEAS EXPLAINEDPrerequisites And Development…Use ABAP Development Tools (ADT) in Eclipse.Create the artifacts in a transportable package,assign the correct transport request, and confirm…Architecture Map: What Calls What┏Create Persistence TablesCreate one active table for the root and one forthe child. The child carries the root UUID so thecomposition can be persisted. Keep amounts and…Build CDS Interface Root And Child…Link `TotalPrice` to `CurrencyCode` withamount/currency annotations.Annotate dates and text fields according to theirmeaning.3 · DO · AVOIDBest practice!Common mistakeConfirm the target ABAP release, languageversion, and released APIs in ADT before…Model root, child, ownership, cardinality,keys, currency/unit semantics, and transaction…Prefer UUID technical keys for new managedBOs; keep business identifiers separate.✕Starting with UI annotations before definingthe root-child business-object grain.✕Exposing active persistence tables directlyinstead of stable interface and projection…✕Assuming composition alone creates databaseintegrity or correct child ownership.4 · IN A REAL PROJECT## Project scenario: travel approval application A travel-services team replaces spreadsheets with atransactional application. An employee creates a travel request, adds one or more flight bookings, correctsvalidation errors, saves the draft, and activates it. An authorized coordinator confirms the request. Auditors…Original ERPClimb learning sheet • Verify against your SAP release and edition
Diagram showing Fiori Elements through OData V4, projection, RAP business object and persistence layers.
RAP build-along architecture: CDS and behavior define the BO; projections and service bindings expose consumers.View full-size

Explanation

This lesson builds the mental model and development sequence a new RAP developer needs before studying individual artifacts in depth: an end-to-end chain running from tables through CDS root/child views, the behavior definition, the behavior pool, projections, the service definition, the service binding, and finally the Fiori UI.

The example is a managed Travel business object with a root Travel entity and composed child Booking rows; UUID keys make create scenarios and offline-safe key assignment straightforward, while draft support gives users a modern edit-and-activate experience. Build it once completely, because every later topic deepens one step of this same chain.

The names used here are illustrative — RAP syntax, available annotations, draft capabilities, service-binding labels, released APIs, and generated handler signatures all differ across ABAP platform and SAP S/4HANA releases, so ADT's own syntax completion and the documentation for your installed release should be treated as authoritative.

Before starting, work in ABAP Development Tools (ADT) in Eclipse, create the artifacts in a transportable package, assign the correct transport request, and confirm the target landscape before writing code — local packages are suitable only for disposable experiments.

Check the package's ABAP language version: in an ABAP Cloud language-version package, you may only consume APIs released for the applicable use contract, and a technically visible SAP table, class, CDS entity, or function module is not automatically allowed — use released business objects, CDS entities, classes, and extension points, since a custom wrapper around an unreleased SAP object does not make the dependency clean-core compliant.

You'll also need authorization to create and activate repository objects, to publish or preview a service binding where the platform requires it, and to test the resulting service, and naming, package ownership, transport ownership, and the authorization concept should all be decided before implementation begins.

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.