<?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 query using SELECT-OPTIONS. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423845#M1409801</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;Try to pass ur select option field in the anather globle defined field and write down that field in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Dec 2009 04:59:16 GMT</pubDate>
    <dc:creator>former_member329859</dc:creator>
    <dc:date>2009-12-10T04:59:16Z</dc:date>
    <item>
      <title>SELECT query using SELECT-OPTIONS.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423844#M1409800</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;Scenario:&lt;/P&gt;&lt;P&gt;One main program and an include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT-OPTIONS is declared in the main program and the SELECT query is being fired in the Include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaration in the main program:&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;	       gw_linv_tab  	TYPE            linv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS   :&lt;/P&gt;&lt;P&gt;                   s_lgnum    FOR   gw_linv_tab-lgnum    OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside Include:&lt;/P&gt;&lt;P&gt;    SELECT        lgnum&lt;/P&gt;&lt;P&gt;      FROM        t300&lt;/P&gt;&lt;P&gt;      INTO TABLE  lt_t300&lt;/P&gt;&lt;P&gt;      WHERE       lgnum IN s_lgnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax error:&lt;/P&gt;&lt;P&gt;The IN operator with "S_LGNUM" is followed neither by an internal table		&lt;/P&gt;&lt;P&gt;nor by a value list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please suggest what is that I am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the same scenario in a test program and it works perfectly fine there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to figure out the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;s@k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 04:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423844#M1409800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T04:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT query using SELECT-OPTIONS.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423845#M1409801</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;Try to pass ur select option field in the anather globle defined field and write down that field in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 04:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423845#M1409801</guid>
      <dc:creator>former_member329859</dc:creator>
      <dc:date>2009-12-10T04:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT query using SELECT-OPTIONS.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423846#M1409802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ..&lt;/P&gt;&lt;P&gt;Tried the same.. Didn't get any error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure that your TOP include (Include where SELECT-OPTIONS declared) is active..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 05:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423846#M1409802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T05:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT query using SELECT-OPTIONS.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423847#M1409803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Make shure tht ur select option statment should be above the include program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;Select- options&amp;lt;&amp;gt;.&lt;/P&gt;&lt;P&gt;Include&amp;lt;&amp;gt;  and write the code in ur include statement.&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;Rasheed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 05:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423847#M1409803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T05:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT query using SELECT-OPTIONS.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423848#M1409804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rasheed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot..:) it solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;s@k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 05:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-using-select-options/m-p/6423848#M1409804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-10T05:07:58Z</dc:date>
    </item>
  </channel>
</rss>

