Implementing Database Updates Using Business Objects Flashcards
What is a business object in the ABAP RESTful application programming model?
A business object defines an entity, like a travel agency, with CDS views defining its structure and behavior definitions specifying operations like create, update, and delete, along with validations and actions.
What does the behavior definition of a business object describe?
the allowed standard operations (e.g., create, update, delete) and defines checks (validations) performed when data is created or changed.
What does the behavior implementation of a business object contain?
The actual specific code for validations, determinations, and actions, as well as code for standard operations depending on the implementation scenario.
How is the behavior implementation of a business object structured?
The behavior implementation consists of one or more ABAP classes. The global class is declared in the behavior definition, and the actual coding is contained in a local class within the global class definition.
What is a validation in the context of a business object?
A validation is a check performed by the runtime when data is changed. It ensures data correctness during record creation or modification based on defined triggers and conditions.
What is the purpose of the behavior definition’s link to the database table?
The link between the behavior definition and the database table specifies how the data is stored and managed, including information about active data, drafts, locking, authorization checks, and concurrency control.
What is the behavior pool in the context of a business object?
The behavior pool refers to the global class that serves as the container for the behavior implementation of a business object. It is declared in the behavior definition and contains the actual coding specific to the business object’s behavior.
What is a Business Service in the ABAP RESTful application programming model?
A Business Service is a way to consume a Business Object, typically through an OData UI Service for an SAP Fiori Application.
What is Entity Manipulation Language (EML)?
a set of ABAP statements used to access Business Objects from inside ABAP code.
Why should a Business Object not be consumed directly?
consumers should access Business Object Projections (BO Projections) and Business Object Interfaces (BO Interfaces) to ensure stability and encapsulation.
What is a BO Projection?
a service-specific projection of a Business Object, specifying a subset of its data and operations available through the service.
What is a BO Interface?
A BO Interface provides stable access to a Business Object’s data and operations, typically released for use in other software components. Accessing a BO Interface is recommended for ABAP code using EML.
How can you identify a BO Projection or BO Interface?
BO Projections start with the keyword “projection” in their behavior definitions, while BO Interfaces start with the keyword “interface”.
What is the naming convention for BO Projections, BO Interfaces, and BO Definitions in SAP developments?
BO Projections <namespace>C_<...>,</namespace>
BO Interfaces <namespace>I_<...></namespace>
BO Definitions <namespace>R_<...>.</namespace>
What is EML?
EML, or Entity Manipulation Language, consists of statements used to manipulate the data of a business object.