<?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 SELECT Clause WHERE variable not in value list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-variable-not-in-value-list/m-p/3565086#M857968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Masters,&lt;/P&gt;&lt;P&gt;I've got a question: In SQL language we can do a query like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 SELECT my_variables FROM my_table WHERE my_variable NOT IN ('1','2','3')
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think that we can create a local table (lt_test), insert all the values ('1','2','3') inside this table and then create a query like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT my_variables FROM my_table INTO my_LocalTable where my_variable NOT IN lt_test
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My question is this: Is there a way to put the list of values directly in the SELECT clause and not inside a local table?&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT my_variables FROM my_table INTO my_LocalTable where my_variable NOT IN ('1','2','3')
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 13:38:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-31T13:38:53Z</dc:date>
    <item>
      <title>SELECT Clause WHERE variable not in value list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-variable-not-in-value-list/m-p/3565086#M857968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Masters,&lt;/P&gt;&lt;P&gt;I've got a question: In SQL language we can do a query like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 SELECT my_variables FROM my_table WHERE my_variable NOT IN ('1','2','3')
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think that we can create a local table (lt_test), insert all the values ('1','2','3') inside this table and then create a query like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT my_variables FROM my_table INTO my_LocalTable where my_variable NOT IN lt_test
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My question is this: Is there a way to put the list of values directly in the SELECT clause and not inside a local table?&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT my_variables FROM my_table INTO my_LocalTable where my_variable NOT IN ('1','2','3')
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 13:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-variable-not-in-value-list/m-p/3565086#M857968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T13:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Clause WHERE variable not in value list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-variable-not-in-value-list/m-p/3565087#M857969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create  ranges and use that in select clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 13:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-variable-not-in-value-list/m-p/3565087#M857969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT Clause WHERE variable not in value list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-variable-not-in-value-list/m-p/3565088#M857970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the query exactly as your example, it will work.&lt;/P&gt;&lt;P&gt;You can also use  ar ange, which is a kind of internal table, but if you prefer to put the values direct in your query, it's OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 13:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-variable-not-in-value-list/m-p/3565088#M857970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-31T13:59:41Z</dc:date>
    </item>
  </channel>
</rss>

