TAW_10_1 chapter 9, basic ABAP language elements Flashcards

1
Q

What is the difference between a data type and a data object?

A

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

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

What are the two types of ABAP data types?

A

Complete and incomplete.

Complete include the type and length

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

There are 9 complete data types. What are they?

A
T - Time
D - Date
I - Integer
I8 - Integer 8
DECFLOAT16 - Floating decimal 16
DECFLOAT34 - Floating decimal 34
STRING - String
XSTRING - Hex string
F - Float
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the SAP incomplete data types?

A

C
N
P
X

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

What are the three categories of data types

A

Built in
Global
Local

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

What does the clear statement do?

A

Reset the variable to it’s initial (default) value

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

What does the FREE statement do?

A

Clears the internal table and frees the memory being used

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

In what sequence are mathematical operators processed?

A
From left to right
Inside Parentheses
Functions
Exponents
Multiplication and division
Addition and Subtraction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How are exponents defined in ABAP?

A

**

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

What are the 7 arithmetic operators?

A
\+
-
/
*
**
MOD
DIV
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Give an example of using an “IF” statement with a predefined function

A

If ABS( my_val ) gt 3.

endif.

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

What is returned from predicate functions?

A

Boolean result

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

What are the four loop types of ABAP

A

DO
WHILE
SELECT
LOOP

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

How do I exit from any of the four loops other than the end of the condition?

A

EXIT

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

Within a loop, the loop pass contained

A

Do loop - sy-index
While loop - sy-index
Select - sy-dbcnt
Loop - sy-tabix

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

What supplied program gives a demo of message types?

A

DEMO_MESSAGES