<?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 filter internal table with data in another internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893300#M680002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to filter a field(account) of one internal table with another 'account' filed that exist in another internal table.&lt;/P&gt;&lt;P&gt;and modify the first internal table accordingly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;requirement given is "      Filter the list of accounts by those returned via the GET_ORG_DATA FM for       Reconciler, Approver, and Owner "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will this work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    loop at t_items.   " first internal table is t_items
    read table t_items with key accounts = t_lookup-accounts. " t_lookup - 2nd IT
    if syst-subrc = 0.
    append t_items.
    endif.
    endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points assured&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        maahi verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 03:55:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T03:55:28Z</dc:date>
    <item>
      <title>filter internal table with data in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893300#M680002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to filter a field(account) of one internal table with another 'account' filed that exist in another internal table.&lt;/P&gt;&lt;P&gt;and modify the first internal table accordingly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;requirement given is "      Filter the list of accounts by those returned via the GET_ORG_DATA FM for       Reconciler, Approver, and Owner "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will this work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    loop at t_items.   " first internal table is t_items
    read table t_items with key accounts = t_lookup-accounts. " t_lookup - 2nd IT
    if syst-subrc = 0.
    append t_items.
    endif.
    endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points assured&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        maahi verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893300#M680002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: filter internal table with data in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893301#M680003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the requirement says, you need to filter the data based upon list of accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a modified pseudo code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_items.   " first internal table is t_items&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;read table t_lookups with key accounts = t_items-accounts. &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    if syst-subrc ne 0.&lt;/P&gt;&lt;P&gt;    delete t_items.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 03:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893301#M680003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T03:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: filter internal table with data in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893302#M680004</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;Here is the correct one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    loop at t_items.   " first internal table is t_items
      read table t_items with key accounts = t_lookup-accounts. " t_lookup - 2nd IT
      if syst-subrc &amp;lt;&amp;gt; 0. " if not found, delete fisrt table data.
        delete t_items.
      endif.
    endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 04:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893302#M680004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T04:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: filter internal table with data in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893303#M680005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_lookup is the table in which the data is coming from GET_ORG_DATA function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i think we need to filter the data which is not common in both the tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 04:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893303#M680005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T04:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: filter internal table with data in another internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893304#M680006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;requirement given is " Filter the list of accounts by those returned via the GET_ORG_DATA FM for Reconciler, Approver, and Owner "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is the reason - we are reading T_LOOKUP table in the T_ITEMS loop and flitering data of T_ITEMS based upon T_LOOKUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If entry is not found, delete entry from T_ITEMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 04:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-data-in-another-internal-table/m-p/2893304#M680006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T04:09:01Z</dc:date>
    </item>
  </channel>
</rss>

