inline declarations are now only made possible for assignment
operators.
ABAP_VARIANT_1 MOVE [EXACT] source TO destination.
What does it do? Without the addition EXACT , this statement works
in the same way as
destination = source.
If the addition EXACT is specified, the statement works like
destination = EXACT #( source ).
In this way, the addition EXACT produces a
lossless assignment in accordance
with the rules that apply when using the
lossless operator
EXACT . This can raise
exceptions if values are lost or if they are invalid. If an exception is
raised when the operator EXACT is used, the statement is not
executed and the value of the target field remains unchanged. In
assignments made without the operator EXACT , the target field
contains an undefined value when an exception raised by the conversion
is handled.
ABAP_VARIANT_2 MOVE source ?TO destination.
What does it do? This statement works in the same way as
destination ?= source.
source and destination must have reference types. The
addition ?TO makes down casts
possible, whereas in TO only up
casts can be used.
ABAP_PGL Assignments with the assignment
operators = and ?= only
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved