You want to define the following CDS view entity with an input parameter:
define view entity Z_CONVERT
with parameters i_currency : ???
Which of the following can you use to replace ????
(Select 2 correct answers)
A, D
Explanation:
CDS view parameters must be defined with types that are visible in the ABAP Dictionary.
A . Built-in ABAP Dictionary type → Supported (e.g., CURR, CHAR).
D . Data element → Supported, as data elements are dictionary-level types.
B . Built-in ABAP type (like i, string) → Not supported directly, CDS requires dictionary-compatible
types.
C . Component of a structure → Not supported directly; parameters cannot reference structure
components.
This ensures that CDS definitions remain database-compatible and semantically rich, which is critical
for RAP services.
Verified Study Guide Reference: ABAP CDS Development Guide – Defining View Parameters.
Which internal table type allows unique and non-unique keys?
B
Explanation:
Sorted tables can be declared with unique keys (ensuring no duplicates) or with non-unique keys
(allowing duplicates).
Hashed tables only allow unique keys.
Standard tables allow non-unique keys only.
Thus, sorted internal tables are the only type that can be configured with both unique and non-
unique keys.
Verified Study Guide Reference: ABAP Dictionary and ABAP Cloud Programming Guide – Internal
Table Types.
Constructors have which of the following properties?
(Select 2 correct answers)
A, B
Explanation:
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 of the following Core Data Services built-in functions returns a result of type INT4?
(Select 2 correct answers)
C, D
Explanation:
dats_add_days → Returns the number of days added/subtracted to a given date → INT4.
dats_days_between → Returns the number of days between two dates → INT4.
dats_add_months → Returns a DATE, not INT4.
dats_is_valid → Returns a BOOLEAN (flag), not INT4.
In CDS, these date functions are used for calculations in queries, supporting business logic
pushdown.
Verified Study Guide Reference: ABAP CDS Functions Reference – Date and Time Functions.
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?
B
Explanation:
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.
Which of the following enforce ABAP Cloud rules?
(Select 2 correct answers)
C, D
Explanation:
ABAP Cloud rules are enforced by:
ABAP Compiler → performs syntax checks against ABAP Cloud rules.
ABAP Runtime Checks → ensure runtime compliance with rules (e.g., avoiding calls to unreleased
APIs).
Release contracts and platform reuse services are enablers but do not enforce rules automatically.
Verified Study Guide Reference: ABAP Cloud Documentation – Rule Enforcement via Compiler and
Runtime.
Which of the following are personas under the SAP S/4HANA Cloud Extensibility Framework?
(Select 2 correct answers)
B, D
Explanation:
SAP S/4HANA Cloud Extensibility Framework defines personas for extension activities:
Business Experts → implement extensions with business knowledge (using in-app extensibility).
Citizen Developers → build extensions with low-code/no-code tools.
Report Writer and Workflow Administrator are roles, but not part of extensibility personas.
Verified Study Guide Reference: ABAP Cloud Extensibility Guide – Personas in SAP S/4HANA Cloud.
Which language is used to add or change data of a business object in RAP?
B
Explanation:
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).
You want to document a global class with ABAP Doc. What do you need to consider?
(Select 3 correct answers)
B, D, E
Explanation:
ABAP Doc is the integrated documentation system for classes, interfaces, and methods. Rules:
Position → Must be placed directly after the declarative statement (B).
Translatable → ABAP Doc content can be translated (D).
Syntax → Each line must start with ! (E).
HTML tags (A) and repository links (C) are not supported.
Verified Study Guide Reference: ABAP Development Tools (ADT) Documentation – ABAP Doc
Annotations and Rules.
Given this code,
INTERFACE if1.
METHODS m1.
ENDINTERFACE.
CLASS cl1 DEFINITION.
PUBLIC SECTION.
INTERFACES if1.
METHODS m2.
ENDCLASS.
" in a method of another class
DATA go_if1 TYPE REF TO if1.
DATA go_cl1 TYPE REF TO cl1.
go_cl1 = NEW #( ... ).
go_if1 = go_cl1.
What are valid statements? (Select 3 correct answers)
A, D, E
Explanation:
An interface reference (go_if1) can point to any object of a class that implements that interface.
Therefore, creating an instance with NEW cl1( … ) and directly assigning it to the interface-typed
variable is valid (A).
Type inference with NEW #( … ) cannot infer a class from an interface-typed target (no unique
implementing class), so (B) is invalid.
An interface reference exposes only the interface’s methods; it cannot call class-specific methods (so
(C) is invalid).
Calling interface method m1 via the interface reference is valid (D).
From the class reference, the interface method can be called (implicitly or explicitly qualified) as
go_cl1->if1~m1( … ) (E).
This reflects ABAP OO rules in ABAP Cloud (method visibility via static type, interface
implementation, and explicit interface method calls).
Study Guide Reference: ABAP Objects—Interfaces & Class Constructors; ABAP Cloud Back-End
Developer—OO fundamentals.