‎2012 Jan 27 11:48 AM
Hi All,
I need to move the incompactible internal table using field symbol, (without loop statement)
I've got a internal table
lt_itab TYPE TABLE OF stringThe above internal table should be moved to internal table with different field, for instance
TYPES: BEGIN OF ty_tab,
Name TYPE string,
END OF ty_tab.
DATA lt_maintab TYPE TABLE OF ty_tab.I need to to assign lt_tab to lt_maintab without loop statement..
Please advice.
‎2012 Jan 27 1:13 PM
if you could change the types from string to a fixed char width, e.g. char1024 instead of string, than you could assign the tables to each other.
As long as you use string as type, ABAP is talking about deep structures. Only flat structures can directly be assigned. So for me, using ABAP, there's no way around looping.
For somebody used to other languages also, this seems quite strange, but unfortunately is the fact.
‎2012 Jan 27 1:13 PM
if you could change the types from string to a fixed char width, e.g. char1024 instead of string, than you could assign the tables to each other.
As long as you use string as type, ABAP is talking about deep structures. Only flat structures can directly be assigned. So for me, using ABAP, there's no way around looping.
For somebody used to other languages also, this seems quite strange, but unfortunately is the fact.
‎2012 Jan 27 4:24 PM
Hi Benu,
Unfortunately based on the definition of the structures you have it is not possible without the use of the LOOP construct. The definition would have to be altered or a LOOP must be used to achieve this.
Regards,
Ryan Crosby