<?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 Filtering data from internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634960#M283176</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 some common data in three internal tables. The fields in the 3 internal tables are same. It contains some common data and also some different data. Now i need to filter out the commom data among these three tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on one internal table data need to filter the common data from the remaining tables and disply them in the output list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how we can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 10:06:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T10:06:59Z</dc:date>
    <item>
      <title>Filtering data from internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634960#M283176</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 some common data in three internal tables. The fields in the 3 internal tables are same. It contains some common data and also some different data. Now i need to filter out the commom data among these three tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on one internal table data need to filter the common data from the remaining tables and disply them in the output list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how we can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634960#M283176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data from internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634961#M283177</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 loop on one internal table, read the other two internal tables with the values, if found, remove those records from respective internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See that you keep track of index of the records while removing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634961#M283177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data from internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634962#M283178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           a final table can be taken with structure of all required fields which has to be displayed in output list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read one by one internal tables by checking condition and move the data to final table, so that what ever fields are duplicate in these internal tables need not be taken, and fields will be displayed once only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634962#M283178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data from internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634963#M283179</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,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop thru itab2.&lt;/P&gt;&lt;P&gt;  read itab1 with key fields = itab2-fields. &lt;/P&gt;&lt;P&gt;  if itab1 = itab2.&lt;/P&gt;&lt;P&gt;   delete itab2 index lv_tabix.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the same for itab3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634963#M283179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data from internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634964#M283180</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 below internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Advance_list1&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;and the fields are:&lt;/P&gt;&lt;P&gt;Installation_Number&lt;/P&gt;&lt;P&gt;Installation_name&lt;/P&gt;&lt;P&gt;Lloyds_number&lt;/P&gt;&lt;P&gt;Country_of_operation&lt;/P&gt;&lt;P&gt;Superior_fun_location&lt;/P&gt;&lt;P&gt;Project_name&lt;/P&gt;&lt;P&gt;Responsible_unit&lt;/P&gt;&lt;P&gt;Status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &amp;lt;b&amp;gt;Advance_list2&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;Advance_list3&amp;lt;/b&amp;gt; with the same above fields. But the data will be different in all the three tables and contains some common data. Need to filter based on &amp;lt;b&amp;gt;Advance_list1&amp;lt;/b&amp;gt; internal table.If there is no common data then should not disply anything in the output list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls give me some input on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634964#M283180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data from internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634965#M283181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at advance_list1.&lt;/P&gt;&lt;P&gt;  read table advance_list2 with key (all fields).&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     flag2 = 'X'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  read table advance_list3 with key (all fields).&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     flag3 = 'X'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  check flag2 = 'X' and flag3 = 'X'.&lt;/P&gt;&lt;P&gt;*Please note you can use OR instead of AND if it matches one&lt;/P&gt;&lt;P&gt;  write required data.&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;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634965#M283181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data from internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634966#M283182</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;Before carry out the exercise adv by  the other forum mates why dont u do the following 1st if it is possible to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete  adjacent duplicates from itab1  comparing all fields.&lt;/P&gt;&lt;P&gt;delete  adjacent duplicates from itab2  comparing all fields.&lt;/P&gt;&lt;P&gt;delete  adjacent duplicates from itab2  comparing all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB. Reward if it makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 11:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-from-internal-tables/m-p/1634966#M283182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T11:10:35Z</dc:date>
    </item>
  </channel>
</rss>

