SAP NetWeaver AS ABAP Release 751, ©Copyright 2017 SAP AG. All rights reserved.ABAP - Keyword Documentation → ABAP - Reference → Processing Internal Data → Numeric Calculations → Statements for Numeric Calculations →
ADD dobj1 TO dobj2.
This statement has the same effect as the statement
The content of dobj1 is added to the content of dobj2 and the result is assigned to dobj2. The data objects dobj1 and dobj2 have to be numeric. Only data objects can be specified, no calls or other expressions. The calculation type is determined like an arithmetic expression.
After adding, the result contains the character string "_________1". The calculation type is decfloat34. The content of the character-like field result is converted to decfloat34 before the operation and back to c after the operation.
DATA: operand TYPE decfloat16 VALUE 1,
result TYPE c LENGTH 10.
ADD operand TO result.
Runtime error: ADD_FIELDS_ILLEGAL_ACCESS