ABAP RAP Model

ABAP RESTful Application Programming Model

RAP Generator

Background of the RAP Generator

Modeling RAP objects generally follows the same pattern. We can let a tool generate the basic scaffolding for us. This provides a solid starting point for application development in a very short time.

The generator creates all relevant artifacts for a given data model (CDS views, behavior definitions, draft objects, bindings, etc.).

Variants of the RAP Generator

There are several ways to use a RAP generator — built-in tooling in ADT or external/community projects distributed via GitHub.

In ADT

Available from specific releases (since around 2022). This means it may not yet be present on older platforms such as EHX.

• Demo in the cloud is possible depending on your environment.

Installable as a GitHub application

The community "U-Boot" project (blog post: https://blogs.sap.com/2020/05/17/the-rap-generator/) by Andre Fischer provides a generator you can install — note that this is a community project and not an official SAP product.

ADT: Business Objects

  • For a single table / entity
  • Single-table generation
  • Also generates DRAFT tables

ADT: Customizing

  • Replacement for maintaining ViewClusters
  • Also generates maintenance objects

GIT: Business Objects

  • Multiple entities / tables in one definition
  • Designed for training scenarios
  • Definitions provided in JSON
  • New: generation of the JSON via a RAP UI

RAP Generator in ADT

Invoke via the context menu on DB tables: Generate ABAP Repository Objects

On EHX: