‎2007 Mar 12 1:11 PM
Hi,
I hav a work structure WA_MARA LIKE MARA, and a 4000-character variable DATA(4000) TYPE C.
Now, the data from DATA needs to be copied into the fields of WA_MARA, but a statemnt like WA_MARA = DATA gives a Unicode error.
Ne ideas how to solve this?
‎2007 Mar 12 8:16 PM
This is not possible in unicode systems. Maybe, you can solve the problem using Field-Symbols...
Reward points if helpful...
Regards
‎2007 Mar 13 12:44 AM
Hi Shailesh,
Try using move statement and if this still persists then go to attributes and uncheck "unicode checks active".
This would solve your problem.
BR
Rakesh
‎2007 Mar 13 1:32 AM
I've got a solution to your problem; As bluemoon has suggested, you must use field-symbols. You must also cast it.
DATA: wa_mara LIKE mara,
DATA(4000) TYPE c.
FIELD-SYMBOLS: <fs> TYPE mara.
ASSIGN DATA TO <fs> CASTING.
wa_mara = <fs>.
This will solve your problem
~arman
‎2007 Mar 13 1:35 AM