<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: fill dinamic internal table from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-dinamic-internal-table-from-internal-table/m-p/7089643#M1507056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot i solved by myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jul 2010 18:21:05 GMT</pubDate>
    <dc:creator>alejandro_romero2</dc:creator>
    <dc:date>2010-07-08T18:21:05Z</dc:date>
    <item>
      <title>fill dinamic internal table from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-dinamic-internal-table-from-internal-table/m-p/7089641#M1507054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus i need to know how can i fill a dinamic interna table from another internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example i have  the table called it_info with the followin information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1    field2         field3&lt;/P&gt;&lt;P&gt; Alex     Ross           1 &lt;/P&gt;&lt;P&gt; Rita      Campos       1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because i have the same value in field 3 i have to agroup register 1 and 2  in the same line so the data should be in the next way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1 field2  field3  field4 field5&lt;/P&gt;&lt;P&gt;Alex    Ross   1        Rita    Campos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a dinamic interna table so my table has the 5 fields but i dont know how to trasfer the data to my dinamic internal table, any idea? my source code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      it_campos-campo = 'Field1'. APPEND it_campos. &lt;/P&gt;&lt;P&gt;      it_campos-campo = 'Field2'. APPEND it_campos. &lt;/P&gt;&lt;P&gt;      it_campos-campo = 'Field3'. APPEND it_campos. &lt;/P&gt;&lt;P&gt;      it_campos-campo = 'Field4'. APPEND it_campos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at  it_campos .&lt;/P&gt;&lt;P&gt;      t_fieldcat_wa-col_pos = SY-TABIX.&lt;/P&gt;&lt;P&gt;      t_fieldcat_wa-fieldname = it_campos-campo.&lt;/P&gt;&lt;P&gt;      APPEND t_fieldcat_wa TO t_fieldcat.&lt;/P&gt;&lt;P&gt;    endloop  . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;        it_fieldcatalog            = t_fieldcat&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;        ep_table                   = tabla&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;        GENERATE_SUBPOOL_DIR_FULL  = 1&lt;/P&gt;&lt;P&gt;    others                         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN tabla-&amp;gt;* TO &amp;lt;l_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    CREATE DATA ep_line LIKE LINE OF &amp;lt;l_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    ASSIGN ep_line-&amp;gt;* TO &amp;lt;l_line&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my dinamic internal table &amp;lt;l_table&amp;gt; is ready but how should i trasnfer the it_info data to this other table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 15:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-dinamic-internal-table-from-internal-table/m-p/7089641#M1507054</guid>
      <dc:creator>alejandro_romero2</dc:creator>
      <dc:date>2010-07-08T15:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: fill dinamic internal table from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-dinamic-internal-table-from-internal-table/m-p/7089642#M1507055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This method (cl_alv_table_create=&amp;gt;create_dynamic_table) is really old-fashioned and counter-performant and limited as it uses GENERATE SUBROUTINE POOL statement.&lt;/P&gt;&lt;P&gt;Instead you should now use RTTC to create data, search forum for more information (sometimes referred as RTTS or RTTI, though this last one doesn't correspond to creation; you'll have to use CREATE DATA statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, your question has been asked many times in the forum: &lt;A href="http://www.sdn.sap.com/irj/scn/advancedsearch?query=fill" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/advancedsearch?query=fill&lt;/A&gt;&lt;EM&gt;dynamic&lt;/EM&gt;internal+table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help you a little bit, you need to use ASSIGN and FIELD-SYMBOLS statements (ASSIGN COMPONENT field_name OF STRUCTURE &amp;lt;fs_line&amp;gt; TO &amp;lt;fs_field&amp;gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 17:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-dinamic-internal-table-from-internal-table/m-p/7089642#M1507055</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-07-08T17:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: fill dinamic internal table from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-dinamic-internal-table-from-internal-table/m-p/7089643#M1507056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot i solved by myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 18:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-dinamic-internal-table-from-internal-table/m-p/7089643#M1507056</guid>
      <dc:creator>alejandro_romero2</dc:creator>
      <dc:date>2010-07-08T18:21:05Z</dc:date>
    </item>
  </channel>
</rss>

