Application Development 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: 

Structure incompatible in unicode environment

Former Member
0 Kudos

Hi ,

In Non unicode ls_p0008 = l_ps this assignment is working fine, but in unicode environment i cannot make the assignment early and it says structure incompatible.

So i have written a code as follows.

MOVE-CORRESPONDING l_ps TO ls_p0008.

here l_ps is like PRELP .

and ls_p0008 like p0008.

These PRELP having a different parameter than p008.

so when making assignment like early the values are improperly assigned, and some part looks like ##### ############. what does it mean?

Please help. Urgent!!!!

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos

Hi,

In the Unicode environment both source and target structures should be same. If in your case it is not equal then you need to move field by field from source to target structure.

matt
Active Contributor
0 Kudos

Move corresponding will move the contents of the fields with the same name from one structure to another. So long as those fields have the same definition, it should work fine. If there are fields with different names, or different types, then you have to move their values individual.

ls_p0008 = l_ps simply slaps the contents of l_ps over ls_p0008, without regard for the types of the component fields. In non-unicode this is permitted, but still bad. Numeric fields particularly will not be readable.

matt

former_member386202
Active Contributor
0 Kudos

Hi,

If its not working then loop on ls_ps and pass one by one field to field of ls_pa0008.

Loop at ls_ps.

ls_pa0008-field = ls_ps-field.

append ls_pa0008.

Endloop.

Regards,

Prashant