raplisted
Install: claude install-skill williamcorrea23/sap-router-skill
# RESTful ABAP Programming (RAP)
Modern ABAP programming model for S/4HANA and ABAP Cloud.
## Architecture Layers
```
┌─────────────────────────────────────┐
│ Service Binding (OData V4) │ UI Layer
├─────────────────────────────────────┤
│ Service Definition (SRVD) │
├─────────────────────────────────────┤
│ Behavior Implementation (ABAP) │ Transactional Layer
├─────────────────────────────────────┤
│ Behavior Definition (BDEF) │
├─────────────────────────────────────┤
│ CDS Data Model (View Entity) │ Data Layer
├─────────────────────────────────────┤
│ Database Table (DDIC) │
└─────────────────────────────────────┘
```
## Behavior Definition (BDEF)
```abap
" Managed scenario — framework handles CRUD
managed implementation in class zbp_i_product unique;
define behavior for z_i_product alias Product
persistent table zproduct
lock master
authorization master ( instance )
etag master LocalChangedTime
{
create;
update;
delete;
field (mandatory) MaterialType, Description;
field (readonly) ProductGuid;
determination setDescription on modify { create; }
validation checkMaterialType on save { create; update; }
action cancelProduct result [1] $self;
mapping for zproduct
{
ProductGuid = product_guid;
Material = material;
MaterialType = material_type;
Description = description;
}
}
```
## Behavior Implementation
```abap
CLASS lhc_product DEFINITION INHERITI