<?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: Filtering Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-internal-table/m-p/3085782#M731806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Loop at the table T_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table t_temp with key as PO number &lt;/P&gt;&lt;P&gt;   if no record is found then delete the entry from T_OUTPUT&lt;/P&gt;&lt;P&gt;   continue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table t_temp1 with key as PO number &lt;/P&gt;&lt;P&gt;   if no record is found then delete the entry from T_OUTPUT&lt;/P&gt;&lt;P&gt;   continue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table t_temp2 with key as PO number &lt;/P&gt;&lt;P&gt;   if no record is found then delete the entry from T_OUTPUT&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Preapare a RANGE for PO numbers in T_TEMP, T_TEMP1,T_TEMP2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  then use statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE T_OUPUT WHERE NOT PO IN RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2007 13:32:56 GMT</pubDate>
    <dc:creator>former_member195698</dc:creator>
    <dc:date>2007-11-30T13:32:56Z</dc:date>
    <item>
      <title>Filtering Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-internal-table/m-p/3085780#M731804</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 have to filter  the records from Final table T_OUTPUT  based on the selection criteria, need to delete record sin T_OUTPUT if the PO number is not in T_TEMP and T_TEMP is not initial. Similarly delete records if the PO number is not in T_TEMP1 and T_TEMP1 is not initial and delete records if the PO number is not in T_TEMP2 and T_TEMP2 is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one provide logic for this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 13:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-internal-table/m-p/3085780#M731804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T13:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-internal-table/m-p/3085781#M731805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;This is somthing like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at T_OUTPUT
...
clear t_temp.
read table t_temp with key po = t_ouptut-po
  if sy-subrc ne 0.
    delete t_output.
    modify t_output.
  endif.

...
endloop.
 &lt;/CODE&gt;&lt;/PRE&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;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 13:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-internal-table/m-p/3085781#M731805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T13:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-internal-table/m-p/3085782#M731806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Loop at the table T_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table t_temp with key as PO number &lt;/P&gt;&lt;P&gt;   if no record is found then delete the entry from T_OUTPUT&lt;/P&gt;&lt;P&gt;   continue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table t_temp1 with key as PO number &lt;/P&gt;&lt;P&gt;   if no record is found then delete the entry from T_OUTPUT&lt;/P&gt;&lt;P&gt;   continue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table t_temp2 with key as PO number &lt;/P&gt;&lt;P&gt;   if no record is found then delete the entry from T_OUTPUT&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Preapare a RANGE for PO numbers in T_TEMP, T_TEMP1,T_TEMP2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  then use statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE T_OUPUT WHERE NOT PO IN RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 13:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-internal-table/m-p/3085782#M731806</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-11-30T13:32:56Z</dc:date>
    </item>
  </channel>
</rss>

