SAP ABAP RESTful Application Programming Managed Scenario

by | Aug 1, 2021 | ABAP RAP

Home » SAP » ABAP » ABAP RAP » SAP ABAP RESTful Application Programming Managed Scenario

Preface – This post is part of the SAP ABAP RAP series.


Let us consider we have been given a green field and asked us to develop a villa from scratch with our own customization. So, what steps will be involved in it? We need to design the floor-plan of the villa, the sections we want to include in the house like pool area, a garden, a jogging track etc. And we will proceed with selecting materials, selecting vendors, enforcing conciliation and orders and many more steps. Similarly, the RAP’s managed scenario provides the greenfield development for our business object.

In the managed scenario, the implementations of behavioral elements like Create/Update/Delete are managed by the RAP framework itself. However, to implement complex logic like validations, determination or some sort of actions (Submit, Approval, Reject etc) on the business entity, you need to add the ABAP logic for it in implementing classes.

How to implement managed scenario?

Pre-requisite: Create CDS views.


  1. Right-click on root CDS view and select NEW BEHAVIOUR DEFINITION.
  2. Add package details, description.
  3. Select implementation type MANAGED. This is most important part of creating the managed implementation.
  4. Click on Next and then click on Finish.

Points to consider

  1. It is available only on S/4 HANA Cloud.
  2. The framework will handle the CRUD operations by itself.
  3. It is more like BOPF where we are responsible to define what tables should be updated at the end.
  4. You can implement DETERMINATIONS, VALIDATIONS, and ACTIONS by adding logic in implementing class.
  5. The managed scenario does not support LATE NUMBERING. Late numbering refers to the late number assignment of primary key fields. The final value is assigned just before the data is saved to the database. We will learn more about in unmanaged scenario of RAP.
  6. We implement EARLY NUMBERING in the managed scenario. Using early numbering will draw the UUID automatically during the CREATE request by RAP runtime.
    Early numbering is only possible with the key field of type raw(16) (UUID) of the business object.
  1. The early numbering should be defined at BEHAVIOUR DEFINITION level.
  2. Actions: Instance factory actions are not supported.


Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.