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.