‎2006 Mar 22 3:33 PM
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
‎2006 Mar 22 8:49 PM
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.
‎2006 Mar 23 9:40 AM
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.