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

Problem move to different structure in ECC6

Hi Friends,

I have face the problem on move to different structure using body operator and filed also different in ecc6, So could you help.

But same thinks working fine in 4.5B

This is ecc6.

DATA: IS560 LIKE S560 OCCURS 0 WITH HEADER LINE.

DATA: T_DATA_RECORDS LIKE INDX OCCURS 0 WITH HEADER LINE.

IS560[ ] = : T_DATA_RECORDS [ ].

This error in ecc6.

Below is 4.5B.

DATA: IS560 LIKE S560 OCCURS 0 WITH HEADER LINE.

DATA: T_DATA_RECORDS LIKE MCSLINE OCCURS 0 WITH HEADER LINE.

IS560[ ] = : T_DATA_RECORDS [ ].

this correct in4.5B

Thanks and Regards,

I.Muthukumar.

Edited by: I.Muthukumar on Sep 13, 2010 12:31 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2010 at 10:38 AM

    check the table structures , and I am not sure about '=:' never seen it in abap before.

    Edited by: BrightSide on Sep 13, 2010 11:38 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2010 at 10:40 AM

    Hi ,

    Every thing i have checked .

    Thanks and regards,

    I.Muthukumar.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 13, 2010 at 10:43 AM

    Hi,

    This will not work in ECC due to Unicode. do like this

    Lopp at T_DATA_RECORDS pass data to IS560 and append.

    Regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2010 at 11:31 AM

    Hi ,

    But fields are different , so what can i do?

    Thanks and Regards,

    I.Muthukumar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2010 at 12:42 PM

    In ECC 6.0 usually UNICODE CHECKS ACTIVE attribute in a program is active. If your system is a UNICODE ECC6 system you cannot change this attribute. But if it is NON-UNICODE ECC6 system, then try to turn off this program attribute. It should work like in 4.5B then. However, such coding is of very bad style nowadays. I recommend reading about UNICODE FRAGMENT VIEW which specifies when such assignments are allowed even if UNICODE CHECKS ACTIVE attribute is on. Generally you should do with a LOOP and you can use the ASSIGN statement with CASTING/RANGE to obtain what you need. Look at documentation.

    Regadrs

    Edited by: Krzysztof Usowicz on Sep 13, 2010 2:43 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2010 at 03:08 PM

    Hi,

    Try to use field-Symbols as shown below,it will move the data to the table specified.

    DATA: IS560 LIKE mara OCCURS 0 WITH HEADER LINE.

    DATA: T_DATA_RECORDS LIKE MCSLINE OCCURS 0 WITH HEADER LINE.

    field-SYMBOLS <fs> type mara.

    T_DATA_RECORDS = '1234567896780-9856095606805689508907080-980bkbjdfkljgfgfgklhgknmk'.

    assign T_DATA_RECORDS to <fs> CASTING.

    IS560 = <fs>.

    Let me know if you have any doubt.

    Regards,

    Shirisha

    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.