Given the following ABAP SQL statement excerpt from an ABAP program:
SELECT SINGLE *
FROM spfli
WHERE carrid = 'LH' AND connid = '0400
INTO @DATA(wa).
You are given the following information:
The data source spfli on line #2 is an SAP HANA database table.
spfli will be a large table with over one million rows.
This program is the only one in the system that accesses the table.
This program will run rarely.
Based on this information, which of the following general settings should you set for the spfli database
table?
Note: There are 2 correct answers to this question.
Show answerHide answer
Correct answer: B, D“Storage Type” to “Column Store”“Load Unit” to “Page Loadable”
Explanation
Explanation:
The table SPFLI is large (over one million rows) and queried only occasionally. In SAP HANA, the choice between Row Store and Column Store depends on access patterns:
Column Store is optimized for large tables and analytical queries. It provides better compression and faster access when filtering by specific columns (like carrid and connid in the example). This makes B correct.
Row Store is better for small tables with frequent single-row access or transactional workloads. Since SPFLI is large and rarely accessed, A is not suitable.
Regarding Load Unit:
Page Loadable means the table is loaded into memory only when accessed. Since the program runs rarely, this avoids unnecessary memory usage. Thus, D is correct.
Column Loadable keeps the table in memory permanently, which is wasteful for a rarely used table. Therefore, C is not correct.
So the best settings for this scenario are:
Storage Type → Column Store
Load Unit → Page Loadable
References
SAP HANA Administration Guide: SAP HANA Administration Guide: “Column store is recommended for large tables and analytical queries. Row store is suitable for small, frequently accessed tables.”
Question 12Choose 2
You select a field flight_date with type DATS in the field list of a CDS view.
Which of the following expressions returns the 2-digit month from the field?
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)
Show answerHide answer
Correct answer: A, DA built-in ABAP Dictionary typeA data element
Question 14Choose 1
Given the following Core Data Service View Entity Data Definition:
@AccessControl.authorizationCheck: #NOT_REQUIRED
DEFINE VIEW ENTITY demo_flight_info_union AS
SELECT FROM scustom {
KEY id,
KEY 'Customer' AS partner,
name,
city,
country
}
UNION
SELECT FROM stravelag {
KEY agencynum AS id,
'Agency' AS partner,
name,
city,
country
}
When you attempt to activate the definition, what will be the response?
Show answerHide answer
Correct answer: DActivation error because the field names of the union do not match
Question 15Choose 1
Given the following Core Data Services (CDS) View Entity data definition:
DEFINE VIEW ENTITY demo_cds_view_entity
AS SELECT FROM spfli
{
cityfrom,
cityto,
carrid,
connid
}
When you attempt to activate the definition, what will be the response?
Show answerHide answer
Correct answer: AActivation error due to no key defined
In RESTful Application Programming, a business object contains which parts?
Note: There are 2 correct answers to this question.
Show answerHide answer
Correct answer: B, CBehavior definitionCDS view
Explanation
Explanation:
In the ABAP RESTful Application Programming Model (RAP), a Business Object (BO) is not a single repository object but a logical entity composed of several parts that separate data structure from transactional logic.
1. Why CDS View (C) is correct: Core Data Services (CDS) serve as the structural foundation of a RAP BO. They define the Data Model, including the fields, data types, and the hierarchical relationships between entities (using compositions). Every RAP BO must have a Root Entity defined via a CDS view, which represents the top node of the business object tree.
2. Why Behavior Definition (B) is correct: The Behavior Definition (BDEF) defines the transactional capabilities of the business object. It specifies what operations are allowed (e.g., Create, Update, Delete), as well as application-specific logic like Actions, Determinations, and Validations. It essentially provides the "behavioral" layer to the static data model provided by the CDS view.
Why the other options are incorrect:
A. Process definition: This is not a technical artifact within the RAP framework. While RAP handles business processes, the logic is implemented in Behavior Pools (ABAP classes) and governed by the Behavior Definition.
D. Authentication rules: Authentication (verifying identity) is typically handled at the platform level (SAP BTP or SAP Fiori Launchpad) rather than inside the Business Object itself. RAP does handle Authorization (controlling access to specific data or actions) via Data Control Language (DCL) and Behavior Definitions, but "Authentication rules" are outside the BO scope.
References:
SAP Help Portal: Business Object Components - Explains the data model and behavior layers.
Question 17Choose 1
Which language is used to add or change data of a business object in RAP?
Show answerHide answer
Correct answer: BEntity manipulation language
Explanation
Explanation:
In the RESTful ABAP Programming Model (RAP), the Entity Manipulation Language (EML) is the dedicated ABAP language subset used to add, change, delete, or read data of a business object. EML provides statements such as MODIFY ENTITY, READ ENTITY, and EXECUTE ACTION that allow developers to interact with RAP business objects in a controlled and consistent way. This ensures that all business logic defined in the behavior definition is respected during data manipulation. Therefore, option B is correct.
Option A. Data manipulation language is incorrect because this term refers to SQL DML (INSERT, UPDATE, DELETE, SELECT) used at the database level. RAP does not use direct SQL for business object operations; instead, it uses EML to ensure business rules are enforced.
Option C. Data modification language is not an official ABAP or RAP concept. It is a distractor term and does not exist in SAP documentation.
Option D. RAP editing language is also incorrect because no such language exists. RAP relies on EML for editing and manipulating business object data, not a separate “editing language.”
Thus, the only valid choice is Entity Manipulation Language (EML), which is specifically designed for RAP to handle transactional consistency and business logic encapsulation.
📖 References
SAP Help Portal – Entity Manipulation Language (EML) (help.sap.com in Bing)
SAP ABAP Keyword Documentation – EML: Consuming RAP Business Objects (help.sap.com in Bing)
Question 18Choose 3
Which of the following are rules that extensions in SAP S/4HANA Cloud, public edition must adhere to?
(Select 3 correct answers)
Show answerHide answer
Correct answer: C, D, EUse released remote or local SAP APIs.Use cloud-enabled and released technologies.Extend SAP objects through predefined extension points.
Explanation
Explanation:
In SAP S/4HANA Cloud, public edition, the "Clean Core" strategy is strictly enforced. This means developers must follow the ABAP Cloud Development Model to ensure that extensions do not break during automated SAP software updates.
1. Why Choice C is correct: In the public cloud, you cannot access SAP internal tables or non-released objects directly. You must use released APIs (either local APIs like released CDS views/classes or remote APIs like OData/REST). SAP guarantees that these released APIs will remain stable and compatible after system upgrades.
2. Why Choice D is correct: Extensions must be built using cloud-enabled technologies such as the ABAP RESTful Application Programming Model (RAP) and Core Data Services (CDS). Legacy technologies like Dynpro, Web Dynpro, or classic reports (ALV) are not released for ABAP Cloud because they are not web-standard or upgrade-stable.
3. Why Choice E is correct: Directly modifying SAP source code is technically impossible in the public cloud. Instead, you must use predefined extension points provided by SAP, such as Business Add-Ins (BAdIs) for logic or CDS Extends for data model enhancements.
Why the other options are incorrect:
A. Modify SAP objects in exceptional cases only: This is incorrect for the Public Edition. Modifications (changing SAP's own code) are strictly prohibited and technically blocked. This rule only applies to "Classic ABAP" in on-premise or private cloud environments as a last resort (Tier 3).
B. Use tier 2 wrappers to enable access to non-released SAP APIs: Tier 2 (Cloud API Enablement) is a concept specific to SAP S/4HANA Cloud, private edition and on-premise systems. In the Public Edition, Tier 2 is not available; you are restricted entirely to Tier 1 (ABAP Cloud).
References
SAP Help Portal: ABAP Cloud Development Model - Outlines the mandatory use of released APIs and technologies.
SAP Learning: C_ABAPD_2507 course materials emphasize that "Modification-free" is a hard requirement for the Public Cloud.
Question 19Choose 1
What RESTful Application Programming feature is used to ensure the uniqueness of a semantic key?
Show answerHide answer
Correct answer: BValidation
Explanation
Explanation:
In the ABAP RESTful Application Programming Model (RAP), ensuring data integrity—such as the uniqueness of a semantic key (e.g., a custom BookingID or SalesOrderNumber that isn't the technical UUID)—is handled by Validations.
Why Choice B is correct: A Validation is a component of the Behavior Definition (BDEF) that is automatically triggered during the RAP Save Sequence (specifically during the CHECK_BEFORE_SAVE phase). It checks the state of the entity and, if a condition is not met (e.g., if a duplicate key is found in the database), it returns a message to the user and prevents the data from being persisted.
Implementation Note: To check for uniqueness, you typically write ABAP code inside the Validation method to query the database table for the proposed key. If a record already exists, you populate the FAILED and REPORTED structures to stop the transaction.
Why the other options are incorrect:
A. Action: Actions are used to implement custom operations that change the state of a Business Object (like "Cancel Booking" or "Approve Invoice"). While an action could technically contain checks, it is not the standard architectural place for data integrity rules.
C. Determination: Determinations are used to modify data automatically based on triggers (e.g., calculating the total price when an item is added). They are meant to set values, not to validate or reject them.
D. None of the above: This is incorrect because "Validation" is exactly the feature designed for this purpose.
References
SAP Help Portal: Validations - Explains how to use validations for consistency checks.
ABAP Keyword Documentation: RAP - Validation - Technical details on triggering and implementing validations.
When you join two database tables, which of the following rules applies to the database fields you use in
the join?
Show answerHide answer
Correct answer: DThey must be compared with an ON condition.
Explanation
Explanation:
In ABAP SQL, the ON condition is a syntactical requirement for all Inner Joins and Outer Joins (Left or Right). It defines the logical link between the data sources.
Why Choice D is correct: The ON condition establishes the join criteria, determining which rows from the left-hand table match with rows from the right-hand table. Unlike the WHERE clause, which filters the final result set, the ON condition is part of the FROM clause and dictates how the tables are physically combined by the database engine.
Why the other options are incorrect:
A. Same position: Database tables are unordered sets of columns. The physical position (e.g., column 1 vs. column 5) is irrelevant; only the data values and types matter for the join logic.
B. Alias name: While using aliases (e.g., FROM mara AS m) is highly recommended for readability—especially when joining multiple tables—it is not strictly required by the syntax unless you are joining a table with itself (self-join) or have ambiguous column names.
C. Same name: Fields do not need to have the same name to be joined. For example, you can join vbak-vbeln (Sales Document) with vbap-vbeln, but you could also join a field named userid in one table with a field named owner_id in another, provided their data types are compatible.
References
SAP Help Portal: SELECT - FROM JOIN - Documentation stating that every join expression must contain a join condition after ON.
Full mock exam
Sit the C_ABAPD_2507 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real C_ABAPD_2507 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.