<?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: Populate data from dynamic internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-dynamic-internal-table/m-p/6848702#M1474103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at &amp;lt;it_table&amp;gt;&lt;/P&gt;&lt;P&gt;       into &amp;lt;is_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    loop at it_fieldcatalog&lt;/P&gt;&lt;P&gt;         into is_fieldcatalog.&lt;/P&gt;&lt;P&gt;      assign component is_fieldcatalog-fieldname&lt;/P&gt;&lt;P&gt;             of structure &amp;lt;is_table&amp;gt;&lt;/P&gt;&lt;P&gt;             to &amp;lt;field1&amp;gt;.&lt;/P&gt;&lt;P&gt;      concatenate 'IT_TABLE-'&lt;/P&gt;&lt;P&gt;                          is_fieldcatalog-fieldname&lt;/P&gt;&lt;P&gt;                         into w_field.&lt;/P&gt;&lt;P&gt;     assign (w_field) to &amp;lt;field2&amp;gt;.&lt;/P&gt;&lt;P&gt;     check sy-subrc eq space.&lt;/P&gt;&lt;P&gt;      move &amp;lt;field1&amp;gt; to &amp;lt;field2&amp;gt;.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;   append it_table&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 14:06:25 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2010-05-18T14:06:25Z</dc:date>
    <item>
      <title>Populate data from dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-dynamic-internal-table/m-p/6848701#M1474102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have dynamic internal table &amp;lt;lt_paxxxx&amp;gt;. Iam fillling &amp;lt;lt_paxxxx&amp;gt; in the following way.&lt;/P&gt;&lt;P&gt;select * into table &amp;lt;lt_paxxxx&amp;gt; from (infty-dbname).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to pass data of &amp;lt;lt_paxxxx&amp;gt; to another internal table lt_final. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'lt_final' should contain fields like &amp;lt;lt_paxxxx&amp;gt;, infty name, DB name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me out how to pass &amp;lt;lt_paxxxx&amp;gt; data to 'LT_FINAL'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 13:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-dynamic-internal-table/m-p/6848701#M1474102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T13:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data from dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-dynamic-internal-table/m-p/6848702#M1474103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at &amp;lt;it_table&amp;gt;&lt;/P&gt;&lt;P&gt;       into &amp;lt;is_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    loop at it_fieldcatalog&lt;/P&gt;&lt;P&gt;         into is_fieldcatalog.&lt;/P&gt;&lt;P&gt;      assign component is_fieldcatalog-fieldname&lt;/P&gt;&lt;P&gt;             of structure &amp;lt;is_table&amp;gt;&lt;/P&gt;&lt;P&gt;             to &amp;lt;field1&amp;gt;.&lt;/P&gt;&lt;P&gt;      concatenate 'IT_TABLE-'&lt;/P&gt;&lt;P&gt;                          is_fieldcatalog-fieldname&lt;/P&gt;&lt;P&gt;                         into w_field.&lt;/P&gt;&lt;P&gt;     assign (w_field) to &amp;lt;field2&amp;gt;.&lt;/P&gt;&lt;P&gt;     check sy-subrc eq space.&lt;/P&gt;&lt;P&gt;      move &amp;lt;field1&amp;gt; to &amp;lt;field2&amp;gt;.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;   append it_table&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 14:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-dynamic-internal-table/m-p/6848702#M1474103</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2010-05-18T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data from dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-dynamic-internal-table/m-p/6848703#M1474104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use method CL_ABAP_TYPEDESCR=&amp;gt;DESCRIBE_BY_DATA to get the description object of each of the tables. The method returns an object reference of type CL_ABAP_TYPEDESCR - but in case of an internal table you an cast this reference to type CL_ABAP_TABLEDESCR. In this object you have a public attribute COMPONENTS which describe the components of a table's line.&lt;/P&gt;&lt;P&gt;With the two components lists of the 2 tables you should be able to move the values to your target table using dynamic ASSIGN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Gerd Rother&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 14:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-dynamic-internal-table/m-p/6848703#M1474104</guid>
      <dc:creator>gerd_rother</dc:creator>
      <dc:date>2010-05-18T14:08:14Z</dc:date>
    </item>
  </channel>
</rss>

