TAW_10_1 chapter 9, basic ABAP language elements Flashcards
What is the difference between a data type and a data object?
A data object is the implementation of a data type.
Example,
DATA: my_data type werks_d
Where my_data is the data object and werks_d is the data type
What are the two types of ABAP data types?
Complete and incomplete.
Complete include the type and length
There are 9 complete data types. What are they?
T - Time D - Date I - Integer I8 - Integer 8 DECFLOAT16 - Floating decimal 16 DECFLOAT34 - Floating decimal 34 STRING - String XSTRING - Hex string F - Float
What are the SAP incomplete data types?
C
N
P
X
What are the three categories of data types
Built in
Global
Local
What does the clear statement do?
Reset the variable to it’s initial (default) value
What does the FREE statement do?
Clears the internal table and frees the memory being used
In what sequence are mathematical operators processed?
From left to right Inside Parentheses Functions Exponents Multiplication and division Addition and Subtraction
How are exponents defined in ABAP?
**
What are the 7 arithmetic operators?
\+ - / * ** MOD DIV
Give an example of using an “IF” statement with a predefined function
If ABS( my_val ) gt 3.
…
endif.
What is returned from predicate functions?
Boolean result
What are the four loop types of ABAP
DO
WHILE
SELECT
LOOP
How do I exit from any of the four loops other than the end of the condition?
EXIT
Within a loop, the loop pass contained
Do loop - sy-index
While loop - sy-index
Select - sy-dbcnt
Loop - sy-tabix