ABAP Keyword Documentation → ABAP Programming Guidelines → Robust ABAP
Data Types and Data Objects
Together with classes and objects, data types and data objects are the essentials of ABAP programming.
- Data Type
TYPES
statement in an ABAP program.
- Data Object
CREATE DATA
statement (anonymous data object). Named data objects are either variables
(DATA
, CLASS-DATA
statements, and so on) or constants (CONSTANTS
statement).
A data type describes the technical properties of a data object (for example, the elementary types it is comprised of, its length) and semantic properties (what type of entity is represented by the data object). Types that are defined in the ABAP dictionary have additional properties, for example for input/output on a classic screen or in Web Dynpro.
As far as the ABAP runtime environment is concerned, only the technical properties of a data object are of interest for program execution. However, the semantic information, which is linked to the appropriate use of types, is essential for the legibility of the source code. For this reason, some of the rules covered in this section could also fall under the heading Structure and Style, since this covers not only robustness, but also good style, which, although it does not affect program execution, is nevertheless significant for readability and maintainability.
Other versions: 7.31 | 7.40 | 7.54
Continue
Bound and Standalone Data Types
Declaration of Data Types and Constants