RAP (RESTful Application Programming) Architecture Cheatsheet

👤 Author: Andrea Antonio Perrelli (10x SAP Certified Solution Architect) 📅 Updated: October 2026 🎯 Focus: SAP S/4HANA & SAP BTP Clean Core

RAP is the exclusive paradigm for creating transactional, cloud-ready business objects in ABAP Cloud.

RAP Architecture Layers

  1. Database Layer: Tables (zsales_header, zsales_item)
  2. Data Model Layer: CDS Interface Views (ZI_SalesOrderTP)
  3. Behavior Definition: BDEF (ZI_SalesOrderTP) - defines capabilities (create, update, delete, actions, validations, determinations)
  4. Behavior Implementation: ABAP Class Pool (BP_I_SALESORDERTP)
  5. Projection Layer: CDS Projection View (ZC_SalesOrderTP) + Behavior Projection
  6. Service Definition: Exposes entities to protocol (expose ZC_SalesOrderTP)
  7. Service Binding: Binds to OData V4 (UI or Web API)

Managed vs. Unmanaged RAP

Feature Managed RAP Unmanaged RAP
Best For Greenfield applications, standard DB tables Brownfield legacy refactoring, wrapping existing BAPIs
CRUD Implementation Automated by RAP Framework runtime Handcrafted by developer in Behavior Pool
Draft Handling Built-in zero-code draft support Developer handles draft lifecycle
Effort Minimal (declarative) Higher (requires custom lock/buffer management)

For step-by-step RAP implementations with complete code listings, see the Definitive Guide on Leanpub: https://leanpub.com/abap-cloud-clean-cor

OFFICIAL MASTER PUBLICATION

Take Your Clean Core Architecture to Production

This cheat sheet is an excerpt from The Definitive Guide to ABAP Cloud & Clean Core Extensibility. Get all 40 Retina architecture diagrams, 61 production-grade code patterns, and the complete BTP companion.

14-day 100% money-back guarantee • Instant digital delivery • Corporate VAT invoice provided