SAP LOSSLESS MOVE



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN

Lossless Assignments
In a lossless assignment, the assigned content is checked to see whether the assignment is lossless before converting it to an incompatible target object. Lossless assignments can be performed using the
lossless operator EXACT, in which the argument is converted to a result of the specified type using the
rules for lossless assignments.
This makes it possible to use lossless assignments in all operand positions in which EXACT can be specified.
A lossless assignment in the true sense of the word is the following use of a constructor expression with EXACT as the right side of an assignment:

ABAP_SYNTAX destination = EXACT #( source ).
In this case, source is converted to the data type of destination and checked accordingly.



Latest notes:

If the argument of the operator EXACT is an arithmetic expression, a lossless calculation is performed instead of a lossless assignment.
When assigning structures component by component using MOVE-CORRESPONDING, there is an addition EXACT for lossless assignments.
NON_V5_HINTS
Using the addition EXACT in the obsolete statement MOVE is an obsolete form of lossless assignment.
ABAP_HINT_END