MULTIPLY-CORRESPONDING
Short Reference
ABAP Syntax(Obsolete) MULTIPLY-CORRESPONDING struc1 BY struc2.
What does it do? This statement, which is forbidden in classes, multiplies
structures in terms of components. Structures must be specified for
struc1 and struc2 . All components with the same name in
struc1 and struc2 are multiplied with each other in pairs and
the result is assigned to the appropriate component of struc1 .
The names are compared, as in the statement
MOVE-CORRESPONDING . For each
component pair with the same name comp , the statement
MULTIPLY struc1-comp BY struc2-comp.
is executed, and the appropriate conversions are performed, if
necessary.
Latest notes: This statement is error-prone because, particularly in
complex structures, it is not easy to check that components of the same
name have the data type and content necessary for a numeric operation.
Runtime Exceptions
Catchable Exceptions
CX_SY_ARITHMETIC_OVERFLOW
Reason for error: Overflow in conversion/arithmetic operation (T p )
Runtime error: BCD_OVERFLOW
Reason for error: Integer overflow in multiplication
Runtime error: COMPUTE_INT_TIMES_OVERFLOW
CX_SY_CONVERSION_OVERFLOW
Reason for error: Overflow in conversion/arithmetic operation (T p ,
with specified length)
Runtime error: BCD_FIELD_OVERFLOW
Non-catchable Exceptions
Reason for error: p field does not contain the correct BCD
format
Runtime error: BCD_BADDATA
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved