ARTICLE
Conversion Rules for Structures
Assignments between structures
distinguish between flat structures
and deep structures :
Deep structures can only be assigned to each other if they are
compatible . Full compatibility is not required
for the following deep components, for which the specified requirements
apply:
For components that have a reference type
, up casts but not
down casts are permitted.
For table-like components, it is sufficient if the
row type is compatible. This means that the
full compatibility needed for
table categories and
table keys is not required here.
For flat structures, there are conversion rules for the following
assignments between incompatible data objects:
Conversion between flat structures
Conversion between flat structures
and single fields
In Unicode systems, the Unicode fragment
view must be respected.
Notes
If substring access is performed on a
structure and the substring is shorter than the structure, the substring
is handled like an operand of type c and the corresponding
conversion rules apply. If the substring is exactly the same length as
the structure, the substring is handled like the structure itself.
A lossless assignment can be used
to apply the same assignment rule to flat structures as to deep
structures.
The conversion rules for structures are designed to prevent handleable
exceptions from being raised. If a conversion is allowed, then it takes
place.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved