Podcast
Questions and Answers
What is the correct way to define a parameter in a CDS view?
What is the correct way to define a parameter in a CDS view?
What is the purpose of a unique secondary key?
What is the purpose of a unique secondary key?
What is the best way to achieve faster access to internal tables?
What is the best way to achieve faster access to internal tables?
What is the correct sequence of execution in an ABAP program?
What is the correct sequence of execution in an ABAP program?
Signup and view all the answers
How do you redefine a component of a superclass in a subclass?
How do you redefine a component of a superclass in a subclass?
Signup and view all the answers
What is the purpose of a projection view in ABAP?
What is the purpose of a projection view in ABAP?
Signup and view all the answers
What is the benefit of using a hashed internal table?
What is the benefit of using a hashed internal table?
Signup and view all the answers
What is the purpose of a unique key in ABAP?
What is the purpose of a unique key in ABAP?
Signup and view all the answers
What is the effect of attaching a system field to an input parameter of a CDS view entity?
What is the effect of attaching a system field to an input parameter of a CDS view entity?
Signup and view all the answers
What is the data type of gv_result in the assignment data(gv_result) = 1 / 8?
What is the data type of gv_result in the assignment data(gv_result) = 1 / 8?
Signup and view all the answers
Which of the following statements is true about the given code?
Which of the following statements is true about the given code?
Signup and view all the answers
What will happen when executing the cast go_sub1 = CAST #(go_super)?
What will happen when executing the cast go_sub1 = CAST #(go_super)?
Signup and view all the answers
What is the purpose of setting a field to read-only in a service definition?
What is the purpose of setting a field to read-only in a service definition?
Signup and view all the answers
What is the effect of using the annotation @Default.aggregation.Column on a CDS view?
What is the effect of using the annotation @Default.aggregation.Column on a CDS view?
Signup and view all the answers
What is the purpose of using the ABAP statement DATA gv_result TYPE i?
What is the purpose of using the ABAP statement DATA gv_result TYPE i?
Signup and view all the answers
What is the effect of using the CDS view annotation @ObjectModel.createEnabled: true?
What is the effect of using the CDS view annotation @ObjectModel.createEnabled: true?
Signup and view all the answers
What is the data type of gv_target in the statement DATA gv_target TYPE string?
What is the data type of gv_target in the statement DATA gv_target TYPE string?
Signup and view all the answers
What is the correct syntax for a SELECT statement in ABAP SQL?
What is the correct syntax for a SELECT statement in ABAP SQL?
Signup and view all the answers
What is the purpose of a CDS view?
What is the purpose of a CDS view?
Signup and view all the answers
What is the data type of connection_full based on the statement DATA connection_full TYPE /DMD/I_Connection?
What is the data type of connection_full based on the statement DATA connection_full TYPE /DMD/I_Connection?
Signup and view all the answers
What is the correct syntax for a CASE statement in ABAP SQL?
What is the correct syntax for a CASE statement in ABAP SQL?
Signup and view all the answers
What is the data type of gv_source in the statement DATA gv_source TYPE c?
What is the data type of gv_source in the statement DATA gv_source TYPE c?
Signup and view all the answers
What is the purpose of a unique key in a CDS view?
What is the purpose of a unique key in a CDS view?
Signup and view all the answers
What is the effect of using the CDS view annotation @ObjectModel.createEnabled: true?
What is the effect of using the CDS view annotation @ObjectModel.createEnabled: true?
Signup and view all the answers
Study Notes
CDS View Entity
- Attaching a system field to an input parameter of a CDS view entity means that the value of
sy-langu
will be passed to the CDS view automatically when used in ABAP or in another CDS view entity. - It is still possible to override the default value with a value of your own.
Data Type
- In the assignment
data(gv_result) = 1 / 8
, the data type ofgv_result
isTYPE I
.
Interface Methods
- In class
CL2
, the interface method is not namedif1-m1
. - Class
CL2
uses the interface. - In class
CL1
, the interface method is namedif-m1
. - Class
CL1
uses the interface. - Class
CL1
implements the interface.
Casting
-
go_sub1->sub1_meth1(...).
will work. -
go_sub2->sub2_meth1(...).
will work. -
go_sub1 = CAST #(go_super)
will work. -
go_sub2 = CAST #(go_super)
will not work.
Read-only Field
- Setting a field to read-only in the metadata extension makes the field read-only in all applications of the RESTful Application Programming model.
- Setting a field to read-only in the service definition does not make the field read-only in all applications of the RESTful Application Programming model.
Core Data Service View Entity
- When attempting to activate the definition, the response will be an activation error because the key fields of the union do not match.
ABAP SQL
- The select statement that selects the
mat
field on line #17 isSELECT mat FROM demo_sales_cds_so_i_ve...
. -
INDEX TABLE
is a generic internal table type.
CDS View Variable
- The variable type of
connection_full
based on the codeDATA connection_full TYPE /DMD/I_Connection
is a structure.
ABAP SQL Case Distinctions
- Valid case distinctions in ABAP SQL are
CASE
withWHEN
andELSE
clauses, andCASE
withWHEN
andOTHERS
clauses.
Unique Secondary Key
- A unique secondary key is created with the first read access of a table.
- A unique secondary key is updated when the table is modified.
Faster Access to Internal Tables
- Specifying the primary key partially from the left without gaps in a sorted internal table results in faster access.
- Specifying the primary key completely in a hashed internal table results in faster access.
- Specifying the primary key completely in a sorted internal table results in faster access.
CDS View Entity Input Parameter
- A built-in ABAP Dictionary type can be used to replace "????" in the definition of a CDS view entity with an input parameter.
- A data element can be used to replace "????" in the definition of a CDS view entity with an input parameter.
Sequence of Execution
- The sequence of execution in the dropdown list is:
- Numeric functions (highest priority)
- Multiplication (") and Division (/) (middle priority)
- Addition (+) and Subtraction (-) (lowest priority)
Redefining a Component
- To redefine a component of a superclass in a subclass, you add the clause
REDEFINITION
to the component in the subclass. - You implement the redefined component in the subclass.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
Understanding the effects of attaching a system field to an input parameter of a CDS view entity in ABAP.