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

Move corresponding entries from field symbol to an internal table

Hi All,

How can I move corresponding entries in a field symbol to an internal table??

I have requirement where I am creating a dynamic internal table(<fs_table>). For example we have 3 fields in this table.

I have a main structure with 4 fields and an internal table of that structure. Now I need to loop on <fs_table> and need to move the 3 fields into corresponding fields of main table.


field-symbols: <fs_table> type standard table. (This is the dynamic internal table)

types: begin of ty_main,

f1 type c,

f2 type c,

f3 type c,

f4 type c,

end of ty_main.

data: tb_main type standard table of ty_main.

loop at <fs_table> assigning <wa_table>.

What should be the code here to move the contents of <wa_table> into corresponding fileds of tb_main???



Thanks in Advance,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 04:57 AM


    use READ TABLE statement to read the IT_MAIN table within the loop of field symbal..

    then assign data from wa_main to it_main. and append it.


    Venkat N

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Venkat,

      Within the loop of <fs_table> I will not have entries in tb_main.

      Then How can I read the table??.

      I need to populate the mian table from the entries in <fs_table>.



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.