0% found this document useful (0 votes)
1K views37 pages

Sap Abap Dumps

Uploaded by

Pankaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views37 pages

Sap Abap Dumps

Uploaded by

Pankaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 37

What are valid statements? Note: There are 2 correct answers to this question.

*
0/1

The pragma is not checked by the syntax checker.


#EC_NEEDED is not checked by the syntax checker.
The pseudo-comment is checked by the syntax checker
##NEEDED is checked by the syntax checker.

Correct answer
##NEEDED is checked by the syntax checker.
#EC_NEEDED is not checked by the syntax checker.

Which restrictions exist for ABAP SQL arithmetic expressions? Note: There are 2
correct answers to this question.
*
0/1
Decimal types and integer types can NOT be used in the same expression.
The operator is allowed only in floating point expressions.
The operator/is allowed only in floating point expressions.

Floating point types and integer types can NOT be used in the same expression.

Correct answer
The operator/is allowed only in floating point expressions.
Floating point types and integer types can NOT be used in the same expression.

In ABAP SQL, which of the following can be assigned an alias? Note: There are 2
correct answers to this question.
*
0/1
database table
group criterion (from group by clause)
order criterion (from order by clause)
field (from field list)

Correct answer
field (from field list)
database table
In the assignment.

data (gv_result) = 1 / 8.

what will be the data type of gv_result?


*
0/1
TYPE P DECIMALS 3

TYPE I
TYPE DEFLOAT 16
TYPE P DECIMALS 2

Correct answer
TYPE I

Class super has subclass sub.Which rules are valid for the sub constructor? Note:
There are 2 correct answers to this question.
*
0/1
Events of your own instance cannot be raised before the registration of a handler in super.
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.

Correct answer
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.

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.
*
0/1
Data model view
Behavior definition
Service definition
Projection view
Metadata extension

Correct answer
Data model view
Projection view
Metadata extension

In which products must you use the ABAP Cloud Development Model? Note: There
are 2 correct answers to this question.
*
0/1
SAP S/4HANA Cloud, public edition
SAP S/4HANA on premise

SAP BTP, ABAP environment


SAP S/4HANA Cloud, private edition

Correct answer
SAP BTP, ABAP environment
SAP S/4HANA Cloud, public edition

When processing an internal table with the statement LOOP AT itab... ENDLOOP,
what system variable contains the current row number?
*
0/1
sy-linno
sy-index
sy-tabix
sy-subrc

Correct answer
sy-tabix

Given this code,

with which predicate condition can you ensure that the CAST will work?
*
1/1

IS NOT INITIAL
IS BOUND
IS SUPPLIED
IS INSTANCE OF

What would be the correct expression to change a given string value 'mr joe doe' into
'JOE' in an ABAP SQL field list?
*
0/1

SELECT FROM TABLE dbtab1 ⇒ FIELDS f1,⇒ upper(left( 'mr joe doe', 6)) AS f2_up_left, f3,
SELECT FROM TABLE dbtab1 ⇒ FIELDS f1, ⇒ substring(lower(upper( 'mr joe doe' ) ), 4, 3)
AS f2_sub_lo_up, f3,
SELECT FROM TABLE dbtab1 ⇒ FIELDS f1, ⇒ substring(upper('mr joe doe'), 4, 3) AS
f2_sub_up, f3,...
SELECT FROM TABLE dbtab1 ⇒ FIELDS f1,⇒ left(lower(substring( 'mr joe doe', 4, 3)), 3)
AS f2_left_lo_sub, f3,

Correct answer
SELECT FROM TABLE dbtab1 ⇒ FIELDS f1, ⇒ substring(upper('mr joe doe'), 4, 3) AS
f2_sub_up, f3,...

In a program you find this source code

AUTHORITY-CHECK OBJECT '/DWO/TRVL ‘

ID 'CNTRY' FIELD 'DE'

ID ACTVT FIELD '03".

Which of the following apply? Note: There are 2 correct answers to this question.
*
0/1
If the user is NOT authorized for 'CNTRY' = 'DE' OR for 'ACTVT' = '03 then the program will
terminate.

If the user is authorized for 'CNTRY = 'DE' AND for 'ACTVT = '03 then the return code is 0.
AUTHORITY CHECK verifies whether a user is authorized for /DMO/TRVL" with the listed
field values.
If the user is authorized for 'CNTRY = 'DE' then the return code is always 0.

Correct answer
AUTHORITY CHECK verifies whether a user is authorized for /DMO/TRVL" with the listed
field values.
If the user is authorized for 'CNTRY = 'DE' AND for 'ACTVT = '03 then the return code is 0.
Given the following Core Data Services View Entity Data Definition:

The "demo_ods_assoc_spfi 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?
*
0/1

demo_ods_assoc_spfli-connid,
spfli-connid,

_spfli.connid,
demo_ods_assoc_spfli.connid,

Correct answer
_spfli.connid,

In a subclass sub1 you want to redefine a component of a superclass super1. How do


you achieve this? Note: There are 2 correct answers to this question.
*
0/1
You add the clause REDEFINITION to the component in sub1.
You implement the redefined component for a second time in super1.

You implement the redefined component in sub1.


You add the clause REDEFINITION to the component in super1.

Correct answer
You add the clause REDEFINITION to the component in sub1.
You implement the redefined component in sub1.

Which of the following string functions are predicate functions? Note: There are 2
correct answers to this question.
*
0/1
find_any_not_of()
count_any_of()
matches()
contains_any_of()

Correct answer
contains_any_of()
matches()

Given this code,

What are valid statements? Note: There are 3 correct answers to this question

*
0/1

Class CL1 implements the interface.


In class CL2, the interface method is named if1-m1.

Class CL2 uses the interface.


Class CL1 uses the interface.
In class CL1, the interface method is named if-m1.

Correct answer
Class CL2 uses the interface.
Class CL1 uses the interface.
Class CL1 implements the interface.

What RESTful Application Programming feature is used to ensure the uniqueness of a


semantic key?
*
1/1

Action
Determination
Validation
For the assignment,

gv_target = gv_source.

which of the following data declarations will always work without truncation or
rounding? Note:

There are 2 correct answers to this question.


*
0/1
DATA gv_source TYPE d. to DATA gv_target TYPE string.
DATA gv_source TYPE string. To DATA gv_target TYPE c.
DATA gv_source TYPE p LENGTH 8 DECIMALS to DATA gv_target TYPE p LENGTH 16
DECIMALS 2.
DATA gv_source TYPE c. to DATA gv_target TYPE string.

Correct answer
DATA gv_source TYPE d. to DATA gv_target TYPE string.
DATA gv_source TYPE c. to DATA gv_target TYPE string.

You want to define the following CDS view entity with an input parameter:

Define view entity Z_CONVERT

With parameters currency : ???

Which of the following can you use to replace "???? Note: There are 2 correct answers
to this question.

*
0/1

A component of an ABAP Dictionary structure


A data element

A built-in ABAP Dictionary type


A built-in ABAP type

Correct answer
A built-in ABAP Dictionary type
A data element
/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.


*
1/1
Internal table
Simple variable
Structure

You have two internal tables itab1 and itab2.What is true for using the expression
itab1 = corresponding #( itab2 )? Note: There are 2 correct answers to this question.
*
0/1
Fields with the same name and the same type will be copied from itab2 to itab 1.
itab1 and itab2 must have at least one field name in common.
Fields with the same name but with different types may be copied from itab2 to itab1.
itab1 and itab2 must have the same data type.

Correct answer
itab1 and itab2 must have at least one field name in common.
Fields with the same name but with different types may be copied from itab2 to itab1.

Given the following Core Data Services View Entity Data Definition,

Which of the following types are permitted to be used for <source on line #4? Note:
There are 2 correct answers to this question.
*
0/1

A database table from the ABAP Dictionary

An external view from the ABAP Dictionary


A database view from the ABAP Dictionary
A CDS DDIC-based view

Correct answer
A CDS DDIC-based view
A database table from the ABAP Dictionary

Which extensibility type does SAP recommend you use to enhance the existing UI for
an SAP Fiori app?
*
0/1
Developer
Classic

Key user
Side-by-side

Correct answer
Key user

For what kind of applications would you consider using on-stack developer
extensions? Note: There are 2 correct answers to this question.
*
0/1

Applications that provide APIs for side by side SAP BTP apps
Applications that integrate data from several different systems

Applications that run separate from SAP S/4HANA


Applications that access SAP S/4HANA data using complex SQL

Correct answer
Applications that provide APIs for side by side SAP BTP apps
Applications that access SAP S/4HANA data using complex SQL

Which of the following are features of Core Data Services? Note: There are 3 correct
answers to this question.
*
0/1
Annotations
Structured Query Language (SQL)
Delegation
Associations

Inheritance
Correct answer
Associations
Annotations
Structured Query Language (SQL)

When does SAP recommend to use a sorted or a hashed table respectively? Note:
There are 2 correct answers to this question.
*
0/1
A hashed table, when you read a subset in a loop and specify a part of the key from the left
without gaps.
A hashed table, when you read a single record and specify the complete key.

A sorted table, when you read a single record and specify non key fields.

A sorted table, when you read a subset in a loop and specify a part of the key from the left
without gaps.

Correct answer
A hashed table, when you read a single record and specify the complete key.
A sorted table, when you read a subset in a loop and specify a part of the key from the left
without gaps.

Given the following Core Data Service View Entity Data Definition,

when you attempt to activate the definition, what will be the response?
*
0/1
Activation successful
Activation error because the field names of the union do not match
Activation error because the key fields of the union do not match
Activation error because the field types of the union do not match

Correct answer
Activation error because the key fields of the union do not match

Which function call returns 0?


*
0/1
find_any_of (val = "ABAP ABAP abap' sub = "AB")
Count_any_of ( val - ‘ABAP ABAP abap' sub "AB" )
find_any_not_of( val 'ABAP ABAP abap’ sub = 'AB')
Count (val - 'ABAP ABAP abap' sub - 'AB' )

Correct answer
find_any_of (val = "ABAP ABAP abap' sub = "AB")

Which ABAP SQL clause allows the use of inline declarations?


*
0/1
FROM

INTO
FIELDS
INTO CORRESPONDING FIELDS OF

Correct answer
INTO

In ABAP SQL, which of the following retrieves the association field_Airline-Name of


a CDS view?
*
0/1
@_Airline-Name
\_Airline-Name
/_Airline Name

“_Airline Name

Correct answer
@_Airline-Name

In what order are objects created to generate a RESTful Application Programming


application?

1) Database table

2) Service binding

3) Projection view

4) Service definition

5) Data model view

𝐃𝐎𝐍'𝐓 𝐌𝐄𝐌𝐎𝐑𝐈𝐙𝐄 𝐓𝐇𝐄 𝐍𝐔𝐌𝐁𝐄𝐑𝐒 || 𝐒𝐓𝐔𝐃𝐘 𝐓𝐇𝐄 𝐎𝐏𝐓𝐈𝐎𝐍


*
1/1

1⇒5⇒3⇒4⇒2

1⇒2⇒3⇒5⇒4
1⇒2⇒3⇒4⇒5
4⇒5⇒3⇒2⇒1
Given the following Core Data Services View Entity Data Definition:

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 this if you inserted it on line #27
*
0/1

@UI.badge.title.label
@EndUser Text label
@UI headerinto description label

@EndUserText.quickInfo

Correct answer
@EndUserText.quickInfo

Give the following Core Data Service view entity data definition:

Which of the following ABAP SQL snippets are syntactically correct ways to provide
a value for the parameter on line #4? Note: There are 2 correct answers to this
question
*
0/1
SELECT * FROM deno_cds_param_view_entity (p_date = @ (cl_abap_context_info-
>get_system_date ())...

…SELECT * FROM demo_cds_param_view_entity (p_date: 20238181’)…


…SELECT * FROM deno_cds_param_view_entity (p_date - '20230101')…
…SELECT * FROM demo_cds_param_view entity (p_date: $session.system_date)...

Correct answer
…SELECT * FROM demo_cds_param_view entity (p_date: $session.system_date)...
SELECT * FROM deno_cds_param_view_entity (p_date = @ (cl_abap_context_info-
>get_system_date ())...

Given the following Core Data Service View Entity Data Definition:

Using ABAP SQL, which select statement selects the mat field on line #17?
*
0/1

SELECT mat FROM demo_sales_so_i...

SELECT mat FROM Material...


SELECT mat FROM demo_sales_cds_material_ve...
SELECT mat FROM demo_sales_cds_so_i_ve...

Correct answer
SELECT mat FROM demo_sales_cds_so_i_ve...

What are some features of a unique secondary key? Note: There are 2 correct answers
to this question.
*
0/1
It is updated when the modified table is read again.

It is updated when the table is modified.


It is created with the first read access of a table.
It is created when a table is filled.

Correct answer
It is created when a table is filled.
It is updated when the table is modified.

You have the following CDS definition:

Which of the following ON conditions must you insert in place of "???"?


*
1/1

ON Sprojection. Carrier Source2.carrier


ON Sprojection.carrier_id=Z_Source2.carrier_id

ON Sprojection Camer=Source2 carrier_id


ON Z_Source1.camer_id=7_Source2 carrier_id

What are advantages of using a field symbol for internal table row access? Note:
There are 2 correct answers to this question.
*
0/1

The row content is copied to the field symbol instead to a work area
A MODIFY statement to write changed contents back to the table is not required.

Using a field symbol is faster than using a work area.


The field symbol can be reused for other programs.

Correct answer
A MODIFY statement to write changed contents back to the table is not required.
Using a field symbol is faster than using a work area.

Which of the following is a generic internal table type?


*
0/1
SORTED TABLE
HASHED TABLE
INDEX TABLE
STANDARD TABLE

Correct answer
INDEX TABLE

Which of the following are valid sort operations for internal tables? Note: There are 3
correct answers to this question.
*
0/1
Sort a standard table using .SORT itab.
Sort a sorted table using .SORT itab BY field1 ASCENDING field2 DESCENDING.
Sort a sorted table using .SORT itab DESCENDING.
Sort a standard table using .SORT itab BY field1 field2.
Sort a standard table using.SORT itab ASCENDING.

Correct answer
Sort a standard table using.SORT itab ASCENDING.
Sort a standard table using .SORT itab BY field1 field2.
Sort a standard table using .SORT itab.

Given this code,

What are valid statements? Note: There are 3 correct answers to this question.
*
0/1

go_cl1 may call method m1 with go_d1->if1-m1().


go_if1 may call method m2 with go if->m2(...).
Instead of go_cl1 = NEW #() you could use go_iff - NEW #(...).
go_if1 may call method m1 with go_ift->m1().
Instead of go cl1 = NEW #(...) you could use go if1 = NEW cl1(. ... ).

Correct answer
Instead of go cl1 = NEW #(...) you could use go if1 = NEW cl1(. ... ).
go_if1 may call method m1 with go_ift->m1().
go_cl1 may call method m1 with go_d1->if1-m1().

Given this code,

Which of the following statements are correct? Note: There are 2 correct answers to
this question.
*
0/1

row is a predefined name and cannot be chosen arbitrarily.

row is only visible within the loop.


FOR defines a loop that runs over the content of source_itab
source_itab is only visible within the loop.

Correct answer
FOR defines a loop that runs over the content of source_itab
row is only visible within the loop.

Which of the following results in faster access to internal tables? Note: There are 3
correct answers to this question.
*
0/1
In a hashed internal table, specifying the primary key partially from the left without gaps.

In a hashed internal table, specifying the primary key completely.


In a standard internal table, specifying the primary key partially from the left without gaps.
In a sorted internal table, specifying the primary key partially from the left without gaps.
In a sorted internal table, specifying the primary key completely.

Correct answer
In a sorted internal table, specifying the primary key partially from the left without gaps.
In a hashed internal table, specifying the primary key completely.
In a sorted internal table, specifying the primary key completely.

After you created a database table in the RESTful Application Programming model,
what do you create next?
*
1/1
A projection view
A data model view

A metadata extension
A service definition

In RESTful Application Programming, a business object contains which parts? Note:


There are 2 correct answers to this question.
*
0/1
Process definition
CDS view

Authentication rules
Behavior definition

Correct answer
CDS view
Behavior definition

Given the following code in an SAP S/4HANA Cloud private edition tenant:

The class zcl_demo_class is in a software component with the language version set to
"ABAP Cloud". The function module ZF1' is in the same software component. Both
the class and function module are customer created.

Regarding line #6, which of the following is a valid statement?


*
0/1
'ZF1' can be called via a wrapper that itself has been released for cloud development.
'ZF1' can be called via a wrapper that itself has not been released for cloud development.
'ZF1' must be released for cloud development to be called.

'ZF1' can be called whether it has been released or not for cloud development.

Correct answer
'ZF1' can be called via a wrapper that itself has been released for cloud development.

Which of the following are parts of the definition of a new database table? Note:
There are 2 correct answers to this question.
*
0/1
Field list
Semantic table attributes
Partitioning attribues
Extension

Correct answer
Field list
Semantic table attributes

Which patterns raise an exception? Note: There are 3 correct answers to this question.
*
0/1
DATA: gv_target TYPE d. → CONSTANTS: gco_date TYPE d VALUE '20331233'. →
gv_target EXACT ( geo_date).
DATA: gv_target TYPE c LENGTH 5. → CONSTANTS: ECO string TYPE string VALUE
0123456789ABCDEF". → gv_target - EXACT (gco_string+5 (6) ).

DATA: gv_target TYPE string. → CONSTANTS: gco_string TYPE LENGTH 16 VALUE


0123456789ABCDEF*. gv_target = EXACT # gco_string+5 (5) ).

DATA: gv_target TYPE p DECIMALS 2. CONSTANTS: go int1 TYPE i VALUE 3. gv_target -


EXACT (2 gco_int1).
DATA: Ev target TYPE p DECIMALS 3. CONSTANTS: gco_int1 TYPE i VALUE 2. Ev_target
- EXACT #2 / gco_int1 ).

Correct answer
DATA: gv_target TYPE d. → CONSTANTS: gco_date TYPE d VALUE '20331233'. →
gv_target EXACT ( geo_date).
DATA: gv_target TYPE c LENGTH 5. → CONSTANTS: ECO string TYPE string VALUE
0123456789ABCDEF". → gv_target - EXACT (gco_string+5 (6) ).
DATA: gv_target TYPE p DECIMALS 2. CONSTANTS: go int1 TYPE i VALUE 3. gv_target -
EXACT (2 gco_int1).

In class ZCL_CLASS_A, you use the statement DATA var TYPE ***

What may stand in place of ***? Note: There are 2 correct answers to this question.

*
0/1
The name of a type defined privately in another class

The name of a type defined privately in class ZCL_CLASS_A


The name of a data element from the ABAP Dictionary
The name of a domain from the ABAP Dictionary
Correct answer
The name of a type defined privately in class ZCL_CLASS_A
The name of a data element from the ABAP Dictionary

In this nested join below

In which way is the join evaluated?


*
0/1

From the right to the left in the order of the tables:⇒ 1.b is joined with c. || 2.b is joined with
a.

From the top to the bottom in the order of the on conditions⇒ 1.b is joined with c || 2. a is
joined with b
From the bottom to the top in the order of the on conditions:⇒ 1.a is joined with b || 2.b is
joined with c
From the left to the right in the order of the tables:⇒ 1.a is joined with b || 2.b is joined with c

Correct answer
From the top to the bottom in the order of the on conditions⇒ 1.b is joined with c || 2. a is
joined with b

Which statement can you use to change the contents of a row of data in an internal
table?
*
1/1

Append table
Modify table

Insert table
Update table

What are some of the reasons that Core Data Services are preferable to the classical
approach to data modeling? Note: There are 2 correct answers to this question.
*
0/1
They compute results on the application server.
They transfer computational results to the application server.

They implement code pushdown.


They avoid data transfer completely.

Correct answer
They transfer computational results to the application server.
They implement code pushdown.

When accessing the subclass instance through go_super, what can you do? Note:
There are 2 correct answers to this question.
*
1/1

Access the inherited public components.

Access the inherited private components.


Call inherited public redefined methods.

Call a subclass specific public method

What RESTful Application Programming object contains only the fields required for a
particular app?
*
0/1
Metadata extension
Database view
Projection view
Data model view

Correct answer
Projection view

Given the following ABAP SQL statement excerpt from an ABAP program:

You are given the following information:


1. The data source "spfli" on line #2 is an SAP HANA database table

2. "spfli" will be a large table with over one million rows.

3. This program is the only one in the system that accesses the table.

4. 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.
*
0/1

"Load Unit' to 'Page Loadable"


"Storage Type" to "Row Store"
"Storage Type" to "Column Store"

"Load Unit to "Column Loadable"

Correct answer
"Load Unit' to 'Page Loadable"
"Storage Type" to "Column Store"

When processing a loop with the statement DO... ENDDO, what system variable
contains the implicit loop counter?
*
0/1
sy-index
sy-linno

sy-labix
sy-subrc

Correct answer
sy-index

You are designing the following select statement in ABAP Open SQL:
To adhere to the most recent ABAP SQL syntax conventions from SAP, on which line
must you insert the "INTO TABLE @gt flights" clause to complete the SQL
statement?
*
1/1

#15

#8
#4
#6

Given this code,

With Icl_super being superclass for Icl_sub1 and Icl_sub2 and with methods
sub1_meth1 and sub2_meth1 being subclass-specific methods of Id_sub1 or Icl_sub2,
respectively

What will happen when executing these casts? Note: There are 2 correct answers to
this question
*
0/1

go sub2->sub2 meth 1(...). will work


go_sub1 CAST #go_super), will work go_sub2 = CAST #(go_super). will not work.

go_sub1->sub1_meth 1(…). will work.


go sub1 = CAST # go super), will not work go_sub2 = CAST # go super), will work.

Correct answer
go_sub1->sub1_meth 1(…). will work.
go_sub1 CAST #go_super), will work go_sub2 = CAST #(go_super). will not work.

Which RESTful Application Programming object can be used to organize the display
of fields in an app?
*
0/1
Projection view

Service definition
Data model view
Metadata extension

Correct answer
Metadata extension

Which type of legacy code does SAP recommend you eliminate when you review
modifications as part of an SAP S/4HANA system conversion? Note: There are 2
correct answers to this question.
*
0/1
Code that can be redesigned as a key user extension

Code that has less than 10% usage according to usage statistics

Code that supports a critical business process


Code that now is identical to a standard SAP object

Correct answer
Code that can be redesigned as a key user extension
Code that now is identical to a standard SAP object

Match the sequence of execution in the dropdown list to the operation. (1 is the
highest priority and 3 is the lowest priority.)

Addition (+) and Subtraction (-)

Numeric functions
Multiplication (") and Division (/)
*
0/1

1⇒3⇒2

2⇒1⇒2
2⇒3⇒1
1⇒2⇒3

Correct answer
2⇒3⇒1

In RESTful Application Programming, which EML statement retrieves an object?


*
0/1
Select entity
Get entity
Find entity

Read entity

Correct answer
Read entity

Setting a field to read-only in which object would make the field read-only in all
applications of the RESTful Application Programming model?
*
0/1
Projection view

Service definition
Metadata extension
Behaviour definition

Correct answer
Behaviour definition

Which of the following are incomplete ABAP types? Note: There are 2 correct
answers to this question.
*
0/1
String
P

C
T

Correct answer
P
C

Given the following code excerpt that defines an SAP HANA database table:

Which field is defined incorrectly?


*
0/1

field1
field4

field3
field2

Correct answer
field1

Which of the following integration frameworks have been released for ABAP cloud
development? Note: There are 3 correct answers to this question.
*
0/1
OData services

Business Add-ins (BAdls)


Business events
CDS Views
SOAP consumption

Correct answer
OData services
Business events
SOAP consumption

Which internal table type allows unique and non-unique keys?


*
0/1
Standard

Hashed
Sorted

Correct answer
Sorted

In an Access Control Object, which clauses are used? Note: There are 3 correct
answers to this question.
*
0/1
Define role (to specify the role name)

Crant (to identify the data source)


Revoke (to remove access to the data source)

Return code (to assign the retum code of the authority check)
Where (to specify the access conditions)

Correct answer
Where (to specify the access conditions)
Define role (to specify the role name)
Revoke (to remove access to the data source)

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

𝐃𝐎𝐍'𝐓 𝐌𝐄𝐌𝐎𝐑𝐈𝐙𝐄 𝐓𝐇𝐄 𝐍𝐔𝐌𝐁𝐄𝐑𝐒 || 𝐒𝐓𝐔𝐃𝐘 𝐓𝐇𝐄 𝐎𝐏𝐓𝐈𝐎𝐍


*
0/1

1⇒2⇒4⇒3

3⇒4⇒1⇒2
1⇒4⇒3⇒2
2⇒1⇒3⇒4

Correct answer
1⇒4⇒3⇒2

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?
*
1/1

RAP BO Node Extension

Business Service Extension


RAP BO Behavior Extension
SAP HANA database table extension

Given the following code in an SAP S/4HANA Cloud private edition tenant:

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.
*
0/1
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 whether it is released or not for cloud development
ZF1' can be called only if it is released for cloud development.

Correct answer
ZF1' can be called only if it is released for cloud development.
'ZF1' can be called if a wrapper is created for it and the wrapper itself is released for cloud
development.

What are some characteristics of secondary keys for internal tables? Note: There are 3
correct answers to this question.
*
0/1
Sorted secondary keys do NOT have to be unique.

Hashed secondary keys do NOT have to be unique.


Secondary keys can only be created for standard tables.
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.

Correct answer
Multiple secondary keys are allowed for any kind of internal table.
Secondary keys must be chosen explicitly when you actually read from an internal table.
Sorted secondary keys do NOT have to be unique.

In the following ABAP SQL code, what are valid case distinctions? Note: There are 2
correct answers to this question.
0/1
SELECT FROM dbtab1 FIELDS F1, CASE WHEN F2 = '1' THEN 'Value 1 WHEN f2'2'
THEN 'Value 2' ELSE "Value for the rest' END AS f case INTO TABLE @et t1.

SELECT FROM dbtab1 FIELDS F1, CASE WHEN F2 = '1' THEN "Value 1' WHEN f2 < f3
AND f2 = ‘2’ THEN "Value 2' WHEN OTHERS 'Value for the rest' ENDCASE AS f_case
INTO TABLE @gt t1.
SELECT FROM dbtab1 FIELDS f1, CASE f2 WHEN ‘1’ THEN 'Value 1' WHEN '2' THEN
'Value 2'ELSE “Value for the rest’ END AS f_case INTO TABLE @gt_t1.
SELECT FROM dbtab1 FIELDS F1, CASE f2, WHEN ‘1’ THEN 'Value 1', WHEN ‘2’ THEN
'Value 2', WHEN OTHERS "Value for the rest", ENDCASE AS f_case INTO TABLE @gt t1.

Correct answer
SELECT FROM dbtab1 FIELDS F1, CASE WHEN F2 = '1' THEN 'Value 1 WHEN f2'2'
THEN 'Value 2' ELSE "Value for the rest' END AS f case INTO TABLE @et t1.
SELECT FROM dbtab1 FIELDS f1, CASE f2 WHEN ‘1’ THEN 'Value 1' WHEN '2' THEN
'Value 2'ELSE “Value for the rest’ END AS f_case INTO TABLE @gt_t1.

Which of the following ABAP SQL statements are valid? Note: There are 2 correct
answers to this question.
*
0/1
SELECT FROM /dmo/connection → FIELDS → MAX(distance) AS dist_max →
MIN(distance) AS dist_min → INTO TABLE @DATA(It_hits).

SELECT FROM /dmo/connection → FIELDS → carrid, airpfrom, → MAX( distance) AS


dist_max, → MIN(distance) AS dist_min → INTO TABLE @DATA(It_hits)
SELECT FROM /dmo/connection → FIELDS → carrid airpfrom, → MAX(distance) AS
dist_max, → MIN( distance) AS dist_min → GROUP BY carrid, airpfrom → INTO TABLE
@DATA(It_hits)
SELECT FROM /dmo/connection → FIELDS → carrid, → airpfrom → GROUP BY carrid,
connid → INTO TABLE @DATA(It_hits).

Correct answer
SELECT FROM /dmo/connection → FIELDS → MAX(distance) AS dist_max →
MIN(distance) AS dist_min → INTO TABLE @DATA(It_hits).
SELECT FROM /dmo/connection → FIELDS → carrid airpfrom, → MAX(distance) AS
dist_max, → MIN( distance) AS dist_min → GROUP BY carrid, airpfrom → INTO TABLE
@DATA(It_hits)

Why would you use Access Controls with CDS Views? Note: There are 2 correct
answers to this question.
*
0/1
Only the data corresponding to the user's authorization is transferred from the database to
the application layer.
All of the data from the data sources is loaded into your application automatically and filtered
there according to the user's authorization.
You do not have to remember to implement AUTHORITY CHECK statements.
The system field sy-subrc is set, giving you the result of the authorization check

Correct answer
You do not have to remember to implement AUTHORITY CHECK statements.
Only the data corresponding to the user's authorization is transferred from the database to
the application layer.

Given the following code in an SAP S/4HANA Cloud private edition tenant:

The class zcl_demo_class is in a software component with the language version set to
"Standard ABAP". The function module "ZF1' is in a software component with the
language version set to "ABAP Cloud". Both the class and function module are
customer created.

Regarding line #6, which of the following is a valid statement?


*
0/1

ZF1' can be called via a wrapper that itself has not been released for cloud development.

ZF1' can be called whether it has been released or not for cloud development.
'ZF1' can be called via a wrapper that itself has been released for cloud development.
ZF1' must be released for cloud development to be called.

Correct answer
ZF1' must be released for cloud development to be called.

Given this code,

What are valid statements? Note: There are 2 correct answers to this question
*
0/1
The code creates an exception object and raises an exception.

"param1" and "param2" are predefined names.


"zcx1" is a dictionary structure, and "param1" and "param2" are same-named components of
this structure.
"previous" expects the reference to a previous exception

Correct answer
"previous" expects the reference to a previous exception
"param1" and "param2" are predefined names.

What are some properties of database tables? Note: There are 2 correct answers to this
question.
*
0/1
They may have key fields.
They can have relationships to other tables.

They store information in two dimensions.


They can have any number of key fields.

Correct answer
They may have key fields.
They can have relationships to other tables.

What is the purpose of a foreign key relationship between two tables in the ABAP
Dictionary?
*
0/1
To ensure the integrity of data in the corresponding database tables
To create a corresponding foreign key relationship in the database

To document the relationship between the two tables

Correct answer
To document the relationship between the two tables
Which of the following actions cause an indirect change to a database table requiring a
table conversion? Note: There are 2 correct answers to this question.
*
0/1
Changing the field labels of a data element that is used in the table definition.
Renaming a field in a structure that is included in the table definition

Deleting a field from a structure that is included in the table definition.


Shortening the length of a domain used in a data element that is used in the table definition.

Correct answer
Shortening the length of a domain used in a data element that is used in the table definition.
Renaming a field in a structure that is included in the table definition

What is the sequence priority when evaluating a logical expression?

NOT

OR

AND

Match the sequence of execution in the dropdown list to the operation. (1 is the
highest priority and 3 is the lowest priority.)
*
0/1

1⇒2⇒3
3⇒1⇒2
1⇒3⇒2
2⇒1⇒2

Correct answer
1⇒3⇒2

You have attached a system field to an input parameter of a CDS view entity as
follows:

What are the effects of this annotation? Note: There are 2 correct answers to this
question.
*
0/1
It is no longer possible to pass your own value to the parameter.
The value of sy-langu will be passed to the CDS view automatically when you use the CDS
view in ABAP but not when you use it in another view entity
The value of sy-langu will be passed to the CDS view automatically both when you use the
CDS view in ABAP and in another CDS view entity (view on view).
You can still override the default value with a value of your own.

Correct answer
You can still override the default value with a value of your own.
The value of sy-langu will be passed to the CDS view automatically both when you use the
CDS view in ABAP and in another CDS view entity (view on view).

You might also like