SAP UNICODE FRAGMENT VIEW

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Unicode Fragment View
The Unicode fragment view splits a structure into fragments. A fragment is a grouping of structure components of the same or similar data types. In nested structures, the elementary components on the lowest nesting depth are taken into account when forming fragments in nested structures. The following parts of a structure are each grouped to form fragments:
Consecutive flat character-like components of the types c, n, d, and t, between which there are no alignment gaps, form character-like fragments.
Consecutive flat byte-like components of the type x, between which there are no alignment gaps, form byte-like fragments.
Consecutive numeric similarly typed components of type (b, s ), i,
int8, decfloat16, decfloat34, or f, between which there are no alignment gaps, each form a separate fragment.
Each individual numeric type p component forms a separate fragment. For this type of fragment it is the length that is important, not the number of decimal places.
In deep structures, each deep component (reference) forms a separate fragment.
Each alignment gap is regarded as a fragment.

Notes
In nested structures, alignment gaps can arise before and after aligned substructures.
ABAP Code Snippet ABAP Code Snippet passed components.
The Unicode fragment view of structures with components of type p can match, even when the number of decimal places in the components concerned is different.

Example DATA:
BEGIN OF struc,
a TYPE c LENGTH 3,
b TYPE n LENGTH 4,
c TYPE d,
d TYPE t,
e TYPE decfloat16,
f TYPE x LENGTH 2,
g TYPE x LENGTH 4,
h TYPE i,
i TYPE i,
j TYPE i,
k TYPE i,
END OF struc.
The structure struc contains the following Unicode fragments in a Unicode system in which character-like fields are represented by 2 bytes per character. Alignment gaps are marked with an A. FragmentComponentsBytes 1a, b, c, d6+8+16+12 2A6 3e8 4f, g2+4 5A2 6h, i, j, k4+4+4+4