Applying basic techniques and concepts Flashcards
Explain properties of standard ABAP
- universal basic version
- unrestricted ABAP language
- covers entire ABAP scope
- access to all repo objects allowed except static package concept
Explain properties of ABAP for key users
- intended for secure enhancement implementation
- restricted language set
- restricted access to repo objects
Explain properties of ABAP for cloud development
- intended for development in the SAP BTP ABAP and S/4HANA Cloud ABAP environment
- restricted ABAP language set
- repo object access restricted
What are the three sources of ABAP types
- ABAP built-it (numc, int, string, …)
- TYPE statement
- ABAP dictionary
What is a constant
A constant is a data object with a hard-coded value that must not be changed during runtime.
What is a literal
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
What is the difference between string literals and string templates
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 do you join strings
Hello && World = HelloWorld
Hello && | | && World = Hello World
How do you define a table type with a name and use it
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>
What exceptions are catchable
All application- and many system exceptions
What does sy-tabix and sy-index contain
sy-index is a iteration counter for do-enddo, tabix identifies the position of the currently processed table row in the current iteration
How do you loop across a whole table
LOOP AT <internal-table> INTO <variable>. ENDLOOP.</variable></internal-table>
What ways are there to interrupt a DO/ENDDO loop
- Times: DO 5 TIMES. ENDDO.
- IF: IF <cond>. EXIT. ENDIF. ENDDO.</cond>
How do you catch exceptions
enclosing them in try/endtry statements containing catch blocks
Explain the three special breakpoints
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.
What is a watchpoint
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.
When you press F8 (Continue) in the debugger, where could the program processing next stop?
at the end of the program, at a subsequent breakpoint
which abap types are complete from C, D, P, I
I, D
What is the work area of an internal table?
A variable with the same type as the row type of the internal table
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?
The branch introduced by IF a > 10.