Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unicode Fragment Views

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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...

0 Kudos

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