ABAP Cloud Development Model

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which function call returns 0?

  • `count_any_of (val - 'ABAP ABAP abap' sub = 'AB')`
  • `find_any_of (val = 'ABAP ABAP abap' sub = 'AB')` (correct)
  • `find_any_not_of(val 'ABAP ABAP abap' sub = 'AB')`
  • `count (val - 'ABAP ABAP abap' sub = 'AB')`

In which products must you use the ABAP Cloud Development Model?

  • SAP BTP, ABAP environment (correct)
  • SAP S/4HANA Cloud, public edition (correct)
  • SAP S/4HANA Cloud, private edition
  • SAP S/4HANA on premise

Which RESTful Application Programming object can be used to organize the display of fields in an app?

  • Data model view
  • Metadata extension (correct)
  • Projection view
  • Service definition

Given code accessing a subclass instance through the superclass, what can you do?

<p>Call inherited public redefined methods. (B), Access the inherited public components. (D)</p>
Signup and view all the answers

Regarding line #6, which of the following are valid statements?

<p><code>ZF1</code> can be called only if it is released for cloud development. (A), <code>ZF1</code> can be called if a wrapper is created for it and the wrapper itself is released for cloud development. (D)</p>
Signup and view all the answers

You have attached a system field to an input parameter of a CDS view entity as follows: define view entity Z_ENTITY with parameters @Environment.SystemField: #SYSTEM_LANGUAGE language : spras What are the effects of this annotation?

<p>The value of <code>sy-langu</code> 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). (A), You can still override the default value with a value of your own. (D)</p>
Signup and view all the answers

In the assignment: data (gv_result) = 1 / 8. What will be the data type of gv_result?

<p>TYPE I (D)</p>
Signup and view all the answers

Given the code, what are valid statements?

<p>Class <code>CL1</code> implements the interface. (A), Class <code>CL1</code> uses the interface. (B), Class <code>CL2</code> uses the interface. (D)</p>
Signup and view all the answers

What will happen when executing these casts?

<p><code>go_sub1-&gt;sub1_meth 1(...).</code> will work. (A), <code>go_sub2 = CAST #(go super),</code> will work. (B)</p>
Signup and view all the answers

Setting a field to read-only in which object would make the field read-only in all applications of the RESTful Application Programming model?

<p>Behaviour definition (C)</p>
Signup and view all the answers

What are some features of a unique secondary key?

<p>It is created when a table is filled. (B), It is updated when the table is modified. (D)</p>
Signup and view all the answers

Which of the following results in faster access to internal tables?

<p>In a sorted internal table, specifying the primary key completely. (B), In a sorted internal table, specifying the primary key partially from the left without gaps. (C), In a hashed internal table, specifying the primary key completely. (D)</p>
Signup and view all the answers

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 ???

<p>A data element (A), A built-in ABAP Dictionary type (C)</p>
Signup and view all the answers

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

<p>Addition (+) and Subtraction (-) = 3 Numeric functions = 1 Multiplication (*) and Division (/) = 2</p>
Signup and view all the answers

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

<p>You implement the redefined component in sub1. (A), You add the clause REDEFINITION to the component in sub1. (C)</p>
Signup and view all the answers

In a program you find the source code AUTHORITY-CHECK OBJECT '/DWO/TRVL' ID 'CNTRY' FIELD 'DE' ID ACTVT FIELD '03'. Which of the following apply?

<p>If the user is authorized for <code>CNTRY = 'DE'</code> AND for <code>ACTVT = '03</code> then the return code is 0. (A), <code>AUTHORITY-CHECK</code> verifies whether a user is authorized for <code>/DMO/TRVL</code> with the listed field values. (C)</p>
Signup and view all the answers

Which of the following are valid sort operations for internal tables?

<p>Sort a standard table using SORT itab ASCENDING. (A), Sort a standard table using SORT itab. (C), Sort a standard table using SORT itab BY field1 field2. (E)</p>
Signup and view all the answers

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

<p>Modify table (C)</p>
Signup and view all the answers

In an Access Control Object, which clauses are used?

<p><code>Where</code> (to specify the access conditions) (B), <code>Define role</code> (to specify the role name) (C), <code>Revoke</code> (to remove access to the data source) (E)</p>
Signup and view all the answers

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?

<p>#15 (B)</p>
Signup and view all the answers

Given code with predicate conditions what predicate condition can you ensure that the CAST will work?

<p><code>IS INSTANCE OF</code> (D)</p>
Signup and view all the answers

What is the sequence priority when evaluating a logical expression?

<p>OR (A), NOT (B), AND (C)</p>
Signup and view all the answers

Which of the following are parts of the definition of a new database table?

<p>Field list (A), Semantic table attributes (B)</p>
Signup and view all the answers

In a RESTful Application Programming application, in which objects do you bind a CDS view to create a value help?

<p>Metadata extension (A), Data model view (C), Service definition (D)</p>
Signup and view all the answers

Which of the following are incomplete ABAP types?

<p>C (A), C (D)</p>
Signup and view all the answers

Which of the following integration frameworks have been released for ABAP cloud development?

<p>Business events (B), SOAP consumption (C), OData services (E)</p>
Signup and view all the answers

Which of the following ABAP SQL statements are valid?

<p><code>SELECT FROM /dmo/connection FIELDS carrid airpfrom, MAX(distance) AS dist_max, MIN(distance) AS dist_min GROUP BY carrid, airpfrom</code> (B), <code>SELECT FROM /dmo/connection FIELDS MAX(distance) AS dist_max MIN(distance) AS dist_min INTO TABLE @DATA(It_hits).</code> (C)</p>
Signup and view all the answers

Given the code, which of the following is a valid statement?

<p><code>ZF1' must be released for cloud development to be called.</code> (D)</p>
Signup and view all the answers

In ABAP SQL, which of the following retrieves the association field _Airline-Name of a CDS view?

<p>@ Airline-Name (B)</p>
Signup and view all the answers

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

<p>Sorted (B)</p>
Signup and view all the answers

In ABAP SQL, which of the following can be assigned an alias?

<p>database table (A), field (from field list) (C)</p>
Signup and view all the answers

Which patterns raise an exception?

<p><code>DATA: gv_target TYPE c LENGTH 5. CONSTANTS: ECO string TYPE string VALUE 0123456789ABCDEF.</code> (A), <code>DATA: gv_target TYPE p DECIMALS 2. CONSTANTS: go int1 TYPE i VALUE 3. gv_target - EXACT (2 gco_int1).</code> (B), <code>DATA: gv_target TYPE d. CONSTANTS: gco_date TYPE d VALUE '20331233'</code> <code>gv_target EXACT ( geo_date).</code> (C)</p>
Signup and view all the answers

Which of the following are features of Core Data Services?

<p>Associations (A), Structured Query Language (SQL) (C), Annotations (E)</p>
Signup and view all the answers

Why would you use Access Controls with CDS Views?

<p>Only the data corresponding to the user's authorization is transferred from the database to the application layer. (A), You do not have to remember to implement AUTHORITY CHECK statements. (B)</p>
Signup and view all the answers

Which ABAP SQL clause allows the use of inline declarations?

<p>IN (D)</p>
Signup and view all the answers

What RESTful Application Programming object contains only the fields required for a particular app?

<p>Projection view (B)</p>
Signup and view all the answers

After you created a database table in the RESTful Application Programming model, what do you create next?

<p>A data model view (B)</p>
Signup and view all the answers

Flashcards

find_any_of function

Returns 0 if the substring 'AB' is found in the string 'ABAP ABAP abap'.

ABAP Cloud Development Model

Must be used in SAP BTP, ABAP environment, and SAP S/4HANA Cloud, public edition.

Data model view

Organizes the display of fields in a RESTful Application Programming app.

Subclass Instance Access

Access the inherited public components and Call inherited public redefined methods.

Signup and view all the flashcards

Calling Function Modules in ABAP Cloud

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

Signup and view all the flashcards

Effects of Annotation

You can still override the default value with a value of your own and 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).

Signup and view all the flashcards

Data Type of gv_result

TYPE I

Signup and view all the flashcards

Interface Usage

Class CL2 uses the interface and Class CL1 implements the interface.

Signup and view all the flashcards

Casting Result

go_sub1->sub1_meth1(...). will work. and go_sub2 = CAST #(go_super), will work.

Signup and view all the flashcards

RESTful behaviors

Setting a field to read-only in which object would make the field read-only in all applications of the RESTful Application Programming model?

Signup and view all the flashcards

Uniqueness of secondary key

It is created when a table is filled and it is updated when the table is modified.

Signup and view all the flashcards

Fast Access

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

Signup and view all the flashcards

Paramater replacement

A built-in ABAP Dictionary type and a data element.

Signup and view all the flashcards

Operation Sequence

Numeric functions. Multiplication (*) and Division (/). Addition (+) and Subtraction (-)

Signup and view all the flashcards

Clause additions to ABAP

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

Signup and view all the flashcards

ABAP Checks

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.

Signup and view all the flashcards

Valid sorting

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.

Signup and view all the flashcards

Internal modification

Modify table.

Signup and view all the flashcards

Data Access

Where (to specify the access conditions), Define role (to specify the role name), Crant (to identify the data source)

Signup and view all the flashcards

Completion of SQL

#15

Signup and view all the flashcards

Will a cast work

Predicates: Is Instance Of

Signup and view all the flashcards

sequence priority

Logic expression

Signup and view all the flashcards

New database table

Semantic

Signup and view all the flashcards

Create value help

Data model view. Service definition . Metadata extension

Signup and view all the flashcards

integration frameworks

OData, Business events and SOAP

Signup and view all the flashcards

Valid statements

The pragmas is not checked and ##NEEDED is checked.

Signup and view all the flashcards

Study Notes

ABAP Cloud Development Model

  • Products that require the ABAP Cloud Development Model include SAP BTP (ABAP environment) and SAP S/4HANA Cloud (public edition).

RESTful Application Programming

  • Metadata extensions are used to organize the display of fields in RESTful applications.

Superclass and Subclass Access

  • When accessing a subclass instance through a superclass reference, inherited public components and inherited public redefined methods can be accessed.

ABAP Cloud Private Edition Tenant

  • If the class zcl_demo_class has the language version set to "ABAP Cloud", and the function module ZF1 is in a different software component with the language version set to "Standard ABAP," then ZF1 can be called only if it is released for cloud development.
  • ZF1 can also be called if a wrapper is created for it and the wrapper itself is released for cloud development.

CDS View Entity Effects

  • When a system field is attached to an input parameter of a CDS view entity using the @Environment.SystemField: #SYSTEM_LANGUAGE annotation, you can still override the default value with your own value.
  • Additionally, 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).

Results of Data Assignment

  • When assigning data (gv_result) = 1 / 8., the data type of gv_result will be TYPE I (integer).

Interface usage in classes

  • If a class CL2 DEFINITION has INTERFACES if1, then Class CL2 uses the interface and Class CL1 implements the interface are valid statements.
  • In class CL2, the interface method is named if1~m1.

Superclasses and Subclasses

  • Given a superclass lcl_super and subclasses lcl_sub1 and lcl_sub2, and with methods sub1_meth1 and sub2_meth1 being subclass-specific methods of lcl_sub1 and lcl_sub2 respectively, the following will work when executing these casts: go_sub1->sub1_meth1(...) and go_sub2 = CAST #(go_super).

Setting Field Visibility

  • Setting a field to read-only in the behavior definition will make the field read-only in all applications of the RESTful Application Programming model.

Unique Secondary Key Features

  • A unique secondary key is created when a table is filled and updated when the table is modified.

Internal Tables and Faster Access

  • Faster access to internal tables results when specifying the primary key partially from the left without gaps in a sorted internal table.
  • Also, faster access results from specifying the primary key completely in a hashed internal table or specifying the primary key completely in a sorted internal table.

CDS View Entity and Input Parameters

  • When defining a CDS view entity with an input parameter, such as Define view entity Z_CONVERT With parameters currency : ???, you can use a built-in ABAP Dictionary type or a data element to replace ???.

Operator Priority

  • The sequence of execution priority is Numeric functions, Multiplication (*) and Division (/), and finally Addition (+) and Subtraction (-).

Subclass Redefinition of Superclass Component

  • In a subclass, the clause REDEFINITION is added to the component and the redefined component is implemented in sub1.

Authority Check

  • AUTHORITY-CHECK verifies whether a user is authorized with the listed field values and if the user is authorized for 'CNTRY = 'DE' AND for 'ACTVT = '03', then the return code is 0.

Valid Sort Operations for Internal Tables

  • Valid sort operations for internal tables include SORT itab ASCENDING.
  • Also, SORT itab BY field1 field2 and SORT itab are valid.

Modifying Internal Table Contents

  • Use the MODIFY statement to change the contents of a row of data in an internal table.

Access Control Object Clauses

  • Clauses used in an Access Control Object include Where to specify access conditions, Define role to specify the role name and Grant to identify the data source.

Completing SQL Statements

  • To adhere to the most recent ABAP SQL syntax conventions, the INTO TABLE @gt_flights must be inserted on the last line of the select statement to complete the SQL statement.

Ensuring CAST works

  • To ensure that the CAST will work, use IS INSTANCE OF.

Logical Expression Priority

  • The sequence priority when evaluating a logical expression is NOT, then AND, then OR.

Definition of a Database Table

  • A field list and semantic table attributes are parts of the definition of a new database table.

Binding Objects and CDS Views

  • In a RESTful Application Programming application, you would bind a CDS view in the data model view, service definition, and metadata extension to create a value help.

Incomplete ABAP Types

  • Incomplete ABAP types are and C

Integration Frameworks for ABAP Cloud Development

  • ABAP Cloud Development has released integration frameworks such as OData services, business events, and SOAP consumption.

Valid Statements

  • Given the code, go_if1 may call method m1 with go_ift->m1() and go_cl1 may call method m1 with go_cl1->if1~m1() are valid statements

Valid ABAP SQL Statements

  • Valid ABAP SQL statements include: SELECT FROM /dmo/connection FIELDS MAX(distance) AS dist_max MIN(distance) AS dist_min INTO TABLE @DATA(lt_hits).
  • Also valid is SELECT FROM /dmo/connection FIELDS carrid, airpfrom GROUP BY carrid, connid INTO TABLE @DATA(lt_hits) and SELECT FROM /dmo/connection FIELDS carrid, airpfrom, MAX(distance) AS dist_max, MIN(distance) AS dist_min GROUP BY carrid, airpfrom.

Valid Statements in the code

  • ZFI is possible to call only whether that is released for cloud development.

Retrieving Association Field in ABAP SQL

  • In ABAP SQL, _Airline Name retrieves the association field _Airline-Name of a CDS view.

Internal Table Types

  • The sorted internal table type allows unique and non-unique keys.

Assigning an Alias in ABAP SQL

  • In ABAP SQL, a field (from field list) and a database table can be assigned an alias.

Patterns raising and Exception

  • DATA: gv_target TYPE p DECIMALS 2. CONSTANTS: gco_int1 TYPE i VALUE 3. gv_target = EXACT #(2 / gco_int1). raises an exception.
  • In addition, These patterns raise an exception:
  • DATA: gv_target TYPE d.CONSTANTS: gco_date TYPE d VALUE '20331233'. gv_target = EXACT #( gco_date).
  • DATA: gv_target TYPE c LENGTH 5. CONSTANTS: gco_string TYPE string VALUE '0123456789ABCDEF'. gv_target = EXACT #(gco_string+5(6)).

Core Data Services Features

  • Associations, annotations, and Structured Query Language (SQL) are features of Core Data Services.

Access Controls with CDS Views

  • Using Access Controls with CDS Views means that you do not have to remember to implement AUTHORITY-CHECK statements and that only the data corresponding to the user's authorization is transferred from the database to the application layer.

ABAP SQL Clause for Inline Declarations

  • The IN keyword allows the use of inline declarations.

RESTful App Programming with Projection View Object

  • The RESTful Application Programming projection view object contains only the fields required for a particular app.

RESTful Programming - Next Steps after database creation

  • After creating a database table in the RESTful Application Programming model, the data model view is then created.

Statement DATA var TYPE

  • The name of a type defined privately in class ZCL_CLASS_A and the name of a data element from the ABAP Dictionary could all stand with the DATA var statement.

Extensibility Type Recommendation

  • SAP recommends using the key user extensibility type to enhance the existing UI for an SAP Fiori app.

RESTful Application Programming EML Statement

  • In RESTful Application Programming, the read entity EML statement retrieves an object.

Advantages of Field Symbol

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

Foreign Key in ABAP Dictionary

  • The purpose of a foreign key relationship between two tables in the ABAP Dictionary is to document the relationship between the two tables.

System Variable in Internal Table Processing

  • When processing an internal table with the statement LOOP AT itab... ENDLOOP, the system variable sy-tabix contains the current row number.

Objects Creation

  • RESTful Application Programming application objects are generally created in this order: Database table, Data model view, Service definition, and finally Service binding.

Reasons to use Core Data

  • They transfer computational results to the application server and they implement code pushdown.

Semantic Key

  • Validation is the RESTful Application Programming feature used to ensure the uniqueness of a semantic key.

ZCX1 code

  • The previous expects the reference to a previous exception and The code creates an exception object and raises an exception.

Code that will not work

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

Kind of applications using extensions

  • On-stack developer extensions should be used for Applications that provide APIs for side by side SAP BTP apps and applications that access SAP S/4HANA data using complex SQL.

Data Definition

  • To provide a short description of the data definition for developers, use @EndUserText.quickInfo

Need Data type

  • The Syntax checker checks both ##NEEDED and #EC_NEEDED

ABAP Cloud

  • If the function module ZF1' is In a sap component with the module released for cloud development

Permitted Types

  • Permitted types include CDS DDIC-based view and a database table from the ABAP dictionary.

The / operator

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

What has SAP say?

  • When you read a single record and specify the complete key and when you read a subset in a loop and specify a part of the key from the left without gaps.

What does the SAP recommend

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

System error

  • The implicit Loop counter is sy-index

Changes

  • 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

Valid Rules

  • 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.

Strings to look after

  • Contains_any_of() is a string to look after with Matches ()

Resful Application

  • Resful Application is CDS view and Behavior definition

code exepct

  • Code expect for field is Field1

Program sequence

  • The program sequence to start is with Instance Constructor

Key point

  • the keypoint in the database table is that have may key points and They can have relationships to other tables.

What to do with the nested join

  • FROM THE TOP
    • b joins with c and the a joins with b

Exposes code

  • Spfli.conid is the code to expose the source

Extentiosn

  • Always recommend for RAP BO Node Extentions

Which statement is to be considered

  • "Load Unit' to 'Page Loadable

Secondary Keys

  • Secondary keys in the database table will let you do the following
    • Multiple secondary keys are allowed for any kind of internal table.

Which value to look after

  • ....value to look after is the following p_date: $session.system_date

You have the following CDS definition

  • The CDS must have to insert following line ,ON Sprojection.carrier_id=Z_Source2.carrier_id

Expressions table value

  • the table values must have at least the same field in common to not make an error

String table

  • subestring is the most correct for the type of tables that we are working with

Datatypes

  • if data type is a mix of sting table and date it can perform with to the right data as source

The key in the DATA

  • the error is the the table key DATA does not Match

correct statement material field

  • C. is best to SELECT code

Internal value

  • Internal is best INDEX

type variable

  • is best to be a structured type

In the SELECT

    • its is where select from the database

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Use Quizgecko on...
Browser
Browser