Hi,
I have to use one statement in field-symbol similar to "move-corresponding" in normal internal table.Is it possible to use statement similar to "Move-corresponding in field-symbols".
For Eg:
Field-symbols <FA_IT> type standard table.
data:begin of wa_ekk,
f1 type i,
f2 type werks_d,
f4 type posnr,
end of wa_ekk,
it_ekk like standard table of wa_ekk.
begin of wa_final,
f1 type i,
f2 type werks_d,
f3 type i,
f4 type n,
end of wa_final,
it_final like standard table of wa_final.
assign it_ekk to <fs_it>.
Loop at <fs_it>.
*???????
*???????-i dont know how to move the value to it_final
*---I know I can use assign component statement
*
-to move each field to the target field
but for that we need to know the field name or index position of the structure
-
Endloop.
My requirment is now i want to move the content of <fs_it> into it_final internal table.
I know that In normal itab we can use "move-corresponding" to move the value from it_ekk to it_final.
In the same way how to use it in field-symbol concept.
Requirement:Real time Processing of Internal table
1) Content of it_ekk:
f1 f2 f4
-
12 1000 0023
23 2000 0037
2)After ASSIGN statement:
Content of <fs_it> is:
f1 f2 f4
-
12 1000 0023
23 2000 0037
3)Now I want to move the content of <fs_it> to it_final
Output of It_final:
F1 F2 F3 F4
-
12 1000 --- 0023
23 2000 --- 0037
Regards,
Vigneswaran S