Free C_ABAPD_2507 Exam Braindumps
SAP Certified Associate - Back-End Developer - ABAP Cloud Questions 11–15 (page: 4)

Updated On: 10-Feb-2026

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)

  1. A built-in ABAP Dictionary type
  2. A built-in ABAP type
  3. A component of an ABAP Dictionary structure
  4. A data element

Answer(s): 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?

  1. Hashed
  2. Sorted
  3. Standard

Answer(s): 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)

  1. The constructor is automatically called during instantiation.
  2. The constructor can have importing parameters.
  3. The constructor must be the first method called by the client.
  4. The constructor can have returning parameters.

Answer(s): 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)

  1. dats_add_months
  2. dats_is_valid
  3. dats_add_days
  4. dats_days_between

Answer(s): 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?

  1. Class constructor of sub1 Instance constructor of super1 Instance constructor of sub1 Class constructor of super1
  2. Class constructor of super1 Class constructor of sub1 Instance constructor of super1 Instance constructor of sub1
  3. Instance constructor of super1 Class constructor of super1 Class constructor of sub1 Instance constructor of sub1
  4. Instance constructor of sub1 Instance constructor of super1 Class constructor of super1 Class constructor of sub1

Answer(s): 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.



Viewing page 4 of 17
Viewing questions 16 - 20 out of 85 questions


Post your Comments and Discuss SAP C_ABAPD_2507 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!