04-17-2006 5:12 AM
Hi all..
I have a doubt on Unicode Fragment Views. when does the allignment gaps inserted in Unicode? Is there any generalized way which we can follow for allignment gaps?
Hoping for a quick reply. Plz help.
Thanks.
04-17-2006 5:25 AM
hi
good
Unicode Fragment View
The data layout of structures is relevant to UP checks with regard to the reliability of assignments and comparisons, for example. This data layout is represented in the Unicode fragment view. The fragment view breaks down the structure into alignment gaps, in byte and character-type areas, and all other types such as P, I, F, strings, references or internal tables.
Juxtaposed character-type components of a structure except strings are internally combined into a group if no alignment gaps exist between these components. All possible alignment requirements for characters are considered. Juxtaposed byte type components are grouped together in the same way.
Example
BEGIN OF struc,
a(2) TYPE C,
b(4) TYPE N,
c TYPE D,
d TYPE T,
e TYPE F,
f(2) TYPE X,
g(4) TYPE X,
h(8) TYPE C,
i(8) TYPE C,
END OF struc.
Fragment 1: a, b, c, d
Fragment 2: Alignment gap between d and e
Fragment 3: e
Fragment 4: f, g
Fragment 5: Alignment gap between g and h
Fragment 6: h, i
thanks
mrutyun
04-28-2006 10:27 AM
Hi Mrutyunjaya,
Thats correct what u told. but in general how can we put it... how allignment gaps occur and from which position should a character, integer etc should start...
04-28-2006 10:36 AM
hi
good
check out this
Unicode Fragment View
The data layout of structures is relevant to UP checks with regard to the reliability of assignments and comparisons, for example. This data layout is represented in the Unicode fragment view. The fragment view breaks down the structure into alignment gaps, in byte and character-type areas, and all other types such as P, I, F, strings, references or internal tables.
Juxtaposed character-type components of a structure except strings are internally combined into a group if no alignment gaps exist between these components. All possible alignment requirements for characters are considered. Juxtaposed byte type components are grouped together in the same way.
Example
BEGIN OF struc,
a(2) TYPE C,
b(4) TYPE N,
c TYPE D,
d TYPE T,
e TYPE F,
f(2) TYPE X,
g(4) TYPE X,
h(8) TYPE C,
i(8) TYPE C,
END OF struc.
Fragment 1: a, b, c, d
Fragment 2: Alignment gap between d and e
Fragment 3: e
Fragment 4: f, g
Fragment 5: Alignment gap between g and h
Fragment 6: h, i
-
go through this link
http://help.sap.com/saphelp_nw04/helpdata/en/79/c55473b3dc11d5993800508b6b8b11/content.htm
THANKS
MRUTYUN