01-23-2008 9:10 AM
Hi Dear All,
LOOP AT <dyn_table> INTO <dyn_wa>.
MOVE <dyn_wa> TO LOG.
APPEND LOG.
ENDLOOP.
The above code is leading to dump saying that "Data objects in unicode program are not convertible" while i was trying to Move non-char (like DATS, QUAN etc) data to LOG. But i'm getting the desired result when i pass Char data to LOG.
where LOG is structure of TAB512.
Pl. give your inputs to correct the code.
best regards
Mahesh
01-23-2008 9:29 AM
To avoid error you can try,
LOOP AT <dyn_table> INTO <dyn_wa>.
concatenate <dyn_table>-f1 <dyn_table>-f2 into LOG separated by space.
**MOVE <dyn_wa> TO LOG.
APPEND LOG.
ENDLOOP.
But I would suggest you to go through the unicode conversion PDF available in SDN as there are lot of conversion rules applicable regarding structure mapping.
You can no more map a whole work area into a single field.You have to map individual fields.
01-23-2008 10:14 AM
Hi, Sudhir,
Thanks for the reply. I tried with "Concatenate" statement, even then also, it's not allowing to append the non-char value, throwing error as " the arguement can take only char type data object".
thank u
Mahesh
01-23-2008 10:33 AM
Hi Mahesh,
just replace MOVE-CORRSPONDING at MOVE staement. i think it may work.
regards,
sirisha reddy
01-23-2008 10:51 AM
Hi, Sirisha,
Unluckily, the MOVE-CORRESPONDING will not work, as the structure contains single field with long Char length; In which, i'm trying to push the whole work-area.
Thank u
Mahesh