SAP c-abapd-2507 practice test

SAP Certified Associate - Back-End Developer - ABAP Cloud

Last exam update: Nov 18 ,2025
Page 1 out of 6. Viewing questions 1-15 out of 80

Question 1

When defining a METHOD, which parameter type can only have 1 value?

  • A. IMPORTING
  • B. EXPORTING
  • C. CHANGING
  • D. RETURNING
Mark Question:
Answer:

D


Explanation:
In ABAP Object-Oriented Programming within ABAP Cloud, methods can define multiple parameters
of type IMPORTING, EXPORTING, or CHANGING. However, for RETURNING parameters, only one
value is permitted per method.
This restriction ensures that RAP BOs and ABAP Cloud classes expose methods with clear,
unambiguous outputs, aligning with best practices of encapsulation and functional programming
design.
IMPORTING → multiple allowed
EXPORTING → multiple allowed
CHANGING → multiple allowed
RETURNING → exactly one allowed
Verified Study Guide Reference: ABAP Objects Programming Guide (Methods), ABAP Cloud Back-End
Developer Documentation – Method Signature Rules.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 2

In a class you use the statement DATA var TYPE …
What may stand in place of the type?
(Select 2 correct answers)

  • A. The name of a type defined privately in class ZCL_CLASS_A
  • B. The name of a domain from the ABAP Dictionary
  • C. The name of a type defined privately in another class
  • D. The name of a data element from the ABAP Dictionary
Mark Question:
Answer:

A, D


Explanation:
The ABAP DATA statement declares a variable with an assigned type.
A . Private type in the same class (ZCL_CLASS_A) → Allowed. A class can use its own local type
definitions, declared using TYPES.
B . Domain from ABAP Dictionary → Not allowed directly. Domains define technical attributes but
cannot be referenced directly in DATA; they must be wrapped in a data element.
C . Type defined privately in another class → Not accessible, since private definitions are
encapsulated.
D . Data element from ABAP Dictionary → Allowed, because data elements are global dictionary
objects.
This follows ABAP Cloud extensibility rules, ensuring encapsulation and strict typing.
Verified Study Guide Reference: ABAP Dictionary Development Guide, ABAP Cloud Back-End
Developer Learning Material (Variable Typing and Encapsulation).

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 3

After you created a database table in the RESTful Application Programming model, what do you
create next?

  • A. A data view
  • B. A service definition
  • C. A metadata extension
  • D. A projection view
Mark Question:
Answer:

D


Explanation:
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.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 4

What are some principles of encapsulation?
(Select 2 correct answers)

  • A. Attributes can be changed through public class methods.
  • B. Attributes can be changed by the client program directly.
  • C. Attributes cannot be changed.
  • D. Attributes can only be changed by the class.
Mark Question:
Answer:

A, D


Explanation:
Encapsulation in ABAP OO and ABAP Cloud ensures that internal object details are hidden from
outside consumers.
A . Attributes can be changed through public methods → Correct, because controlled access is
provided through getter/setter or other methods.
B . Attributes can be changed by the client program directly → Incorrect, this violates encapsulation.
C . Attributes cannot be changed → Incorrect, they can be changed, but only via allowed
mechanisms.
D . Attributes can only be changed by the class itself → Correct, ensuring business logic consistency.
This aligns with RAP behavior definitions (BDEF) where internal attributes are encapsulated and only
manipulated through behavior implementation methods.
Verified Study Guide Reference: ABAP Objects Programming Guide – Encapsulation Principles.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 5

Given the following ABAP code, which exception will be raised on execution?
CONSTANTS c_char TYPE c LENGTH 1 VALUE ' '.
TRY.
result = 2 / c_char.
out->write( |Result: { result }| ).
CATCH cx_sy_zerodivide.
out->write( |Error: Division by zero is not defined| ).
CATCH cx_sy_conversion_no_number.
out->write( |Error: { c_char } is not a number!| ).
CATCH cx_sy_itab_line_not_found.
out->write( |Error: Itab contains less than { 2 / c_char } rows| ).
ENDTRY.

  • A. cx_sy_zerodivide
  • B. cx_sy_conversion_no_number
  • C. cx_sy_itab_line_not_found
Mark Question:
Answer:

B


Explanation:
Here, c_char is defined as a character type with a space ' ' as its value.
When attempting 2 / c_char, ABAP tries to interpret the character ' ' as a number. Since it is not a
numeric value, ABAP raises the conversion error cx_sy_conversion_no_number.
cx_sy_zerodivide would occur only if the denominator was zero numeric.
cx_sy_itab_line_not_found applies to internal table access errors, not relevant here.
This is consistent with ABAP Cloud runtime exception handling, where strict typing and error
categories are clearly defined.
Verified Study Guide Reference: ABAP Keyword Documentation – Exception Classes in Arithmetic
Operations.

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 6

Given the following data definitions:
DATA: text TYPE string VALUE 'Date 1972-04-01 is in ISO format'.
DATA: regex TYPE string VALUE '[0-9]{4}(-[0-9]{2})(2}'.
In which of the following functions can you use regular expressions?
(Select 3 correct answers)

  • A. reverse( val = text pcre = regex )
  • B. match( val = text pcre = regex )
  • C. condense( val = text pcre = regex )
  • D. matches( val = text pcre = regex )
  • E. find( val = text pcre = regex )
Mark Question:
Answer:

B, D, E


Explanation:
In ABAP Cloud, string functions that support regular expressions (PCRE) include:
match( ) → returns the first substring matching the regex.
matches( ) → checks if the whole string matches the regex.
find( ) → finds a substring based on regex pattern.
Functions such as reverse( ) and condense( ) do not support regex patterns; they are purely string
manipulation utilities.
Verified Study Guide Reference: ABAP Keyword Documentation – String Functions with Regular
Expressions.

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 7

Which of the following custom code use cases falls under Tier 1 extensibility guidelines?

  • A. Implement a user or customer exit, for example SAPMV45A.
  • B. Create a custom field on a DB table or CDS view via a released extension include.
  • C. Apply an SAP note with manual corrections, for example a DDIC object from SAP Basis.
  • D. Create a wrapper class around SAP objects that have not been released yet.
Mark Question:
Answer:

B


Explanation:
Tier 1 extensibility in ABAP Cloud corresponds to the safe and upgrade-stable extension layer.
Adding custom fields to released DB tables or CDS views via released extension includes is fully
supported.
Using classic user exits (A), manual note corrections (C), or wrappers for unreleased APIs (D) belong
to Tier 2 or Tier 3, and are not part of Tier 1 safe extensibility.
This guarantees that custom code in Tier 1 is cloud-ready, upgrade-stable, and based only on
released extension points and APIs.
Verified Study Guide Reference: ABAP Cloud Extensibility Model – Three-Tier Extensibility Rules.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 8

How can you control data access of a business user?
(Select 3 correct answers)

  • A. To control the general access implicitly via an Access Control object (define role).
  • B. To control the "Create, Update, and Delete access" via explicit check using AUTHORITY-CHECK.
  • C. To control the "Create, Update, and Delete access" implicitly via an Access Control object (define role).
  • D. To control the "Read access" implicitly via an Access Control object (define role).
  • E. To control the "Read access" via explicit check using AUTHORITY-CHECK.
Mark Question:
Answer:

B, C, D


Explanation:
In ABAP Cloud / RAP, authorization control follows a structured approach:
Read access → can be controlled implicitly via an Access Control object (D).
Create, Update, Delete access → can be controlled both:
Explicitly with AUTHORITY-CHECK (B),
Or implicitly through Access Control object definitions (C).
General implicit control via Access Control (A) or explicit checks for Read (E) are not correct because
the system differentiates access levels precisely.
This ensures that business users can only access the data they are authorized for, following RAP’s
security-by-default principle.
Verified Study Guide Reference: RAP Security & Access Control Documentation – Authorization in
RAP BOs.

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 9

Which of the following is a technique for defining access controls?

  • A. Inheritance
  • B. Redefinition
  • C. Singleton
  • D. Casting
Mark Question:
Answer:

A


Explanation:
In ABAP CDS access controls, the technique used is inheritance, which allows one access control
object to reuse rules defined in another.
This makes authorization definitions consistent, reusable, and maintainable, which is essential in RAP
applications where business objects require layered and reusable authorization concepts.
Options such as Redefinition, Singleton, or Casting belong to OO concepts, not to access control in
CDS.
Verified Study Guide Reference: ABAP Cloud Documentation – Defining Access Controls in CDS and
RAP BOs.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 10

In CDS views, what do joins and associations have in common?
(Select 2 correct answers)

  • A. An alias can be assigned to the data sources and to the fields in the field list.
  • B. They can expose an entire data source without listing individual fields.
  • C. The data sources are linked using an ON clause.
  • D. The field list can include fields of the linked table without specifying the name of the corresponding data source.
Mark Question:
Answer:

A, C


Explanation:
In CDS views:
A . Aliases → Allowed for data sources and their fields, both in joins and associations.
C . ON clause → Both joins and associations use ON conditions to link data sources.
B . Expose entire data source without fields → Incorrect; explicit field selection is required.
D . Field list without data source prefix → Incorrect; unless aliased, fields must be qualified.
Thus, the overlap between joins and associations lies in aliasing and ON clause usage.
Verified Study Guide Reference: ABAP CDS Development Guide – Joins vs Associations.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 11

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. A built-in ABAP Dictionary type
  • B. A built-in ABAP type
  • C. A component of an ABAP Dictionary structure
  • D. A data element
Mark Question:
Answer:

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.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 12

Which internal table type allows unique and non-unique keys?

  • A. Hashed
  • B. Sorted
  • C. Standard
Mark Question:
Answer:

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.

User Votes:
A
50%
B
50%
C
50%
Discussions
vote your answer:
A
B
C
0 / 1000

Question 13

Constructors have which of the following properties?
(Select 2 correct answers)

  • A. The constructor is automatically called during instantiation.
  • B. The constructor can have importing parameters.
  • C. The constructor must be the first method called by the client.
  • D. The constructor can have returning parameters.
Mark Question:
Answer:

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.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 14

Which of the following Core Data Services built-in functions returns a result of type INT4?
(Select 2 correct answers)

  • A. dats_add_months
  • B. dats_is_valid
  • C. dats_add_days
  • D. dats_days_between
Mark Question:
Answer:

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.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 15

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?

  • A. Class constructor of sub1 → Instance constructor of super1 → Instance constructor of sub1 → Class constructor of super1
  • B. Class constructor of super1 → Class constructor of sub1 → Instance constructor of super1 → Instance constructor of sub1
  • C. Instance constructor of super1 → Class constructor of super1 → Class constructor of sub1 → Instance constructor of sub1
  • D. Instance constructor of sub1 → Instance constructor of super1 → Class constructor of super1 → Class constructor of sub1
Mark Question:
Answer:

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.

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000
To page 2