Constructors have which of the following properties?
(Select 2 correct answers)
A . Automatic execution A constructor (CONSTRUCTOR) is automatically invoked when an instance of a class is created.
B . Importing parameters Constructors can have importing parameters to initialize the object with values.
C . First method called by client Not correct, because constructors are called by the system, not the client explicitly.
D . Returning parameters Constructors cannot return values; they only set up the object.
This behavior is consistent across ABAP Cloud OOP classes, ensuring encapsulated initialization logic.
Verified Study Guide Reference: ABAP Objects Guide -- Class Constructors and Instance Constructors.
Which models must you use to develop artifacts that expose ABAP-based backend services based on semantic data models? (Select 2)
RAP defines the architecture for OData services based on CDS semantic data models and ABAP behavior---this is the current model.
The predecessor is the ABAP Programming Model for SAP Fiori (BOPF/CDS-based), which can be migrated into RAP; it also exposes ABAP backend logic via CDS semantics.
ABAP Cloud Development Model (B) is the rule set/contract (release contracts, checks), not the service-building model. CAP (C) targets Node.js/Java on BTP, not ABAP-based backend services.
In a subclass sub1, you want to redefine a component of a superclass super1.
How do you achieve this?
Note: There are 2 correct answers to this question.
To redefine a component in a subclass:
The component (method) in the superclass must be defined with the FOR REDEFINITION addition.
In the subclass, you use the REDEFINITION clause in the method declaration and implement the method in the subclass to override the superclass behavior.
Thus:
Option A is correct because the method declaration in sub1 must include the REDEFINITION addition.
Option D is correct because the actual redefined method implementation must be provided in the subclass sub1.
Option B is incorrect because the component is not re-implemented in the superclass.
Option C is incorrect because REDEFINITION is not added in the superclass, but FOR REDEFINITION is.
===========
Which language is used to add or change data of a business object in RAP?
In RAP, changes to business object data are performed using Entity Manipulation Language (EML).
It provides ABAP statements such as READ ENTITIES, MODIFY ENTITIES, CREATE, and DELETE for RAP BOs.
EML is the cloud-compliant equivalent of SQL DML (insert/update/delete) but tailored to RAP's transactional consistency.
Verified Study Guide Reference: RAP Programming Model -- Entity Manipulation Language (EML).
In RESTful Application Programming, a business object contains which parts?
Note: There are 2 correct answers to this question.
In the RAP model, a Business Object (BO) is composed of the following key parts:
A CDS view, which defines the data model layer (entity structure, projections, associations).
A Behavior Definition (BDEF), which defines the behavior layer -- what operations can be performed (create, update, delete, validations, determinations).
Therefore:
Option B and C are correct.
Option A is incorrect because 'Process definition' is not a RAP construct; process logic is handled via behavior implementation and determinations.
Option D is incorrect because 'Authentication rules' are managed externally (e.g., via IAM, authorizations), not inside the BO.
===========
Currently there are no comments in this discussion, be the first to comment!
Rossana
3 months agoErick
3 months agoFairy
4 months agoLyda
4 months agoMona
4 months agoTyisha
4 months agoTamar
4 months agoNida
5 months agoTambra
5 months agoCherilyn
5 months agoLorean
6 months agoAnnamae
6 months agoAnnett
6 months agoMauricio
6 months agoStevie
7 months agoHorace
7 months agoMerlyn
7 months agoHelga
7 months agoCaitlin
8 months agoJanessa
8 months agoMaile
8 months ago