0% found this document useful (0 votes)
35 views4 pages

Introduction To ABAP - Karun

This document provides an introduction to key concepts in ABAP including datatypes, operators, and the ABAP editor. It lists the main datatypes like integer, floating point, packed number, character, date, numeric text, time, and hexadecimal. It describes how to declare variables and assign values using statements like MOVE, WRITE, and COMPUTE. It also outlines control structures for conditional logic like IF/ELSEIF/ELSE and CASE as well as looping with WHILE, DO, and DO loops. Finally, it indicates the ABAP/4 editor transaction SE38 is where development work is done.

Uploaded by

KarunGaur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

Introduction To ABAP - Karun

This document provides an introduction to key concepts in ABAP including datatypes, operators, and the ABAP editor. It lists the main datatypes like integer, floating point, packed number, character, date, numeric text, time, and hexadecimal. It describes how to declare variables and assign values using statements like MOVE, WRITE, and COMPUTE. It also outlines control structures for conditional logic like IF/ELSEIF/ELSE and CASE as well as looping with WHILE, DO, and DO loops. Finally, it indicates the ABAP/4 editor transaction SE38 is where development work is done.

Uploaded by

KarunGaur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Introduction to ABAP: Datatypes,

Operators & Editor - Tutorial


ABAP stands for - Advanced Business Application Programming.It is a
programming language for developing applications for the SAP R/3 system.
The latest version of ABAP is called ABAP Objects and supports objectoriented programming. SAP will run applications written using ABAP/4, the
earlier ABAP version, as well as applications using ABAP Objects.
Without further adieu , lets dive into ABAP.
Note, this tutorial will not go into extensive details on ABAP language
constructs (which become very boring to read ) but quickly introduce key
concepts to get you started so you can focus your attention on more
important topics.

Data Types
Syntax to declare a variable in ABAP DATA Variable_Name Type Variable_Type

Example:
DATA employee_number Type I.

The following is a list of Data Types supported by ABAP


Data Type

Initial field length

Valid field length

Initial value

Meaning

Integer (whole number)

Floating point number

1 - 16

Packed number

Numeric types

Character types

1 - 65535

' ... '

Text field(alphanumeric

'00000000'

Date field(Format: YYY

1 - 65535

'0 ... 0'

Numeric text field(nume

'000000'

Time field(format: HHM

1 - 65535

X'0 ... 0'

Hexadecimal field

Hexadecimal type

Processing Data - Assigning Values


a=16.

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

You might also like