Applying basic techniques and concepts Flashcards

1
Q

Explain properties of standard ABAP

A
  • universal basic version
  • unrestricted ABAP language
  • covers entire ABAP scope
  • access to all repo objects allowed except static package concept
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain properties of ABAP for key users

A
  • intended for secure enhancement implementation
  • restricted language set
  • restricted access to repo objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Explain properties of ABAP for cloud development

A
  • intended for development in the SAP BTP ABAP and S/4HANA Cloud ABAP environment
  • restricted ABAP language set
  • repo object access restricted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the three sources of ABAP types

A
  • ABAP built-it (numc, int, string, …)
  • TYPE statement
  • ABAP dictionary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a constant

A

A constant is a data object with a hard-coded value that must not be changed during runtime.

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

What is a literal

A

Literals are anonymous data objects with a hard-coded value. Literals are often used to define non-initial values for constants and non-initial starting values for variables.
There are three forms: number, text (type C) and string (Type string, in pair of backquotes “`”) literals

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

What is the difference between string literals and string templates

A

string templates are placed within two “|”. They allow embedded expressions placed within curly brackets, which string literals do not:

|Total: { a + b } EUR|

DATA the_date TYPE d VALUE ‘19891130’.
|{ the_date DATE = ISO }| “=> ‘1989-11-30’,

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

How do you join strings

A

Hello && World = HelloWorld
Hello && | | && World = Hello World

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

How do you define a table type with a name and use it

A

TYPES <table_type_name> TYPE TABLE OF <row_type>.</row_type></table_type_name>

DATA <internal_table> TYPE <table_type_name>.</table_type_name></internal_table>

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

What exceptions are catchable

A

All application- and many system exceptions

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

What does sy-tabix and sy-index contain

A

sy-index is a iteration counter for do-enddo, tabix identifies the position of the currently processed table row in the current iteration

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

How do you loop across a whole table

A

LOOP AT <internal-table> INTO <variable>. ENDLOOP.</variable></internal-table>

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

What ways are there to interrupt a DO/ENDDO loop

A
  1. Times: DO 5 TIMES. ENDDO.
  2. IF: IF <cond>. EXIT. ENDIF. ENDDO.</cond>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you catch exceptions

A

enclosing them in try/endtry statements containing catch blocks

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

Explain the three special breakpoints

A

Statement Breakpoint: Stops program at specific ABAP statement. (e.g. whenever statement CLEAR is used)
Exception Breakpoint: Halts program when specific exception raised.
Conditional Breakpoints: Stops program based on condition.

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

What is a watchpoint

A

Halts program when a specific variable is accessed or changed, enabling monitoring of its value. Access it by doubleclicking a variable in debug view and then rightclick in the table. Conditions can be added.

17
Q

When you press F8 (Continue) in the debugger, where could the program processing next stop?

A

at the end of the program, at a subsequent breakpoint

18
Q

which abap types are complete from C, D, P, I

A

I, D

19
Q

What is the work area of an internal table?

A

A variable with the same type as the row type of the internal table

20
Q

The IF condition IF a > 10. is followed by the ELSEIF condition ELSEIF a = 25.The variable a has the value 25. Which code branch or branches are executed?

A

The branch introduced by IF a > 10.