Sap Rap (Restful Application Programming)
Sap Rap (Restful Application Programming)
• Clear Separation of Concerns: Data model, behavior, and service exposure are well-
structured.
Key Benefits:
2. RAP Architecture
• Behavior Model: Defines operations like create, read, update, and delete (CRUD) along
with actions and validations.
• Service Model: Exposes the behavior and data models as OData services.
Scenarios in RAP:
• Unmanaged Scenario: Developers handle the business logic and data consistency.
3. Core Concepts
• Projection View: Provides a specific view of the data model, often for service exposure.
The ABAP class where business logic is implemented for the defined behavior.
Service Definition:
Defines which data and behavior models are exposed in the service.
Service Binding:
Description : abap.char(50);
OrderDate : abap.dats;
Status : abap.char(1);
create;
update;
delete;
action approve;
method approve.
endmethod.
endclass.
• Service Definition
expose ZI_PurchaseOrder;
• Service Binding:
Draft Capabilities:
Late Numbering:
Concurrency Control:
6. Best Practices
• Structure Your Code: Maintain clear separation of data, behavior, and service.