After you created a database table in the RESTful Application Programming model, what do you create next?
In the ABAP RESTful Application Programming Model (RAP), development follows a bottom-up approach. The sequence starts with the database table (persistence), followed by creating a data model view (interface view), and then a projection view.
The projection view is the next artifact after the database table because it exposes only the fields needed for the app, aligning with the encapsulation principle of RAP. This ensures that only the required subset of the underlying data model is made available.
Verified Study Guide Reference: ABAP RAP Development Guide -- Data Modeling and Projection Views.
You want to check the behavior of an ordinary class ZCL_ORDINARY with class LTCL_TEST. How do you specify LTCL_TEST as a test class?
ABAP Unit test classes are declared with the addition FOR TESTING in the class definition. RAP test guides also show the same ABAP Unit pattern for local test classes:
CLASS ltcl_sc_r_agency DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
This is the canonical way to mark an ABAP class as a test class.
Which of the following pre-defined ABAP data types is a complete data type?
p (packed number) is a complete type, as it includes decimal places and precision definition.
d (date), c (character), n (numeric text) are incomplete types; they require length specification.
Study Guide Reference: ABAP Keyword Documentation -- Predefined ABAP Types.
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.
===========
You have a superclass super1 and a subclass sub1 of super1. Each class has an instance constructor and a static constructor. The first statement of your program creates an instance of sub1.
In which sequence will the constructors be executed?
Execution order when creating an instance of a subclass:
Class constructor of the superclass (super1) executes first.
Class constructor of the subclass (sub1) executes second.
Then the instance constructor of the superclass (super1) executes.
Finally, the instance constructor of the subclass (sub1) executes.
This sequence guarantees that both the static (class-level) and instance-level initializations of the superclass are complete before the subclass is constructed.
Verified Study Guide Reference: ABAP Objects Programming Guide -- Class and Instance Constructor Execution Order.
Robert Adams
17 days agoMichael Perez
1 month agoSharon Scott
2 months agoAnthony Davis
2 months agoThomas Parker
3 months agoGerald Williams
3 months agoGeorge Scott
4 months agoPaul Roberts
4 months agoAmanda Garcia
4 months agoNathan Smith
4 months agoKimberly Scott
4 months agoAnthony Thompson
3 months agoHeather Morris
3 months agoRossana
7 months agoErick
7 months agoFairy
8 months agoLyda
8 months agoMona
8 months agoTyisha
8 months agoTamar
9 months agoNida
9 months agoTambra
9 months agoCherilyn
9 months agoLorean
10 months agoAnnamae
10 months agoAnnett
10 months agoMauricio
10 months agoStevie
11 months agoHorace
11 months agoMerlyn
11 months agoHelga
11 months agoCaitlin
12 months agoJanessa
12 months agoMaile
12 months ago