Skip to content

ABAP Keyword Documentation →  ABAP Programming Guidelines →  Robust ABAP 

Assignments, Calculations, and Other Types of Data Access

During an assignment, the content of a data object is transferred to another data object. If the data objects are compatible, the content is copied unchanged. If the data objects are incompatible and there is a suitable conversion rule, the content is converted. An assignment is usually performed with the assignment operator (=).

A calculation is executed in a calculation expression, which can be shown in an operand position or on the right side of the equals sign of the COMPUTE statement. If necessary, the result of a calculation expression is converted to the data type of the operand position or of the result of the COMPUTE statement. In arithmetic expressions, the calculation is executed in a calculation type based on the data types of all operands including the result.

Other versions: 7.31 | 7.40 | 7.54

Continue

Assignments Between Different Types

Avoiding Invalid Values

Using Conversion Rules

Trailing Blanks in Character Literals

Specifying Numbers

Selecting the Numeric Type

Rounding Errors

Dividing by Zero

Casting

Runtime Errors When Accessing Data Objects

Anonymous Containers

Pass by Reference of Global Data