ABAP for Cloud Development
AS ABAP Release 914, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP RAP Business Objects → RAP - Behavior Definitions → RAP - BDL for Behavior Definitions → RAP - Managed and Unmanaged Behavior Definitions → RAP - BehaviorDefinitionHeader →
RAP - BDEF Strict Mode
Syntax
... strict;
strict(2);
Description
BDEF strict mode applies additional syntax checks to RAP behavior definitions. It ensures, for example, that no outdated syntax is used, implicitly available operations are declared explicitly, and the RAP BO in question complies to best practices. BDEF strict mode is provided by the RAP framework, no implementation in an ABAP behavior pool is required.
Currently, the following versions of strict mode are available:
Strict mode version 2 covers all rules from strict mode version 1, plus some additional checks.
It is recommended that the most recent version of strict mode is used. In some scenarios, strict mode is even mandatory, for example when declaring a RAP BO as extensible
or when releasing a BDEF as released API.
This documentation handles all statements according to the requirements of BDEF strict mode.
Availability
BDEF strict mode is available for RAP behavior definitions of the following BDEF implementation types:
managed
unmanaged
projection
: To use BDEF strict mode in a RAP projection behavior definition, the base BDEF must use strict mode as a prerequisite. Base and projection must use the same version of strict mode.abstract
Further Information
Development guide for the ABAP RESTful Application Programming Model, section Strict Mode.