Application Development and Automation 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: 
Read only

CASTING im Unicde

rainer_hbenthal
Active Contributor
0 Likes
454

i have a structure a of type PRELP, and a b structore of type PA0277. I need to move the xtructure a to b, this is necessacry because it is a user exit and i have to use structure a.

Unfortunately, the structure b conatains decimals fields.

Without unicode, i can move b to a without any problems, how can i move b to a in a unicode program?

thx

2 REPLIES 2
Read only

Former Member
0 Likes
431

This passes through unicode checks. See if this is what you want.



DATA: BEGIN OF i_prelp OCCURS 0.
        INCLUDE STRUCTURE prelp.
DATA: END OF i_prelp.

DATA: BEGIN OF i_pa0277 OCCURS 0.
        INCLUDE STRUCTURE pa0277.
DATA: END OF i_pa0277.

START-OF-SELECTION.

  LOOP AT i_prelp.
    MOVE-CORRESPONDING i_prelp TO i_pa0277.
    APPEND i_pa0277.
    CLEAR i_pa0277.
  ENDLOOP.

Read only

0 Likes
431

Sorry this does not work. PRELP has only a data1(250) containing all Data (c,i,p) as a byte stream, and PS0277 do have characters and decimals as well. Move corresponding does not move the data because the names are different.