12-04-2007 12:27 AM
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!!!!
12-04-2007 3:53 AM
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.
a®
12-04-2007 8:18 AM
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
12-04-2007 8:21 AM
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