C_ABAPD_2507 Practice Test Questions

78 Questions


ABAP RESTful Application Programming Model

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





A.
  A data view

Explanation:

In the ABAP RESTful Application Programming Model (RAP), the development flow follows a strict "bottom-up" approach. Once you have your persistent database table (the physical storage), you must provide a structural representation of that data for the RAP framework to use.

Why Choice A is correct:
The very next step after creating the database table is to define a CDS (Core Data Services) View. This view acts as the Data Model for your Business Object. Specifically, you create a "Root View" that maps the technical database fields into a semantically rich entity. Without this CDS layer, you cannot define behaviors (BDEF) or bind the data to a service.

Why the other options are incorrect:

B. A service definition:
This happens much later in the process. A service definition is used to expose specific parts of the data model to the outside world, but it requires an existing CDS view and (usually) a projection layer first.

C. A metadata extension:
This is an optional step used to separate UI-specific annotations (like Fiori labels and positions) from the data model. You cannot create a metadata extension until you have a view to extend.

D. A projection view:
This is the second-to-last step in the data modeling phase. The projection view is built on top of the base CDS view to "filter" or "shape" the data specifically for a certain use case or UI.

References:

SAP Help Portal: Building a RAP Business Object - Outlines the step-by-step creation order.

ABAP Keyword Documentation: CDS - Data Definitions.

Which of the following integration frameworks have been released for ABAP Cloud development? (Select 3)


A. CDS Views


B. Business events


C. OData services


D. Business Add-ins (BAdIs)





A.
  CDS Views

B.
  Business events

C.
  OData services

Explanation:

In the ABAP Cloud development model, integration is built on the foundation of modern, stable, and cloud-ready protocols. These frameworks allow different systems and components to communicate reliably without creating "spaghetti code" or dependencies that break during upgrades.

1. Why CDS Views (A) is correct:
Core Data Services (CDS) are the "lingua franca" of ABAP Cloud. They are released for Data Integration. External tools (like SAP Analytics Cloud) or other ABAP components use released CDS views to read data in a structured, performance-optimized way.

2. Why Business events (B) is correct:
For Asynchronous Integration, ABAP Cloud uses Business Events. This allows a RAP Business Object to "publish" an event (e.g., "Sales Order Created") to the SAP Event Mesh. External systems can then "subscribe" to these events to trigger side-effect processes without tightly coupling the two systems.

3. Why OData services (C) is correct:
OData is the primary protocol for Synchronous Integration in ABAP Cloud. Whether you are building a Fiori UI or an API for an external system to call, you expose your RAP Business Object as an OData service (v2 or v4) via the Service Binding.

Why the other option is incorrect:

D. Business Add-ins (BAdIs):
While BAdIs are a core part of the ABAP Cloud Extensibility framework, they are not considered an Integration Framework. BAdIs are used to inject custom logic inside an existing SAP process. Integration frameworks (like OData or Events) are used to move data or triggers between separate systems or independent applications

References

SAP Help Portal: ABAP Cloud Integration - Lists OData and Business Events as primary integration pillars.
SAP Learning: C_ABAPD_2507 - Unit on "Communication and Integration" highlights the shift from IDocs/RFC to OData and Events.

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?

(Select 2 correct answers)


A. substring( flight_date, 5, 2 )


B. right( left( flight_date, 6 ), 2 )


C. left( right( flight_date, 6 ), 2 )


D. substring( flight_date, 4, 2 )





A.
  substring( flight_date, 5, 2 )

B.
  right( left( flight_date, 6 ), 2 )

What describes multi-column internal tables?


A. They use one incomplete data type.


B. They are based on a structured row type.


C. They must contain nested components.


D. They use one complete data type.





B.
  They are based on a structured row type.

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.





B.
  Create a custom field on a DB table or CDS view via a released extension include.

You want to document a global class with ABAP Doc. What do you need to consider?

(Select 3 correct answers)


A. The documentation may contain tags like .


B. The documentation has to be positioned directly after the declarative statement.


C. The documentation can contain links to other repository object's documentation.


D. The documentation can be translated.


E. The documentation starts with !.





B.
  The documentation has to be positioned directly after the declarative statement.

D.
  The documentation can be translated.

E.
  The documentation starts with !.

Which function call produces the string 'LORE_IPSUM_FACTUM'?


A. from_mixed( val = 'LorelpsumFactum' sep = '_' )


B. condense( to_upper( 'LorelpsumFactum' ) )


C. to_upper( condense( 'LorelpsumFactum' ) )


D. to_mixed( val = 'LorelpsumFactum' sep = '_' )





A.
  from_mixed( val = 'LorelpsumFactum' sep = '_' )

What are some features of ABAP SQL?

Note: There are 2 correct answers to this question.


A. It is first processed by the Database Interface.


B. It is integrated in the ABAP programming language.


C. It is directly executed on the HANA database.


D. It is only valid on the HANA database.





A.
  It is first processed by the Database Interface.

B.
  It is integrated in the ABAP programming language.

What is the purpose of a foreign key relationship between two tables in the ABAP Dictionary?


A. To create a corresponding foreign key relationship in the database


B. To ensure the integrity of data in the corresponding database tables


C. To document the relationship between the two tables


D. None of the above





B.
  To ensure the integrity of data in the corresponding database tables

While debugging an ABAP program, you want the program to stop whenever the value of a variable changes.
Which of the following do you use?


A. Exception breakpoint


B. Watchpoint


C. Conditional breakpoint





B.
  Watchpoint

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





A.
  A built-in ABAP Dictionary type

D.
  A data element

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


A. Projection view


B. Metadata extension


C. Database view


D. Data model view





A.
  Projection view


Page 2 out of 7 Pages
Previous