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

Unicode assign error

HI,

Can anybody tell me how can i assign structures with different fields in unicode enabled system.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jun 17, 2008 at 06:24 AM

    Hi Bhagyashree,

    In Unicode system, you need to define the total length of the string. Simply providing the starting point doesnt work.

    *       ASSIGN STXT_LOC+1 TO <B>. " In non-unicode system
    
            ASSIGN STXT_LOC+1(*) TO <B>. " In unicode system
            ASSIGN STXT_LOC+1(10) TO <B>. " In unicode system

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 06:33 AM

    Hi,

    Refer to following

    Error:

    ASSIGN H-TEXT+SY-INDEX TO <F1>.

    SOLUTION:

    ASSIGN H-TEXT+SY-INDEX(*) TO <F1>.

    Reward pts if helpfull.

    Regards,

    Dhan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 10:20 AM

    Hello

    You could use the static methods of CL_ABAP_CONTAINER_UTILITIES:

    1.) READ_CONTAINER_C: read structure A into (unstructured) string Z

    2.) FILL_CONTAINER_C: shuffle string Z into structure B

    Result corresponds to: structure_B = structure_A (possible on non-Unicode)

    Regards

    Uwe

    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.