Skip to Content
author's profile photo Former Member
Former Member

Structure incompatible in unicode environment

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!!!!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 04, 2007 at 03: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.