Setting a field to read-only in which object would make the field read-only in all applications of the RESTfuI Application Programming model?
Behavior definition
Projection view
Service definition
Metadata extension
What RESTful Application Programming feature is used to ensure the uniqueness of a semantic key?
Determination
Action
Validation
In a RESTful Application Programming application, in which objects do you bind a CDS view to create a value help? Note: There are 3 correct answers to this question.
Data model view
You have a superclass super1 and a subclass sub1 of super1. Each class has an instance constructor and a static constructor. The first statement of your program creates an instance of sub1. In which sequence will the constructors be executed?
1. Class constructor of super1.
2. Instance constructor of sub1.
3. Instance constructor of super1.
4. Class constructor of sub1.
4, 1, 2, 3
4, 1, 3, 2
1, 4, 3, 2
1, 4, 2, 3
What is the purpose of a foreign key relationship between two tables in the ABAP Dictionary?
To document the relationship between the two tables
To ensure the integrity of data in the corresponding database tables
To create a corresponding foreign key relationship in the database
Given this code,
INTERFACE if1.
METHODS m1.
ENDINTERFACE.
CLASS cl1 DEFINITION
...
INTERFACES if1.
ENDCLASS.
CLASS cl2 DEFINITION.
DATA mo_if1 TYPE REF TO if1.
ENDCLAS.
What are valid statements? Note: There are 3 correct answers to this question
In class CL1, the interface method is named if1~m1.
Class CL2 uses the interface.
Class CL1 implements the interface.
Class CL1 uses the interface.
In class CL2, the interface method is named if1~m1.
< some coding >
IF <condition>.
RAISE EXCEPTION TYPE zcx1
EXPORTING
param1 = valuel
param2 = value2
previous = value3.
ENDIF.
What are valid statements? (2 correct)
The code creates an exception object and raises an exception.
"previous" expects the reference to a previous exception
"param1" and "param2" are predefined names.
"zcx1" is a dictionary structure, and "param1" and "param2" are same-named components of this structure.
target_itab = VALUE #( FOR row IN source_itab(
field1 = row-field1
field2 = row-field2
fieldn = row-fieldn ) ) .
Which of the following statements are correct? (2 correct)
source_itab is only visible within the loop.
row is only visible within the loop.
FOR defines a loop that runs over the content of source_itab.
row is a predefined name and cannot be chosen arbitrarily.
What are advantages of using a field symbol for internal table row access? (2 correct)
MODIFY statement to write changed contents back to the table is not required.
The row content is copied to the field symbol instead to a work area.
The field symbol can be reused for other programs.
Using a field symbol is faster than using a work area.
To check whether data is found when reading data from a database table, which system variable will contain 0?
SY-UNAME
SY-SUBRC
SY-DATUM
SY-INDEX
What are some properties of database tables? (2 correct)
They may have key fields
They can have any number of key fields
They can have relationships to other tables
They store information in two dimensions
What are characteristics of secondary keys for internal tablets? (3 correct)
Secondary keys can only be created for standard tables
Hashed secondary keys do NOT have to be unique
Secondary keys must be chosen explicitly when you actually read from an internal table.
Multiple secondary keys are allowed for any kind of internal table
Sorted secondary keys do NOT have to be unique
CLASS cl1 DEFINITION.
PUBLIC SECTION.
METHODS m2.
*in a method of another class
DATA go_if1 TYPE REF TO if1.
DATA go_cl1 TYPE REF to cl1.
go_cl1 = NEW #(...).
go_if1 = go_cl1.
What are valid statements? (3 correct)
Instead of go_cl1 = NEW #(...) you could use go_if1 = NEW cl1(....).
go_if1 may call method m2 with go if->m2(...).
go_cl1 may call method m1 with go_cl1->if1~m1().
go_if1 may call method m1 with go_if1->m1().
Instead of go_cl1 = NEW #() you could use go_if1 = NEW #(...).
What does a business object in the ABAP RAP model define?
An entity such as a travel agency.
A travel agency.
A CDS view.
A behavior definition.
Which of the following are parts of the definition of a new database table? (2 correct)
Partitioning attributes
Extension
Semantic table attributes
Field list
In class ZCL_CLASS_A, you use the statement DATA var TYPE ***
What may stand in place of ***? (2 correct)
The name of a domain from the ABAP Dictionary
The name of a data element from the ABAP Dictionary
The name of a type defined privately in another class
The name of a type defined privately in class ZCL_CLASS_A
In the assignment.
DATA(gv result) = 1 / 8. What will be the data type of gv result?
TYPE P DECIMALS 2
TYPE I
TYPE P DECIMALS 3
TYPE DEFLOAT16
In which products must you use the ABAP Cloud Development Model? Note: There are 2 correct answers to this question.
SAP S/4HANA Cloud, private edition
SAP S/4HANA Cloud, public edition
SAP BTP, ABAP environment
SAP S/4HANA on premise
What are some of the reasons that Core Data Services are preferable to the classical approach to data modeling? (2 correct)
They implement code pushdown
They compute results on the application server
They transfer computational results to the application server
They avoid data transfer completely
They implement code pushdown#
In what order are objects created to generate a RESTful Application Programming application?
1. Database table
2. Service binding
3. Service definition
4. Data model view
2, 3, 4, 1
3, 2, 1, 4
1, 2, 3, 4
What are the special data types of the internal tables in EML called?
EML operation types.
Derived behavior operation types.
Derived behavior definition types.
Internal behavior types.
In an Access Control Object, which clauses are used? (3 correct)
Where (to specify the access conditions)
Grant (to identify the data source)
Define role (to specify the role name)
Revoke (to remove access to the data source)
Return code (to assign the return code of the authority check)
Which function call returns 0?
Count_any_of( val = 'ABAP ABAP abap' sub = 'AB' ).
Count( val = 'ABAP ABAP abap' sub = 'AB' ).
find_any_of( val = 'ABAP ABAP abap' sub = 'AB').
find_any_not_of( val = 'ABAP ABAP abap' sub = 'AB' ).
Given the following Core Data Services View Entity Data Definition,
1 @AccessControl.authorizationCheck: #NOT_REQUIRED
2 DEFINE VIEW ENTITY demo_cds_data_source_matrix
3 AS SELECT FROM
4 <source>
5 {
6 KEY field_1,
8 field_2,
9 field_3
}
which of the following types are permitted to be used for <source> on line #4?
Note: There are 2 correct answers to this question.
A database view from the ABAP Dictionary
An external view from the ABAP Dictionary
A database table from the ABAP Dictionary
A CDS DDIC-based view
After you created a database table in the RESTful Application Programming model, what do you create next?
A service definition
A metadata extension
A projection view
A data model view
What are some features of a unique secondary key? Note: There are 2 correct answers to this question.
It is created with the first read access of a table.
It is updated when the modified table is read again.
It is updated when the table is modified.
It is created when a table is filled.
Given this code:
DATA: go_super TYPE REF TO lcl_super,
go_sub TYPE RFF TO lcl_sub.
go_sub = NEW #( ... ).
go_super = go_sub.
with lcl_super being superclass of lcl_sub.
When accessing the subclass instance through go_super, what can you do? Note: There are 2 correct answers to this question.
Call a subclass specific public method.
Access the inherited public components.
Call inherited public redefined methods.
Access the inherited private components.
For what kind of applications would you consider using on-stack developer extensions? (2 correct)
Applications that access SAP S/4HANA data using complex SQL
Applications that integrate data from several different systems
Applications that run separate from SAP S/4HANA
Applications that provide APIs for side-by-side SAP BTP apps
Which statement is used in EML to read data from a business object?
UPDATE ENTITIES.
DELETE ENTITIES.
READ ENTITIES.
MODIFY ENTITIES.
What is the purpose of the MODIFY ENTITIES statement in EML?
To read data.
To update or create data.
To read and delete data.
Both read and update data.
/DMO/I_Connection is a CDS view.
What variable type is connection full based on the following code?
DATA connection full TYPE /DMD/I_Connection.
Simple variable
Internal table
Structure
In RESTful Application Programming, which EML statement retrieves an object?
Select entity
Read entity
Find entity
Get entity
When are derived behavior definition types created?
When the system processes a request.
When a developer creates a behavior definition.
When the EML is initialized.
When a business object is read.
You have the following CDS definition:
define view entity Z_ENTITY as select from Z_SOURCE1 as _Source1
association to Z_SOURCE2 as _Source2
???
{
key carrier_id as Carrier,
key connection_id as Connection,
cityfrom as DepartureCity,
cityto as Arrivalcity,
_Source2
Which of the following ON conditions must you insert in place of "???"?
ON $projection Camer= Source2.carrier_id
ON _Source1.carrier_id = _Source2.carrier_id
ON $projection.carrier_id = _Source2.carrier_id
ON $projection.Carrier = Source2.carrier
Given the following code in an SAP S/4HANA Cloud private edition tenant:
1. CLASS zcl_demo_class DEFINITION.
2. METHODS: m1.
3. ENDCLASS.
4. CLASS zcl_demo_class IMPLEMENTATION.
5. METHOD m1.
6. CALL FUNCTION 'ZF1'.
7. ENDMETHOD.
8. ENDCLASS.
The class zcl_demo_class is in a software component with the language version set to "ABAP Cloud". The function module ZF1' is in a different software component with the language version set to "Standard ABAP". Both the class and function module are customer created. Regarding line #6, which of the following are valid statements? Note: There are 2 correct answers to this question.
"ZF1" can be called whether it is released or not for cloud development
ZF1" can be called if a wrapper is created for it but the wrapper itself is not released for cloud development.
'ZF1' can be called if a wrapper is created for it and the wrapper itself is released for cloud development.
ZF1' can be called only if it is released for cloud development.
In a subclass sub1 you want to redefine a component of a superclass super. How do you achieve this? (2 correct)
You implement the redefined component in sub1
You add the clause REDEFINITION to the component in super1
You add the clause REDEFINITION to the component in sub1.
You implement the redefined component for a second time in super1.
Given the following code excerpt that defines an SAP HANA database table:
DEFINE TABLE demo_table {
KEY field1 : REFERENCE TO abap.clnt(3);
KEY field2 : abap.char(1332);
@Semantics.quantity.unitOfMeasure : 'demo_table.field4'
field3 : abap.quan(2);
field4 : abap.unit(2);
Which field is defined incorrectly? (2 correct)
field4
field1
field3
field2
What is the sequence priority when evaluating a logical expression?
NOT / AND / OR
NOT / BETWEEN / AND
AND / OR / NOT
OR / NOT / AND
In ABAP SQL, which of the following can be assigned an alias? (2 correct)
order criterion (from order by clause)
field (from field list)
database table
group criterion (from group by clause)
Which part of the business object's definition defines its structure or the fields it contains?
CDS view.
Validations.
Actions.
Behavior definition.
When processing a loop with the statement DO... ENDDO, what system variable contains the implicit loop counter?
sy-tabix
sy-index
sy-linno
sy-subrc
In RESTful Application Programming, a business object contains which parts? (2 correct)
Process definition
CDS view
Authentication rules
In ABAP SQL, which of the following retrieves the association field _Airline-Name of a CDS view?
/_Airline-Name
\_Airline-Name
@_Airline-Name
*_Airline-Name
Class super has subclass sub. Which rules are valid for the sub constructor? (2 correct)
The method signature can be changed.
Import parameters can only be evaluated after calling the constructor of super.
The constructor of super must be called before using any components of your own instance.
Events of your own instance cannot be raised before the registration of a handler in super.
As a consultant you are posed the following question from a client who is using SAP S/4HANA Cloud, public edition and also SAP BTP, ABAP environment.
"We are currently using an SAP Fiori app based on SAP Fiori elements that analyzes open orders. We have determined that it should be extended via a new button on the UI which will perform an on-the-fly calculation and display the result in a quick popup for the enduser. We have been informed by SAP that all underlying stack layers for the SAP Fiori app have been extensibility enabled."
Based on this which of the following extension types would you recommend to the customer to add the new button?
RAP BO Behavior Extension
Business Service Extension
RAP BO Node Extension
SAP HANA database table extension
Given the following Core Data Services View Entity Data Definition:
The “demo_cds_assoc_spfli” data source referenced in line #4 contains a field “connid” which you would like to expose in the element list. Which of the following statements would do this if inserted on line #8?
demo_cds_assoc_spfli-connid,
_spfli.connid
spfli-connid,
demo_cds_assoc_spfli.connid,
For the assignment,
gv_target = gv_source.
Which of the following data declarations will always work without truncation or rounding? (2 correct)
DATA gv_source TYPE string.
to
DATA gv_target TYPE c.
DATA gv_source TYPE c.
DATA gv_target TYPE string.
DATA gv_source TYPE d.
DATA gv_source TYPE p LENGTH 8 DECIMALS 3.
DATA gv_target TYPE p LENGTH 16 DECIMALS 2.
Which RESTful Application Programming object can be used to organize the display of fields in an app?
Which of the following is a generic internal table type?
STANDARD TABLE
HASHED TABLE
INDEX TABLE
SORTED TABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
DEFINE VIEW ENTITY demo_sales_cds_so_simple
AS SELECT FROM demo_sales_order AS SalesOrder
KEY so_key,
buyer_id AS BuyerID,
currency_sum AS currencySum
You want to provide a short description of the data definition for developers that will be attached to the database view. Which of the following annotations would do?
@EndUserText.quickInfo
@EndUser.Text.label
@UI.headerinto.description.label
@UI.badge.title.label
Zuletzt geändertvor 8 Monaten