ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Numeric Calculations → Statements for Numeric Calculations
MULTIPLY
Other versions:
7.31 | 7.40 | 7.54
Syntax
MULTIPLY dobj1 BY dobj2.
Effect
This statement has the same effect as the statement
The content of dobj1
is multiplied by the content of dobj2
and the result is assigned to dobj1
. 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.
Programming Guideline
Note
One obsolete form of the statement MULTIPLY
is MULTIPLY-CORRESPONDING
.
Exceptions
Catchable Exceptions
CX_SY_ARITHMETIC_OVERFLOW
-
Cause: Overflow in conversion/arithmetic operation (type
p
)
Runtime Error:BCD_OVERFLOW
-
Cause: Integer overflow in multiplication
Runtime Error:COMPUTE_INT_TIMES_OVERFLOW
CX_SY_CONVERSION_OVERFLOW
-
Cause: Overflow in conversion/arithmetic operation (type
p
with specified length)
Runtime Error:BCD_FIELD_OVERFLOW
Non-Catchable Exceptions
-
Cause:
p
field does not contain the correct BCD format
Runtime Error:BCD_BADDATA