1/71
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
What is ABAP CDS?
ABAP Core Data Services (CDS) is an infrastructure for defining and consuming semantically rich data models in ABAP.
What do CDS Views implement?
CDS Views implement a semantic data model.
What does a CDS View definition contain?
A CDS View definition can contain re-usable SQL logic with calculations, aggregations, joins, and unions.
What are associations in CDS Views?
Associations reflect the relations of the data model and allow consumers of the view to retrieve related data.
What role do annotations play in CDS Views?
Annotations enrich the view definition semantically and are evaluated by frameworks that build on top of CDS View definitions.
What is the syntax to define a CDS View entity?
The syntax starts with the DEFINE VIEW ENTITY statement, followed by the name of the entity and the data source.
What is the purpose of the FIELDS clause in a CDS View?
The FIELDS clause specifies which view elements to select and retrieve.
What is the significance of the Key keyword in a CDS View entity?
The Key keyword defines specific fields as key fields of the CDS View entity.
How do you open the Data Preview tool for a CDS View?
Right-click the data definition and choose Open With > Data Preview, or press Ctrl + F8.
What is a path expression in the context of CDS Views?
Path expressions read element names from associated CDS view entities, prefixed with a backslash.
How can you filter the Where-used List in ADT?
You can apply filters based on specific packages or object types to find all CDS Views that use a certain database table.
What must be included in the INTO clause of a SELECT statement?
The INTO clause must include the attributes where the selected data will be stored.
What type of operations can CDS Views simplify?
CDS Views simplify operations like joining multiple data sources and performing real-time aggregations.
What does the optional addition AS do in a CDS View?
The optional addition AS defines an alias name for the data source inside the View definition.
How can you expose associations in a CDS View?
Associations can be exposed by adding them to the element list of the CDS View.
What is a potential source for a CDS View entity?
The source of a CDS View entity can also be another CDS View.
What type of metadata do entity annotations provide?
Entity annotations provide metadata for the view entity as a whole.
What type of metadata do element annotations provide?
Element annotations provide metadata for the different elements of the view.
What benefit does using a CDS View as a data source in ABAP SQL provide?
It allows for the reuse of complex SQL logic defined in the CDS View.
What happens when you use Follow Association in the Data Preview?
It allows displaying related data based on the selected association.
How do you declare a new attribute in a local class in ABAP?
Add the attribute in the PRIVATE SECTION of the class definition.
What should you do to extend a CDS View in a class?
You can modify the SELECT statement to read from the CDS View instead of the database table.
What is a common use case for CDS Views?
Constructing complex business scenarios by joining multiple data sources.
How can you activate a class in ABAP Editor?
Press Ctrl + F3 to activate the class.
What do curly brackets in a CDS View definition denote?
Curly brackets contain the list of view elements and their definitions.
How do you incorporate user-defined naming conventions in CDS Views?
By using the optional addition AS to define alias names for elements.
What does a SELECT SINGLE statement do in the context of CDS Views?
It retrieves a single record from the specified CDS View.
How can you ensure data consistency when using CDS Views?
By exposing well-defined, semantically rich data models to UI frameworks.
What is the purpose of the Data Preview tool?
To display and analyze the content of CDS View entities.
What does filtering data based on specific conditions achieve in a CDS View?
It provides a focused data set to consuming applications.
How to add a new output for an additional attribute in a class?
Modify the implementation of a method to include the new attribute in the output.
What can annotations within a CDS View guide?
They can guide UI generation or define data validation rules.
What is the advantage of using business-oriented names in CDS Views?
They can be clearer and more readable than technical database table fields.
What should be done after copying a template class in ABAP?
Adjust the class name and description before confirming the transport request.
How do you declare a key field in a CDS View entity definition?
By using the keyword Key in front of the field definitions.
What can associations between CDS Views help accomplish?
They help link related data together, enabling broader queries and data retrieval.
What is the importance of activating a class after making changes?
It ensures that the latest updates are reflected in the program execution.
What is the significance of the alias name in a CDS View?
It makes referencing the data source easier within the View definition.
What should you do in a SELECT statement to read multiple fields?
List the fields separated by commas in the FIELDS clause.
What happens when you analyze a CDS View entity?
You review its definition, elements, associations, and annotations.
Why is it recommended to utilize auto-completion in CDS Views?
Auto-completion helps avoid typing errors and speeds up code writing.
What type of application frameworks utilize CDS Views?
Modern UI frameworks such as the ABAP RESTful application programming model.
How does a SELECT statement get executed in a CDS View context?
By specifying the data source as the CDS View entity.
What can you achieve by extending a local class in ABAP?
You can add new functionality or attributes relevant to your application context.
What is the syntax to retrieve data from a CDS View entity?
SELECT SINGLE FROM
What do you need to ensure when reading from a CDS View?
Use the correct prefix '@' while referencing parameters and attributes.
How can you enhance a CDS View for UI usage?
By adding semantic annotations and ensuring relevant field exposure.
What is the role of the tooltip description in a CDS View?
It provides additional context and metadata for associations.
What keyword is used to comment functionality in ABAP code?
The '*' character is used to comment out lines of code.
How to access the repository object of a CDS View?
Through the Open ABAP Development Object option in the Eclipse toolbar.
What type of queries can be simplified through the use of a CDS View?
Complex business queries involving multiple tables and conditions.
Why is it convenient to use CDS Views for READ operations in ABAP?
They encapsulate complex SQL logic, making queries concise and manageable.
What could be a potential source of issues when implementing a SELECT statement?
Using incorrect field names or forgetting to escape parameter names.
What allows for layering in CDS View definition?
The ability to use another CDS View as a source within a CDS View.
What type of development tools may assist when working with CDS Views?
ABAP Development Tools (ADT) in Eclipse.
What can modifying a CDS View's definition achieve?
Changes to the underlying data model that affect all consuming applications.
How do you expose an association in the element list of a CDS View?
By adding the association name to the list of elements in the CDS View definition.
What is the benefit of filtering in the Where-used List tool?
It allows developers to focus on specific types of objects related to a database table.
In what format should view elements be listed in a CDS View definition?
As a comma-separated list enclosed within curly brackets.
What does an exposed association in a CDS View allow users to do?
It allows accessing related data through the defined association.
What are some common annotations used in CDS Views?
Annotations for UI generation, data validation, or just-in-time calculations.
How are the key fields defined in a CDS View entity?
By preceding the field names with the Key keyword.
What is a typical next step after modifying the implementation of a method for a CDS View?
Activating the class to apply the changes in subsequent executions.
How is a Data Definition object identified in CDS Views?
By its object type and instance name in the ABAP repository.
What does the expression "using associations to display related data" mean?
It means utilizing defined relationships to fetch additional data easily.
When working with CDS Views, how can you ensure that the output shows all relevant attributes?
By appropriately selecting and exposing all necessary fields and associations.
What should you check after executing a class with temperature changes?
Validate the console output to ensure that the expected results are produced.
What does the keyword FROM indicate in a CDS View definition?
It indicates the source from which the CDS view entities are derived.
How do annotations impact the usability of CDS Views?
They provide additional context that enhances data accessibility and application development.
What is the significance of the WHERE condition in a CDS View SELECT statement?
It filters the data being retrieved based on specific criteria.
How does the key definition in a CDS View help in data integrity?
Key definitions help maintain unique entries in the data model.
Why would you choose a CDS View over a direct database table read in an application?
A CDS View generally encapsulates more logic and relationships than a simple table read.