当前位置:网站首页>SAP ABAP data types, operators and editors-02

SAP ABAP data types, operators and editors-02

2022-06-22 16:20:00 Boating in rainy days

data type , Operators and editors -02

ABAP representative - Advanced business application programming . It is used for SAP R/3 Programming language for system development applications .

ABAP The latest version of is called ABAP Objects, Support object-oriented programming . SAP Will run using ABAP/4( In the early ABAP edition ) Write the application and use ABAP Object application .

No further goodbyes , Let's get to know more about ABAP.

Please note that , This tutorial will not cover in detail ABAP Language structure ( Reading can be very boring ), Instead, you will quickly introduce key concepts to help you get started , This allows you to focus on more important topics .

data type

 stay  ABAP  Syntax for declaring variables in  - 

DATA Variable_Name Type Variable_Type

 Example : 

DATA employee_number Type I.

 Here are  ABAP  List of supported data types  

 Insert picture description here

Processing data —— assignment

a=16.

move 16 to a.

write a to b.

Arithmetic operations

compute a = a*100.

Control statement

The following control statements can be used - - If…EndIfLOOP

if [not] exp [ and / or [not] exp ].
........
[elseif exp.
.......]
[else.
.......]
Endif.

Select statement

Case variable.
when value1.
.........
when value2.
.........
[ when others.
.........]
Endcase.
Do.

while Loop structure

While <logical expression>.
.....
.....
Endwhile.

do Loop structure

Do <n> times.
.....
.....
Enddo.

Logical statement

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

ABAP/4 Editor

Last , As a developer , You will spend most of your time here creating / Modify the program . Transaction code :SE38
 Insert picture description here

Reference resources :https://www.guru99.com/introduction-to-abap.html

原网站

版权声明
本文为[Boating in rainy days]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221500489697.html