Podcast
Questions and Answers
Which function call returns 0?
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?
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?
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?
Given code accessing a subclass instance through the superclass, what can you do?
Regarding line #6, which of the following are valid statements?
Regarding line #6, which of the following are valid statements?
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?
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?
In the assignment:
data (gv_result) = 1 / 8.
What will be the data type of gv_result
?
In the assignment:
data (gv_result) = 1 / 8.
What will be the data type of gv_result
?
Given the code, what are valid statements?
Given the code, what are valid statements?
What will happen when executing these casts?
What will happen when executing these casts?
Setting a field to read-only in which object would make the field read-only in all applications of the RESTful Application Programming model?
Setting a field to read-only in which object would make the field read-only in all applications of the RESTful Application Programming model?
What are some features of a unique secondary key?
What are some features of a unique secondary key?
Which of the following results in faster access to internal tables?
Which of the following results in faster access to internal tables?
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 ???
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 ???
Match the sequence of execution to the dropdown list to the operation (1 is the highest priority and 3 is the lowest priority).
Match the sequence of execution to the dropdown list to the operation (1 is the highest priority and 3 is the lowest priority).
In a subclass sub1 you want to redefine a component of a superclass super1. How do you achieve this?
In a subclass sub1 you want to redefine a component of a superclass super1. How do you achieve this?
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?
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?
Which of the following are valid sort operations for internal tables?
Which of the following are valid sort operations for internal tables?
Which statement can you use to change the contents of a row of data in an internal table?
Which statement can you use to change the contents of a row of data in an internal table?
In an Access Control Object, which clauses are used?
In an Access Control Object, which clauses are used?
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?
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?
Given code with predicate conditions what predicate condition can you ensure that the CAST
will work?
Given code with predicate conditions what predicate condition can you ensure that the CAST
will work?
What is the sequence priority when evaluating a logical expression?
What is the sequence priority when evaluating a logical expression?
Which of the following are parts of the definition of a new database table?
Which of the following are parts of the definition of a new database table?
In a RESTful Application Programming application, in which objects do you bind a CDS view to create a value help?
In a RESTful Application Programming application, in which objects do you bind a CDS view to create a value help?
Which of the following are incomplete ABAP types?
Which of the following are incomplete ABAP types?
Which of the following integration frameworks have been released for ABAP cloud development?
Which of the following integration frameworks have been released for ABAP cloud development?
Which of the following ABAP SQL statements are valid?
Which of the following ABAP SQL statements are valid?
Given the code, which of the following is a valid statement?
Given the code, which of the following is a valid statement?
In ABAP SQL, which of the following retrieves the association field _Airline-Name of a CDS view?
In ABAP SQL, which of the following retrieves the association field _Airline-Name of a CDS view?
Which internal table type allows unique and non-unique keys?
Which internal table type allows unique and non-unique keys?
In ABAP SQL, which of the following can be assigned an alias?
In ABAP SQL, which of the following can be assigned an alias?
Which patterns raise an exception?
Which patterns raise an exception?
Which of the following are features of Core Data Services?
Which of the following are features of Core Data Services?
Why would you use Access Controls with CDS Views?
Why would you use Access Controls with CDS Views?
Which ABAP SQL clause allows the use of inline declarations?
Which ABAP SQL clause allows the use of inline declarations?
What RESTful Application Programming object contains only the fields required for a particular app?
What RESTful Application Programming object contains only the fields required for a particular app?
After you created a database table in the RESTful Application Programming model, what do you create next?
After you created a database table in the RESTful Application Programming model, what do you create next?
Flashcards
find_any_of function
find_any_of function
Returns 0 if the substring 'AB' is found in the string 'ABAP ABAP abap'.
ABAP Cloud Development Model
ABAP Cloud Development Model
Must be used in SAP BTP, ABAP environment, and SAP S/4HANA Cloud, public edition.
Data model view
Data model view
Organizes the display of fields in a RESTful Application Programming app.
Subclass Instance Access
Subclass Instance Access
Signup and view all the flashcards
Calling Function Modules in ABAP Cloud
Calling Function Modules in ABAP Cloud
Signup and view all the flashcards
Effects of Annotation
Effects of Annotation
Signup and view all the flashcards
Data Type of gv_result
Data Type of gv_result
Signup and view all the flashcards
Interface Usage
Interface Usage
Signup and view all the flashcards
Casting Result
Casting Result
Signup and view all the flashcards
RESTful behaviors
RESTful behaviors
Signup and view all the flashcards
Uniqueness of secondary key
Uniqueness of secondary key
Signup and view all the flashcards
Fast Access
Fast Access
Signup and view all the flashcards
Paramater replacement
Paramater replacement
Signup and view all the flashcards
Operation Sequence
Operation Sequence
Signup and view all the flashcards
Clause additions to ABAP
Clause additions to ABAP
Signup and view all the flashcards
ABAP Checks
ABAP Checks
Signup and view all the flashcards
Valid sorting
Valid sorting
Signup and view all the flashcards
Internal modification
Internal modification
Signup and view all the flashcards
Data Access
Data Access
Signup and view all the flashcards
Completion of SQL
Completion of SQL
Signup and view all the flashcards
Will a cast work
Will a cast work
Signup and view all the flashcards
sequence priority
sequence priority
Signup and view all the flashcards
New database table
New database table
Signup and view all the flashcards
Create value help
Create value help
Signup and view all the flashcards
integration frameworks
integration frameworks
Signup and view all the flashcards
Valid statements
Valid statements
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 moduleZF1
is in a different software component with the language version set to "Standard ABAP," thenZF1
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 ofgv_result
will be TYPE I (integer).
Interface usage in classes
- If a class
CL2
DEFINITION hasINTERFACES if1
, thenClass CL2 uses the interface
andClass CL1 implements the interface
are valid statements. - In class
CL2
, the interface method is namedif1~m1
.
Superclasses and Subclasses
- Given a superclass
lcl_super
and subclasseslcl_sub1
andlcl_sub2
, and with methodssub1_meth1
andsub2_meth1
being subclass-specific methods oflcl_sub1
andlcl_sub2
respectively, the following will work when executing these casts:go_sub1->sub1_meth1(...)
andgo_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 insub1
.
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 SORTitab
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 andGrant
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()
andgo_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)
andSELECT 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 variablesy-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.