Introduction To ABAP - Karun
Introduction To ABAP - Karun
Data Types
Syntax to declare a variable in ABAP DATA Variable_Name Type Variable_Type
Example:
DATA employee_number Type I.
Initial value
Meaning
1 - 16
Packed number
Numeric types
Character types
1 - 65535
Text field(alphanumeric
'00000000'
1 - 65535
'000000'
1 - 65535
Hexadecimal field
Hexadecimal type
move 16 to a.
write a to b.
- Arithmetic Operations
compute a = a*100.
Control Statements
Following control statements can be used - - If ... EndIf Loop
if [not] exp [ and / or [not] exp ].
........
[elseif exp.
.......]
[else.
.......]
Endif.
- Case statement
Case variable.
when value1.
.........
when value2.
.........
[ when others.
.........]
Endcase.
Do.
-While loop
While <logical expression>.
.....
.....
Endwhile.
- Do loop
Do <n> times.
.....
.....
Enddo.
Logical Operator
A list of logical operators
GE or >=
GT or >
LE or <=
LT or <
EQ or =
NE or <>
ABAP/4 Editor
Finally , here is where you will spent most of your time as a developer
creating / modifying programs. Transaction SE38