MULTIPLYCORRESPONDING
Basic form
MULTIPLYCORRESPONDING rec1 BY rec2.
Effect
Interprets rec1 and rec2 as field strings.
If, for example, rec1 and rec2 are tables, executes the
statement for their header lines.
Searches for all subfields which occur both in rec1 and
rec2 and then generates, for all field pairs corresponding to
the subfields ni , statements of the form

MULTIPLY rec1ni BY rec2ni.
The other fields remain unchanged.
With complex structures, the full names of the corresponding field
pairs must be identical.
Example

DATA: BEGIN OF MONEY,
VALUE_IN(20) VALUE 'German marks'.
USA TYPE I VALUE 100,
FRG TYPE I VALUE 200,
AUT TYPE I VALUE 300,
END OF MONEY,
BEGIN OF CHANGE,
DESCRIPTION(30)
VALUE 'DM to national currency'.
USA TYPE F VALUE '0.6667',
FRG TYPE F VALUE '1.0',
AUT TYPE F VALUE '7.0',
END OF CHANGE.
MULTIPLYCORRESPONDING MONEY BY CHANGE.
MONEYVALUE_IN = 'National currency'.
The above MULTIPLYCORRESPONDING statement is equivalent to
the following three statements:

MULTIPLY MONEYUSA BY CHANGEUSA.
MULTIPLY MONEYFRG BY CHANGEFRG.
MULTIPLY MONEYAUT BY CHANGEAUT.
Note
All fields with identical names are multiplied, whether
numeric or not. The conversions performed are similar to those for
MULTIPLY and the same runtime errors
can also occur.
Related
MULTIPLY ,
MOVECORRESPONDING ,
ADDCORRESPONDING ,
SUBTRACTCORRESPONDING ,
DIVIDECORRESPONDING
Index
© SAP AG 1996