09-13-2010 11:30 AM
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
09-13-2010 11: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
09-13-2010 11:40 AM
09-13-2010 11: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
09-13-2010 12:31 PM
Hi ,
But fields are different , so what can i do?
Thanks and Regards,
I.Muthukumar.
09-13-2010 1: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
09-13-2010 4: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