<?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: Filter internal table with select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313942#M1393164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rajni,&lt;/P&gt;&lt;P&gt;i dont think there is much error in your code..&lt;/P&gt;&lt;P&gt;just change &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_tdline for tline-tdline.&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_tdline for wa_tmp-tdline.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and keep a debugger in that line..... and see the value in table and in the select option.. compare themm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2009 10:29:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-10T10:29:15Z</dc:date>
    <item>
      <title>Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313939#M1393161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is with select options. Following is the structure of my internal table. I have to delete the data from itab based on select options selections. It is not behaving the way I expected. It is not filetering all entires. I have tried declaring the table of type hashed with key. Not getting how select option works in the where condition of internal table. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF t_data,&lt;/P&gt;&lt;P&gt;                 kunnr TYPE kna1-kunnr,&lt;/P&gt;&lt;P&gt;                 tdline TYPE tline-tdline,&lt;/P&gt;&lt;P&gt;            END OF t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_tmp TYPE STANDARD TABLE OF t_data,&lt;/P&gt;&lt;P&gt;            wa_tmp TYPE t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_tdline for tline-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_tmp WHERE tdline not in s_tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313939#M1393161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313940#M1393162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE it_tmp WHERE (tdline &amp;lt;&amp;gt; s_tdline-low and tdline &amp;lt;&amp;gt; s_tdline-high).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313940#M1393162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T10:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313941#M1393163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May sound silly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the position of NOT before the field in the where of the delete statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES:BEGIN OF t_data,
kunnr TYPE kna1-kunnr,
tdline TYPE tline-tdline,
END OF t_data.

DATA: it_tmp TYPE STANDARD TABLE OF t_data,
wa_tmp TYPE t_data.

SELECT-OPTIONS: s_tdline for tline-tdline.

DELETE it_tmp WHERE NOT tdline in s_tdline.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313941#M1393163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T10:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313942#M1393164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rajni,&lt;/P&gt;&lt;P&gt;i dont think there is much error in your code..&lt;/P&gt;&lt;P&gt;just change &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_tdline for tline-tdline.&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: s_tdline for wa_tmp-tdline.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and try..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and keep a debugger in that line..... and see the value in table and in the select option.. compare themm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313942#M1393164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T10:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313943#M1393165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wrong syntax in the code.&lt;/P&gt;&lt;P&gt;DELETE it_tmp WHERE not tdline in s_tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your syntax, s_tdline represents the header not the body.&lt;/P&gt;&lt;P&gt;add the [] to the selection option so the body of the internal table is considered and your problem will be fixed.&lt;/P&gt;&lt;P&gt;refer to the correct syntax given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_tmp WHERE not tdline in s_tdline[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313943#M1393165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T10:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313944#M1393166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; DELETE it_tmp WHERE tdline not in s_tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the correct syntax according to ABAP documentation. Please give a specific example for contents of it_tmp (before and after the deletion) and s_tdline for a case that does not work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 10:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313944#M1393166</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-11-10T10:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313945#M1393167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DELETE it_tmp WHERE tdline not in s_tdline.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a syntax error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Field "IN" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas when i change it to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DELETE it_tmp WHERE NOT tdline in s_tdline.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am on version 4.6 C. Not sure if this is version dependent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313945#M1393167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T11:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313946#M1393168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might sounded silly but solved my problem .Sometimes tend to do silly mistakes you see, Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313946#M1393168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T11:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313947#M1393169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was it  my suggestion that solved your question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313947#M1393169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T11:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313948#M1393170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikranth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not giving error if the statement is ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DELETE it_tmp WHERE tdline not in s_tdline.  on ECC 5.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313948#M1393170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T11:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313949#M1393171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. It is your suggestion that solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Changing the position of NOT before the field in the where of the delete statement".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313949#M1393171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T11:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313950#M1393172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for letting me know that. Looks like the usage of NOT varies with different versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313950#M1393172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T11:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313951#M1393173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was introduced for release 6.10:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABENNEWS-610-OTHERS.htm#!ABAP_MODIFICATION_3@3@" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABENNEWS-610-OTHERS.htm#!ABAP_MODIFICATION_3@3@&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again this highlights that anybody asking a question should briefly quote the version he is working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313951#M1393173</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-11-10T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter internal table with select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313952#M1393174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soumyapraksh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. Your suggestion is working as well. I just tried it. No need to change the position of NOT with the following declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_tdline for wa_tmp-tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_tmp WHERE tdline NOT IN s_tdline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 11:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-internal-table-with-select-options/m-p/6313952#M1393174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T11:50:45Z</dc:date>
    </item>
  </channel>
</rss>

