ITZone

ABAP Introduction: Data Types, Operators & Editor

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 object-oriented programming. SAP can run applications written with ABAP/4, an earlier version of ABAP, as well as applications that use ABAP Objects.

Without further ado, let’s start learning ABAP.

Note, this tutorial won’t go into detail about the structure of the ABAP language (which can be boring to read), but will introduce the key concepts so you can get started quickly and focus on the most important topics. more important topic.

Datatypes

Syntax for declaring a variable in ABAP

Example:

Below is a list of data types supported by ABAP

DataType Initial field length Valid field length Initial value Meaning
Numeric types
I 4 4 0 Internet (whole number)
F 8 8 0 Floating point number
P 8 1 – 16 0 Packed number
Character types
OLD first 1 – 65535 ‘…’ Text field(alphanumeric characters)
EASY 8 8 ‘00000000’ Date field(Format: YYYYMMDD)
WOMEN first 1 – 65535 ‘0…0’ Numeric text field(numeric characters)
BILLION 6 6 ‘000000’ Time field(format: HHMMSS)
Hexadecimal type
X first 1 – 65535 X’0 … 0′ Hexadecimal field

Data processing

Assign Value

Arithmetic Operations

Control Statements

The following control statements can be used

– If… EndIf Loop

– Case statement

– While loop

– Due to loop

Logical Operator

List of logical operators

  • GE or >=
  • GT or >
  • LE or <=
  • LT or <
  • EQ or =
  • NE or <>

ABAP/4 Editor

Ultimately, this is where you will spend the most time as a developer creating/modifying programs. Transaction SE38

source: guru99.com

Share the news now