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

Data objects in unicode program are not convertible

Former Member
0 Likes
857

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

4 REPLIES 4
Read only

Former Member
0 Likes
667

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.

Read only

Former Member
0 Likes
667

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

Read only

0 Likes
667

Hi Mahesh,

just replace MOVE-CORRSPONDING at MOVE staement. i think it may work.

regards,

sirisha reddy

Read only

Former Member
0 Likes
667

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