ABAP Introduction: Data Types, Operators & Editor

Tram Ho

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

DataTypeInitial field lengthValid field lengthInitial valueMeaning
Numeric types
I440Internet (whole number)
F880Floating point number
P81 – 160Packed number
Character types
OLDfirst1 – 65535‘…’Text field(alphanumeric characters)
EASY88‘00000000’Date field(Format: YYYYMMDD)
WOMENfirst1 – 65535‘0…0’Numeric text field(numeric characters)
BILLION66‘000000’Time field(format: HHMMSS)
Hexadecimal type
Xfirst1 – 65535X’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

https://www.guru99.com/images/sap/2011/02/13.png

source: guru99.com

Share the news now

Source : Viblo