<?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: Filling dynamic internal table using data from some other internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163085#M1622412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Sep 2015 19:49:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-09-20T19:49:30Z</dc:date>
    <item>
      <title>Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163078#M1622405</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;One of my internal table is filled from transparent table.  Second internal table is created using RTTI ( dynamic table ). I want to fill the second table by looping on the first table and moving matching fields and other fields based on conditions. How to do it? how to compare the table of two fields during runtime, and then move. Kindly help me out in filling the 2nd table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; new_type = cl_abap_structdescr=&amp;gt;create( fcat_table ).&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_ABAP_TABLEDESCR=&amp;gt;CREATE&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      P_LINE_TYPE  = new_type&lt;/P&gt;&lt;P&gt;      P_TABLE_KIND = cl_abap_tabledescr=&amp;gt;tablekind_std&lt;/P&gt;&lt;P&gt;      P_UNIQUE     = ABAP_FALSE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     P_KEY        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     P_KEY_KIND   = KEYDEFKIND_DEFAULT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    RECEIVING&lt;/P&gt;&lt;P&gt;      P_RESULT     = new_tab&lt;/P&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;   CATCH CX_SY_TABLE_CREATION .&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN tab_records-&amp;gt;* to &amp;lt;disp_tab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA tab_line like line of &amp;lt;disp_tab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_validn_categ ASSIGNING &amp;lt;struc_dbtable&amp;gt;.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DPM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 06:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163078#M1622405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T06:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163079#M1622406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your dynamic IT is assigned you can just use move-corresponding to move the common fields from your first table to the dynamic Table/Work Area.&lt;/P&gt;&lt;P&gt;It would be something like ithis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="10551046"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 07:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163079#M1622406</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-18T07:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163080#M1622407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to check the FIELDNAME and then you want to move the value to other table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply you want to push the records from one tab to other tab?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 07:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163080#M1622407</guid>
      <dc:creator>Shahid</dc:creator>
      <dc:date>2011-08-18T07:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163081#M1622408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, some fields are common. There is one field in 1st internal table, which is split across many fields in 2nd table, most of the remaining fields are same in both the tables.  So based on condition value will move to field in 2nd bucket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DPM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163081#M1622408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T09:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163082#M1622409</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 need to use the field-symbol, but how depends on the conditions you need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163082#M1622409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T09:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163083#M1622410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at the tab1 to tab1 work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move corresponding fields of tabl wa to tab2 wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify tab2 from tab2 work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end  the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a method of transferring datas from one table to another&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163083#M1622410</guid>
      <dc:creator>sivaprasad_ml</dc:creator>
      <dc:date>2011-08-18T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163084#M1622411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Team Lead helped in resolving the issue. Thanks to all of you for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution: &lt;/P&gt;&lt;P&gt;I was trying to fill the empty dynamic table from another table which was already filled. I changed the approach and instead filled a known field of a dynamic table from database table followed by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; looping at dynamic internal table and  assigning component of structure ,then using read table from the 1st table( already filled using select query from dbtable), I managed to fill the other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DPM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 15:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163084#M1622411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T15:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163085#M1622412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2015 19:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163085#M1622412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-20T19:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table using data from some other internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163086#M1622413</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;Please check the "Last Logged In:" of DEBOPRIYO MALLICK...... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 01:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table-using-data-from-some-other-internal-table/m-p/8163086#M1622413</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2015-09-21T01:38:40Z</dc:date>
    </item>
  </channel>
</rss>

