SAP MOVE EXACT STRUCTURE



Get Example source ABAP code based on a different SAP table
  



Checking Structures
The operator EXACT can only be used to convert structures to compatible structures. Full compatibility is not required for the following deep components, for which the specified requirements apply:
For components that have a reference type , upcasts but not downcasts are allowed.
For table-like components, it is sufficient if the line type is compatible. This means that the full compatibility, which includes table categories and table keys, is not required here.



Latest notes:

The operator EXACT ensures that the conversion rules for flat structures are the same as those for deep structures. It is not possible to make conversions between structures and elementary data objects.
If the structured types are compatible, no further checks are performed on the content. If the source structure already contains invalid data, this data is assigned to a compatible return value despite the addition EXACT.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Unlike simple conversion, the lossless assignment leads to a syntax error. DATA:
BEGIN OF struc,
col1 TYPE d,
col2 TYPE t,
END OF struc.

DATA(result1) = CONV string( struc ). 'Possible

DATA(result2) = EXACT string( struc ). 'Not possible
ABAP_EXAMPLE_END