SAP CDS BDEF



Get Example source ABAP code based on a different SAP table
  



ABAP_RAP - Behavior Definitions
A RAP behavior definition (BDEF for short) is an ABAP repository object that defines the transactional behavior of a RAP business object in the context of ABAP RAP . The transactional behavior defines and restricts how a RAP BO can be accessed by a RAP BO consumer. A BDEF is always based on a CDS data model that consists of at least one root entity and it refers to the root entity. A root entity can have no more than one BDEF.
A RAP behavior definition consists of a header part and at least one entity behavior definition. The entity behavior definition, in turn, is made up of entity characteristics and a body. One or more authorization contexts can optionally be defined.
The following image shows the structure of a RAP behavior definition:
IMAGE ABDOC_BDEF_STRUCTURE.png 666 540
Further details on the parts of a RAP behavior definition can be found in the following sections:
BDEF header
entity behavior definition
entity behavior characteristics
entity behavior body
authorization context

ABAP_FURTHER_INFO
An exhaustive description of RAP business objects, behavior characteristics, and transactional behavior can be found in the development guide for the RESTful Application Programming Model, in section Business Object.