ABAP - Keyword Documentation →  ABAP - ABAP Release News →  News for ABAP Release 7.8x →  News for ABAP Release 7.89 →  ABAP RESTful Application Programming Model in ABAP Release 7.89 → 
Mail Feedback

RAP BDL in ABAP Release 7.89


1. Define Authorization Context

2. With Privileged Mode Disabling

3. Variants to Define a RAP Own Authorization Context

4. BDEF Extensions for RAP BOs

5. BDEF Extensions for RAP Projection BOs

6. New Version of BDEF Strict Mode

7. Draft Query Views for Draft-Enabled RAP BOs

8. result selective for Deep Result Types

9. RAP Business Events

10. RAP Save Actions with Phase Specification

11. Repeatable RAP Actions and Functions



Modification 1  

Define Authorization Context

It is now possible to define authorization contexts in a RAP behavior definition using the keyword define authorization context. There are different ways to activate an authorization context. When activated, all authorization objects listed in the respective context are always successful, that means, the respective authorization checks are skipped.



Modification 2  

With Privileged Mode Disabling

The new syntax with privileged mode disabling supersedes the deprecated version with privileged mode. The new syntax version disables an authorization contexts when accessing the RAP BO in question with a privileged EML call.



Modification 3  

Variants to Define a RAP Own Authorization Context

New variants are available for defining a RAP own authorization context:





Modification 4  

BDEF Extensions for RAP BOs

BDEF extensions for RAP BOs can be defined using the statement extension.



Modification 5  

BDEF Extensions for RAP Projection BOs

BDEF projection extensions for RAP projection business objects can be defined using the statement extension for projection.



Modification 6  

New Version of BDEF Strict Mode

A new version of BDEF strict mode is available: Strict mode version 2, specified using strict(2). It applies even more syntax checks than the first version.



Modification 7  

Draft Query Views for Draft-Enabled RAP BOs

The new syntax addition query is available to define a draft query view for a draft-enabled RAP BO. This addition is optional. Only in the context of RAP extensibility is it a mandatory prerequisite for the C0 release of the CDS behavior definition in question.



Modification 8  

result selective for Deep Result Types

The addition result selective is now also possible for deep result types. It can be specified for an output parameter of a RAP action or RAP function to return only parts of the result structure.



Modification 9  

RAP Business Events

Using RAP business events, the ABAP RESTful Application Programming Model now offers native support for event-driven architecture. RAP business events are defined with the language element event. A flat or deep output parameter can optionally be specified.



Modification 10  

RAP Save Actions with Phase Specification

RAP save actions can now specify one or both of the RAP saver methods finalize or adjustnumbers in brackets to indicate the RAP saver method during which the action can be executed.



Modification 11  

Repeatable RAP Actions and Functions

RAP actions and RAP functions can be defined as repeatable. This syntax addition explicitly allows multiple executions of the same action or function on the same RAP BO entity instance within the same ABAP EML or OData request. The BDEF derived type of a repeatable action or function has an extra %cid component, in contrast to the BDEF derived type of non-repeatable actions or function.