Introduction to RAP

10 min read

What is RAP?

SAP RESTful Application Programming Model (RAP) is SAP's strategic development framework for building enterprise applications in SAP S/4HANA and ABAP Cloud.

RAP provides a model-driven approach that separates data modeling, business logic and service exposure, enabling developers to build Fiori applications faster and with less custom code.

SAP Recommendation

RAP is SAP's preferred programming model for new developments in SAP S/4HANA Public Cloud and ABAP Cloud environments.

Why RAP?

Traditional ABAP development required developers to manually create database tables, business logic, OData services and UI integrations.

RAP simplifies this process through a model-driven architecture that automatically generates much of the required application framework.

SAP RAP Architecture
High-Level SAP RAP Architecture

Key Components of RAP

  • CDS View Entities – Define the business data model.
  • Behavior Definitions – Define business behavior.
  • Behavior Implementations – Implement custom logic.
  • Service Definitions – Expose business objects.
  • Service Bindings – Publish OData services.
  • Fiori Elements – Generate enterprise UIs.

Sample RAP CDS View

Every RAP application starts with a CDS View Entity that represents the business data model.

ZI_EMPLOYEE
define root view entity ZI_EMPLOYEE
  as select from zemployee
{
  key employee_id,
      first_name,
      last_name,
      department
}

Best Practice

Always start RAP development with a well-designed CDS data model. A strong CDS foundation significantly reduces future rework.

RAP Architecture Layers

RAP follows a layered architecture that separates responsibilities between data modeling, business behavior and service exposure.

RAP Layers Overview

LayerObjectPurpose
Data ModelCDS View EntityBusiness Data Model
BehaviorBehavior DefinitionBusiness Logic
ServiceService DefinitionExpose BO
ExposureService BindingPublish OData
UIFiori ElementsGenerate UI

Learning Outcome

After completing this learning path you will be able to create, expose and extend RAP Business Objects using SAP ABAP Cloud.

Next Steps

In the next lesson, we will explore CDS View Entities, which form the foundation of every RAP Business Object.