Lesson 9 – Declaration of Variables in SAP
Data : <variable name> type <data types>.
Type :
TYPE is a keyword which is used to declare a variable.
Data :
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.
Hey There. I found your blog using msn. This is a very well written make sure to bookmark it and come back to read more of your useful info. Thanks for the post. I will definitely comeback.