SAP BDL STRICT 1



Get Example source ABAP code based on a different SAP table
  



ABAP_RAP - strict

ABAP_SYNTAX
...
strict;
...

What does it do?
The addition strict enables BDEF strict mode, version 1.
strict must always appear as the second line in a RAP behavior definition.
A complete list of additional syntax requirements in BDEF strict mode is provided in the development guide for the ABAP RESTful Application Programming Model, section Strict Mode - Implementation Requirements.
Related information:
RAP BDL - BDEF Strict Mode
RAP BDL - strict(2)

ABAP_EXAMPLE_VX5 - Managed
The following RAP behavior definition demonstrates the syntax for enabling strict mode. It is mandatory that the keyword strict is the second statement of the behavior definition.
In this example, strict mode enforces authorization control.
ABAP_NOTE This example is intentionally kept short and simple and serves demonstration purposes only. The RAP handler methods of the ABAP behavior pool are not implemented here.
BDEF DEMO_RAP_STRICT
ABAP_EXAMPLE_END

ABAP_EXAMPLE_VX5 - Unmanaged
The following RAP behavior definition shows an unmanaged BDEF with strict mode. It is mandatory that the keyword strict is the second statement of the behavior definition.
In this example, strict mode enforces the following:
Each entity must be defined as lock master or lock dependent
Each entity must be defined as authorization master or authorization dependent
The child entity must explicitly specify the to-parent association
The field key_field, which is used in the ON condition of the to-parent association _parent, must be specified as readonly .
ABAP_NOTE This example is intentionally kept short and simple and serves demonstration purposes only. The RAP handler methods of the ABAP behavior pool are not implemented here.
BDEF DEMO_UNMANAGED_ROOT_STRICT
ABAP_EXAMPLE_END