SAP Certified Associate - Back-End Developer - ABAP Cloud C_ABAPD_2507 Exam Questions

Page: 1 / 14
Total 80 questions
Question 1

Given the following Core Data Service view entity data definition:

@AccessControl.authorizationCheck: #NOT_REQUIRED

DEFINE VIEW ENTITY demo_cds_param_view_entity

WITH PARAMETERS

p_date : abap.dats

AS SELECT FROM sflight

{

key carrid,

key connid,

key fldate,

price,

seatsmax,

seatsocc

}

WHERE fldate >= $parameters.p_date;

Which of the following ABAP SQL snippets are syntactically correct ways to provide a value for the parameter on line #4? Note: There are 2 correct answers to this question.



Answer : A, B

Parameters in CDS view entities (WITH PARAMETERS) must always be supplied when querying. In ABAP SQL, the syntax rules are:

A . Correct Supplying a literal date ('20230101') directly is valid because the parameter p_date is of type abap.dats.

B . Correct Supplying a value via an ABAP expression using @( ... ) is syntactically correct. Here, cl_abap_context_info=>get_system_date( ) returns the current system date in ABAP Cloud-compliant way, and is wrapped with @() for expression embedding. This is the best practice in ABAP Cloud development.

C . Incorrect Backticks (`...`) are used in ABAP for string templates, not for literals in this context. A date literal must be in quotes '...'.

D . Incorrect :$session.system_date is not valid in ABAP SQL. Session variables like $session.* are supported in HANA SQL, but in ABAP CDS view consumption via ABAP SQL, this is not allowed.

Therefore, only A and B are correct.

Reference: ABAP CDS Development User Guide -- section on CDS View Entity Parameters and ABAP SQL parameter passing rules; ABAP Cloud development guidelines on cl_abap_context_info=>get_system_date.


Question 2

Constructors have which of the following properties?

(Select 2 correct answers)



Answer : A, B

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.


Question 3

What RAP object contains only the fields required for a particular app?



Answer : A

In RAP, the Projection View is designed to expose only the fields relevant for a specific app, keeping the UI lean and controlled.

Metadata extension adds UI-related metadata, not fields.

Database view technical representation, not app-specific.

Data model view defines the data structure, not app-specific projection.

Verified by RAP documentation: Projection views are application-specific representations of the underlying data model.

Study Guide Reference: SAP RAP Help -- Business Object Projection Layer.


Question 4

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



Answer : D

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.


Question 5

To which of the following rules must extensions in SAP S/4HANA, public cloud edition adhere?

(Select 2 correct answers)



Answer : B, D

Extensions in SAP S/4HANA Cloud must follow the ABAP Cloud Extensibility Model.

Use released APIs (D) Only released and whitelisted APIs are permitted.

Use predefined extension points (B) Extensions can only be made where SAP has defined extension includes or APIs.

Build at UX layer (A) and Use CI/CD pipelines (C) are good practices but not mandatory extension rules.

Study Guide Reference: ABAP Extension Guide -- Extensibility Rules for Public Cloud.


Question 6

In a booking record, how can you calculate the difference in days between the order date (type D) and the flight date (type D) of a flight?



Answer : B

In ABAP, when calculating the difference between two date fields (type DATS), the result is directly a type i (integer) representing the difference in days.

Statement B is correct:

data(gv_diff_days) = gs_booking-flight_date - gs_booking-order_date.

This directly subtracts two DATS fields, resulting in an integer value for the number of days difference. No conversion is necessary.

Statements A and D are incorrect because the conv d( ... ) attempts to convert the result back to a DATS type, which is invalid since the result is an integer (number of days), not a date.

Statement C is syntactically correct but would produce the negative of the desired value (flight date - order date). It is semantically incorrect for the use case.

This approach is consistent with ABAP for Cloud Development, which requires explicit typing, and ABAP language version strict mode, where automatic type inference is restricted.


Question 7

In CDS views, what do joins and associations have in common?

(Select 2 correct answers)



Answer : A, C

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.


Page:    1 / 14   
Total 80 questions