Application Development and Automation 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: 
Read only

Problem move to different structure in ECC6

Former Member
0 Likes
988

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

6 REPLIES 6
Read only

Former Member
0 Likes
945

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

Read only

Former Member
0 Likes
945

Hi ,

Every thing i have checked .

Thanks and regards,

I.Muthukumar.

Read only

former_member386202
Active Contributor
0 Likes
945

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

Read only

Former Member
0 Likes
945

Hi ,

But fields are different , so what can i do?

Thanks and Regards,

I.Muthukumar.

Read only

Former Member
0 Likes
945

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

Read only

Former Member
0 Likes
945

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