TAW12 PART-I Flashcards

1
Q

Pooled table

A

logical tables that must be assigned to a table pool when they are defined.
Pooled tables are used to store control data.
Several pooled tables are combined in a table pool.
Indexes for non-key fields cannot be created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Clustered table

A

Cluster tables are logical tables that must be assigned to a table cluster when they are defined.
Cluster tables can be used to store control data.
They can also be used to store temporary data or texts, such as documentation. Basically used to hold application data.

Advantage - data is stored in a compressed format, reducing memory space and the landscape network load for retrieving information from these tables.

Native SQL cannot be used on these tables
Database views, join statements or append statements cannot be used on these tables
indexes for non-key fields cannot be created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Table Pool

A

A table pool is a database table on the database made up of many pooled tables.
It contains all rows of the pooled tables assigned to it.
Many to one relationship.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Table Cluster

A

A table cluster is a database table on the database made up of many clustered tables.
Many to one relationship.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

PAI

A

Process After Input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

PBO

A

Process Before Output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Input Checks

A

In the PAI event, the screen makes a series of automatic input checks. These are carried out before any data is transferred to the ABAP program, and before the screen flow logic is processed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ABAP Dictionary views

A

A view in ABAP Dictionary is a grouping of columns in one or more database tables in accordance with an application-specific view.
Can be used to restrict database access to specific fields (known as projection) or to specific rows (known as selection).
Views for multiple database tables use joins or subqueries to join these tables and to read the required fields and rows
Usually platform-independent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Four different view types

A
Database View (Uses inner Join)
Projection Views (outer join)
Maintenance Views (outer join)
Help views (outer join)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Search help

A

objects that you can use to assign input help (F4 Help) to screen fields. You can do this by creating a search help in the ABAP Dictionary and attaching it to the corresponding screen field.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Two types of search helps

A

Elementary search helps, They describe a search path

Collective search helps, combine several elementary search helps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Factory method

A

a static method that creates and then returns (as a parameter) a reference to the object of the class it belongs to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

RTTI

A

Runtime Type Identification

A technique for obtaining all information about a data type at runtime.
implemented in ABAP Objects using description objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ABAP Runtime Type Services (RTTS) consists of two components

A

RTTI

RTTC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

RTTC

A

Runtime Type Creation

Provides the methods to create the data objects at runtime with any type definition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ABAP RTTS

A

allows to get the definition of variables or to create them during program execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Field Symbol

A

A placeholder for data object, which points to the value present at the memory address of a data object. It does not reserve any physical memory space when we declare them. It only points to a data object at run time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Field symbols are of two types

A

Typed Field Symbol

Generic Field Symbol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Typed Field Symbol

A

Specific field symbol declaration

FIELD-SYMBOLS: TYPE i.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Generic Field Symbol

A

Generic field symbol declaration

FIELD-SYMBOLS: TYPE ANY.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Data references

A

Point to any data objects or to their parts (components, rows of internal tables, or sections specified by offsets and lengths).

Nothing but pointers. It stores the memory address of any data object. But to access the actual data object which data reference is pointing to, we first need to deference it using dereferencing operator ->*.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Field Symbol vs Data references

A

Field symbol is a placeholder for data object which it is assigned and points to the content of data object, so it can be used at any operand position (no need to dereference it) and works with the content of the referenced memory area (value semantics).

Data references are pointers to data objects and it contains the memory address of data object (reference semantics). Data reference cannot be used at operand position directly; it should be dereferenced first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

two types of data references

A

Typed Data Reference,

Generic Data Reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Typed Data Reference

A

DATA lr_num TYPE REF TO i.

CREATE DATA lr_num.

25
Generic Data Reference
DATA: lr_num TYPE REF TO data. CREATE DATA lr_num TYPE i lr_num->* cannot be directly used at operand position So you have to use a field symbol to dereference it
26
What is unique about a functional method?
``` It can contain an exporting parameter It must contain a returning parameter It can contain an importing parameter It can contain a changing parameter It can be used in logical expressions ```
27
What does the Refactoring Assistant allow you to do?
Move between classes and interfaces | Move components between superclasses and subclasses
28
In a subclass, you want to redefine a method of the super class. Which of the following conditions must be fulfilled?
``` The super class method is an instance The subclass method has same visibility as the super class method ```
29
You implemented a subclass that inherits the instance constructor from it superclass What can you do with the inherited constructor?
Change the signature | Redefine the implementation
30
``` You add the CREATE PROTECTED addition to a class definition. From where you can instantiate the class? ```
``` From a child class From a friend class From the class itself ```
31
You have the following class definition CLASS CL_AIRPLANE DEFINITION PUBLIC SECTION. METHOD : set_passengers. PROTECTED SECTION. CONSTANTS c_pos type i. METHODS get_passengers. PRIVATE SECTION. DATA mv_passengers TYPE i, METHODS set_attribures. ENDCLASS. Which components can be addressed directly from a subclass of class CL_AIRPLANE?
C_POS SET_PASSENGERS GET_PASSENGERS
32
What can you use to achieve polymorphism?
Inheritence
33
When you define local classes in ABAP, which syntactical sequence must you follow?
PUBLIC, PROTECTED, PRIVATE
34
A static element... Static attributes...
...is the same across all instances of the class. There is only one static attribute across all instances of the class ...are declared with the CLASS-DATA statement
35
You are writing a program that uses ABAP class. Which components of the class can you create directly from the program?
Only public components
36
What can be part of the signature of an instance constructor?
Import parameters | Exceptions
37
Which steps are needed when implementing the singleton concept for class instantiation with minimum coding?
``` Define the instantiation of the class as private Save the instance of the class in a static attribute Create an instance of the class in a static constructor ```
38
Which of the following steps are required to set up a shared memory area?
``` Set the root object Call the attach_for_write method of area root class Generate an area root class ```
39
For which of the following requirements can you implement a functional method?
A private static helper method that returns a single value as the result of an alogrithm A factory method that returns an object reference
40
What must you do to create a singleton class?
``` Set the class instantiation to the private Create object in static method of class itself ```
41
Which of the following are valid combinations of event visibility and handler method visibility?
Public event and protected handler | Private event and private handler
42
Which components of the class can be accessed in the implementation of a static method in that class?
Constants | Types
43
You created a class by inheriting from superclass. The superclass contains a public instance method do_something. You want to redefine method do_something .
Leave the signature of method unchanged
44
Which method of passing parameters is preferred for its performance?
Pass by reference
45
What statement dynamically changes the data type of field z1?
Assign z1 to casting
46
You change a SAP standard global class by defining a post-method for the SAP method. The original SAP method has an exporting parameter named PAR1. What type of parameter is PAR1 in post-method?
Changing
47
How would you define a method of an ABAP class to prevent this method from being available in a subclass?
Private
48
What happens when an authorization check fails?
The system field SY-SUBRC is set to a value other than zero
49
Which of the following features do you have to consider when you use shared objects?
Data is saved as attributes of objects Memory bottlenecks result in runtime errors and have to be caught Concurrent read accesses are supported
50
You call a lock module. Which exceptions could the lock module raise when a logical lock cannot be set?
SYSTEM_FAILURE | FOREIGN_LOCK
51
You want to loop over an internal table without copying each table row to a work area. How can you achieve this using a field symbol?
LOOP AT ASSIGNING .ENDLOOP
52
You have created the following: A class with an event definition A handler class with method ON_EVT that handles this event. A report that instantiate the handler class. A message statement that raises an exception However the report doesn't react to the event. How do you analyze this issue?
Check if the implementation of the handler method ON_EVT contains the desired logic Check if the event is triggered by setting a breakpoint at the RAISE_EVENT statement Check if the handler method is registered to the correct event
53
You defined data reference z1 generically. | Which statement would you use to access the content of the referenced variable?
Assign z1->* to
54
``` You have 2 objects: O1 of type class C1 and O2 of type class C2. Class C2 is a subclass of class C1. Which of the following statements implements a widening cast? ```
O1=O2
55
What character is used as a symbol for the operand type in an expression?
#
56
Which statements are considered obsolete and cannot be used in ABAP Objects? Please select all the correct answers that apply.
Data...type..occurs loop at dbtab tables
57
You use Unified Modelling language (UML) to design your classes. You want to describe the message exchange between objects. Which diagram can you use?
sequence diagram
58
You enhance an SAP standard global class by defining a post-method for an SAP method. The original SAP method has an EXPORT parameter named PARM1.Which parameters does the post-method have?
A CHANGING parameter named PARM1
59
A class is defined as follows CLASS my_class DEFINITION PUBLIC SECTION METHODS do_something EVENTS state_changed CLASS-Methods static1 PRIVATE SECTION TYPES t_table Type Standard table OF1001 CONSTANTS gc_canst TYPE I VALUE 1 ENDCLASS. Which components of the class can static method static1 address directly?
gc_const constant t_table type