RAP (RESTful Application Programming) Architecture Cheatsheet
RAP is the exclusive paradigm for creating transactional, cloud-ready business objects in ABAP Cloud.
RAP Architecture Layers
- Database Layer: Tables (
zsales_header,zsales_item) - Data Model Layer: CDS Interface Views (
ZI_SalesOrderTP) - Behavior Definition: BDEF (
ZI_SalesOrderTP) - defines capabilities (create,update,delete, actions, validations, determinations) - Behavior Implementation: ABAP Class Pool (
BP_I_SALESORDERTP) - Projection Layer: CDS Projection View (
ZC_SalesOrderTP) + Behavior Projection - Service Definition: Exposes entities to protocol (
expose ZC_SalesOrderTP) - 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