SAP OBJECTS STATEMENTS



Get Example source ABAP code based on a different SAP table
  



Data Objects
A data object is an instance of a data type and occupies as much memory space as is allowed by its type. An ABAP program only works with data that is available as content of data objects. Data objects are either created implicitly in their declaration as named data objects or explicitly as anonymous data objects using CREATE DATA or the instance operator NEW.
The following are data objects that are not declared using keywords:
Literals are data objects that are declared in operand positions using literal source code.
Text symbols are character-like constant data objects that are declared outside the program.
Declaration of variables and constants in every context:
DATA
CONSTANTS
Declaration of static attributes in classes:
CLASS-DATA
Declaration of static variables in procedures:
STATICS
BEGIN_SECTION VERSION 5 OUT
Declaration of interface work areas:
TABLES
NODES (obsolete)
END_SECTION VERSION 5 OUT
Data objects can be declared by reference to a non-generic data type of the same ABAP program or from ABAP Dictionary. In this case, the data type determines the technical properties of the data object completely. A data object can also be constructed in the ABAP program without completely specified type definitions. The data type of a data object of this type is always complete, and does not exist independently, but rather as a property of the data object and is called a bound data type.
For more information about data objects, see Data Objects.