<?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: select-options in SELECT query - syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861843#M1136816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Include CATSDB in tables statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Dec 2008 03:35:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-06T03:35:28Z</dc:date>
    <item>
      <title>select-options in SELECT query - syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861840#M1136813</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;  I get the error below when I try to use the select options in a SELECT query . Please help me.&lt;/P&gt;&lt;P&gt;"The IN operator with "SO_AWART" is followed neither by an internal&lt;/P&gt;&lt;P&gt;table nor by a value list."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code i have used(Logical database  PNP is used):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: pernr,&lt;/P&gt;&lt;P&gt;        catsdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ztime_cwtr_top.    " global Data&lt;/P&gt;&lt;P&gt;INCLUDE ztime_cwtr_f01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS SO_AWART FOR CATSDB-AWART.&lt;/P&gt;&lt;P&gt;PARAMETERS P_THRES TYPE I.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get data from CATSDB table. Workdates within the date interval are considered.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT pernr workdate awart catsquantity beguz enduz status&lt;/P&gt;&lt;P&gt;  FROM catsdb&lt;/P&gt;&lt;P&gt;  INTO TABLE it_catsdb&lt;/P&gt;&lt;P&gt;  WHERE pernr  = pernr-pernr    AND&lt;/P&gt;&lt;P&gt;       workdate GE pn-begda     AND&lt;/P&gt;&lt;P&gt;       workdate LE pn-endda     AND&lt;/P&gt;&lt;P&gt;       status   IN ('20', '30') AND&lt;/P&gt;&lt;P&gt;       awart    IN  so_awart .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      awart    IN ('1100', '1137', '1138', '1139', '1140',&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                  '1147', '1148', '1149', '1157', '2003' ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I give the values directly i do not get any syntax error, but when I use select options in the where condition I get the syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried different options like using only the select-options in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2008 02:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861840#M1136813</guid>
      <dc:creator>madhu_reddy22</dc:creator>
      <dc:date>2008-12-06T02:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in SELECT query - syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861841#M1136814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use NO INTERVALS for AWART as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS SO_AWART FOR CATSDB-AWART NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your query works now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2008 03:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861841#M1136814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-06T03:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in SELECT query - syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861842#M1136815</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 remove in operator for status and replace with =.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2008 03:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861842#M1136815</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-12-06T03:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in SELECT query - syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861843#M1136816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Include CATSDB in tables statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2008 03:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861843#M1136816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-06T03:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: select-options in SELECT query - syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861844#M1136817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code with syntax error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include z...top .&lt;/P&gt;&lt;P&gt;include z...fo1.&lt;/P&gt;&lt;P&gt;select-options: xxxxxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code  with no syntax error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: xxxxxxx&lt;/P&gt;&lt;P&gt;include z...top .&lt;/P&gt;&lt;P&gt;include z...fo1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2008 04:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-in-select-query-syntax-error/m-p/4861844#M1136817</guid>
      <dc:creator>madhu_reddy22</dc:creator>
      <dc:date>2008-12-06T04:24:55Z</dc:date>
    </item>
  </channel>
</rss>

