Lesson 9 – Declaration of Variables in SAP
Data : <variable name> type <data types>.
TYPE is a keyword which is used to declare a variable.
DATA is the keyword which refers to the data object and it is used to declare the data objects in SAP ABAP.
Ex. Variables, Work areas, Internal tables, etc.
In ABAP, every statement needs to be terminated by a period (.) and if things are continuous comma (,) is required at the end of line.
First Program in SAP ABAP –
DATA : LV_COUNT TYPE I.
LV_COUNT = 10.
WRITE :/ LV_COUNT.