ABAP Flashcards

1
Q

___________ allows grouping of similar classes in a general-to-specific hierarchy.

A

Inheritance

Often described as a “is a” relationship

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

Inheritance promotes “programming by difference” which means ___.

A

the subclass only defines those things that are different

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

To use inheritance, in the child class, add _____ to the first line of the class definition.

A

INHERITING FROM parent

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

Can the inheriting class delete anything from the parent?

A

No

But the child class can redefine method implementation.

The method is noted as a REDEFINITION

METHODS display_doc REDEFINITION

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

To call a method of the parent (such as when you want to call the original method as part of a method’s redefinition, use____

A

SUPER->

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

TRUE/FALSE

A subclass may use the superclass constructor as is, or the subclass may create a new constructor with a new interface.

A

TRUE

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

The constructor is the only method in ABAP objects that is ___, meaning that two active methods share the same name.

A

overloaded

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

What’s the code for the subclass constructor if it wishes to call the superclass constructor?

A

super->construtor ( params ).

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

TRUE/FALSE

A private component (attribute or method) of a superclass cannot be referenced by the subclass.

A

TRUE

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

In the definition of an object, the sections must appear in order. What’s the order?

A

PUBLIC SECTION
PROTECTED SECTION
PRIVATE SECTION

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

Which attributes and methods are visible to its children?

A

PUBLIC and PROTECTED

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

What are 5 ways of fitting ERP to needs of a company?

A
  1. Personalization: setting default values for fields, hiding fields, creating menu paths, etc. Typically done by end user.
  2. Configuration: using existing controls within the software to conform its functionality to the desired behavior.
  3. Modification: changing the core software to reflect variant customer execution. Also called customization. NOT RECOMMENDED
  4. Enhancement: adding to established system elements (without changing standard SAP code).
  5. Customer Development: creating unique elements within the system environment (without changing standard SAP code). *Add on top of SAP - standalone

Some sources use the terms Configuration and Customization synonymously. We properly consider them distinct terms where their definition is as reflected above.

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

Which ERP method may be considered the best?

Worst?

A

Customer Development

Modification

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

Typical landscape involves multiple systems. Name 4

A

development (DEV)
testing (QAS)
production (PROD)
training (TRN).

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

Each statement begins with a _______

A

keyword

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

Each statement ends with a ________

A

period

17
Q

SE11

A

Data dictionary / Global repo

18
Q

Open SQL

A

ABAP’s version of SQL

19
Q

Dictionary Component: Data Types

A

Data Element
Structure
Table Types (internal tables)

20
Q

Direct typed

A

Table fields typed without reference to a data element

21
Q

Transparent table

A

Is when a table is defined in the ABAP Dictionary. When activated, is created in the underlying DBMS

  • The DBMS-specific table has the same name as the ABAP Dictionary transparent table name.
  • The field types in the DBMS-specific table are converted to whatever the appropriate data type definition is in the DBMS.
  • Underlying elements of the table (such as field order, etc.) may be changed as necessary.
22
Q

4 basic Open SQL commands

A

SELECT
UPDATE
INSERT
DELETE

23
Q

To Override MANDT field, add the ____ clause to the command

A

CLIENT SPECIFIED

Allows a client number to be specified, for example in a WHERE clause in a query.
If CLIENT SPECIFIED is used but no client-limiting code is included, data for all clients is returned.

24
Q

SAP LUW (Logical Unit of Work)

A

set of logical changes to a database that all belong together.
A LUW is done in accordance with the “all or nothing” principle.
If entire sequence cannot be done, the operation is rolled back.

25
Q

MESSAGE

A

Simulates error handling

26
Q

COMMIT WORK

A

Will explicitly trigger a database commit.

In some situations, the commit is triggered implicitly by the program logic moving to other logical operations.

27
Q

Inheritance

A

one class shares structure and behavior with another

28
Q

Polymorphism

A

different (but related) objects have the same communication interface

29
Q

Events

A

Triggered by an object

30
Q

Object

A

instantiation of a class, storing actual data and/or allowing method execution

31
Q

Class

A

definition of the structure and functionality of an object-to-be. Defines data the object will contain (attributes) and related functionality (methods).

32
Q

ABAP class syntax divides the class into 2 sections:

A

definition (containing attribute declarations and method interface definitions)

implementation (method code)

33
Q

Functional method

A

A method with a return value is called a functional method. Unlike other methods, functional methods can be called within other statements such as IF, CASE, and WHILE

34
Q

How do you self-reference within a method?

A

me->attributename

35
Q

What’s the code to import multiple parameters into a method?

A

object->method( par1 = data1 par2 = data2 ).

If there are parameters of types other than importing, the type of parameter passing must be listed.
object->method( EXPORTING p1 = d1 p2 = d2 IMPORTING par3 = data3 CHANGING par4 = data4 ).

Functional methods (those that return a value)
The value to be returned by the method call be listed in the interface using the parameter passing type RECEIVING.
Object->method( EXPORTING p1 = d1              RECEIVING par4 = data4 ).

The value to be returned may be captured through assignment (more typical).
data4 = object->method( d1 ).

36
Q

Event blocks

A

Called by runtime environment when related event has been triggered through natural program flow of control or when triggered by a user action

Our initial programs—one block—so no need to declare event blocks.

37
Q

Examples of Program event blocks

A

LOAD-OF-PROGRAM (called at initial program setup)
START-OF-SELECTION (beginning of main processing)
Example use: PARAMETERS triggered at beginning of main processing. If want to set a default value for field based on processing (calculation, data retrieval), must do this before START-OF-SELECTION.