0% found this document useful (0 votes)
14 views7 pages

SAP

The document contains a series of questions and answers related to ABAP Cloud Development Model, database operations, and CDS views. It covers topics such as reading data from tables, defining case expressions, and implementing access controls. Additionally, it discusses best practices for extending SAP S/4HANA Cloud systems and the implications of various annotations in CDS views.

Uploaded by

Pratik Wani
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)
14 views7 pages

SAP

The document contains a series of questions and answers related to ABAP Cloud Development Model, database operations, and CDS views. It covers topics such as reading data from tables, defining case expressions, and implementing access controls. Additionally, it discusses best practices for extending SAP S/4HANA Cloud systems and the implications of various annotations in CDS views.

Uploaded by

Pratik Wani
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

Question 1

Which of the following are ABAP Cloud Development Model rules? Note:
There are 2 correct answers to this question.?
> Use public SAP APIs and SAP extension points.
> Build ABAP RESTful application programming model-based services.

Question 2
Which statement reads a single row from a database table?
➢ SELECT SINGLE ...

Question 3
You want to read data from two database tables so that the SELECT statement
returns a single result set that contains no duplicate entries. Which of the
following techniques would you use?
➢ UNION

Question 4
Choose the correct case expression.
➢ CASE smoker
WHEN 'X' THEN loccuram + 100
ELSE loccuram
END AS inc_smoker_charge
➢ CASE
WHEN smoker = 'X' AND custtype = 'B' THEN loccuram + 100
WHEN smoker = 'X' AND custtype = 'P' THEN loccuram + 200
ELSE loccuram
END AS inc_smoker_charge
Question 5
In the Restful ABAP model, You need to display an error text. Where do you
create it?
➢ In a message class.

Question 6
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.
➢ You implement the redefined component in sub1.
➢ You add the clause REDEFINITION to the component in sub1.

Question 7
Scenario: A company wants to extend their S/4HANA Cloud system without
disrupting the core. They need a robust solution for complex business processes.
Which approach should they take?
➢ Use SAP BTP for Side-by-Side extensions

Question 8
Which of the following annotations can be mandatory in the definition of a CDS
view entity?
➢ @[Link]

Question 9
DATA: <var> TYPE zcds_view.
zcds_view is a CDS view.
What variable type is <var> ?
➢ Structure
Question 10
What RESTful Application Programming feature is used to ensure the
uniqueness of a semantic key?
➢ Validation

Question 11
IN SAP ABAP, why would you use Access Controls with CDS Views?
There are 2 correct answers.
➢ 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.

Question 12
When you create a database table to generate a RAP application, you must
create a client field. Which data type must it have?
➢ The built-in ABAP Dictionary type [Link].
Question 13

DEFINE VIEW ENTITY zcds_demo AS SELECT FROM sbook as _source_1


ASSOCIATION TO sflight as _source_2
ON <join condition>
{
key carrid as carrier,
connid as connection,
_source_2
}
Both data source sbook and sflight are joined by field carrid.
Which of the following ON conditions must you insert in place of <join
condition>?
➢ $[Link] = _source_2.carrid

Question 14
Choose the correct statement in an ABAP SQL field list to get OUTPUT
as 'JOE' for INPUT 'mr joe doe’

➢ SELECT FROM TABLE dbtab FIELDS f1, substring(upper('mr joe


doe’), 4, 3) AS f2, f3,...
Question 15
The class zcl_demo_class is in a software component with the language version
set to "Standard ABAP". The function module ZFl1' is in a software component
with the language version set to "ABAP Cloud".
Both the class and function module are customer created.

CLASS zcl_demo_class DEFINITION.


PUBLIC SECTION. " Best practice to specify a visibility section
METHODS: m1.
ENDCLASS.

CLASS zcl_demo_class IMPLEMENTATION.


METHOD m1.
CALL FUNCTION 'ZF1'.
ENDMETHOD.
ENDCLASS.
Regarding line # 6, which of the following is a valid statement? Note: There
are 2 correct answers.

➢ '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.

Question 16
Data (lv_result) = 1/8.
what will be the data type of lv_result?
➢ TYPE I
Question 17
Which of the following are the stack layers that classical extensibility refers to?
There are 3 correct answers to this question.
➢ Middle
➢ Key User
➢ Data

Question 18

Which of the following parts of a behavior definition are generated


automatically?

➢ Create, update, and delete operations


➢ Draft enabling

Question 19
1. The client is using SAP S/4HANA Cloud public edition and also SAP
BTP ABAP environment.
2. The client currently using an SAP Fiori app based on SAP Fiori elements that
analyzes open orders. Want to extend 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
end-user.
3. The client has been informed by SAP that all underlying stack layers for the
SAP Fiori app have been extensibility enabled.
Based on the above points, which of the following extension types would you
recommend to the client to add the new button?

➢ RAP BO Node Extension

Question 20
Which statement can you use to change the contents of a row of data in an
internal table?
➢ Modify table
Question 21
What are the effects of this annotation?
define view entity Z_ENTITY with parameters
@[Link]: #SYSTEM_LANGUAGE
language: spras...
Note: There are 2 correct answers to this question.

➢ 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