<?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-Options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030354#M83609</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;   Can anyone please explain the concept of using SELECT-OPTIONS in data fetching (In, Select statement, where clause). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN BEGIN OF BLOCK selsrn WITH FRAME TITLE &lt;/P&gt;&lt;P&gt;                                                 text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO-EXTENSION,&lt;/P&gt;&lt;P&gt;                s_erdat FOR vbak-erdat NO-EXTENSION &lt;/P&gt;&lt;P&gt;                                       NO INTERVALS,&lt;/P&gt;&lt;P&gt;                s_vbtyp FOR vbak-vbtyp,&lt;/P&gt;&lt;P&gt;                s_auart FOR vbak-auart,&lt;/P&gt;&lt;P&gt;                s_vkbur FOR vbak-vkbur.&lt;/P&gt;&lt;P&gt;PARAMETER:      p_kunnr TYPE vbak-kunnr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK selsrn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbeln&lt;/P&gt;&lt;P&gt;         vbtyp&lt;/P&gt;&lt;P&gt;         kunnr&lt;/P&gt;&lt;P&gt;    FROM vbak INTO TABLE it_vbak1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WHERE vbeln = s_vbeln AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         erdat = s_erdat AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         vbtyp = s_vbtyp AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         auart = s_auart AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         vkbur = p_vkbur.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WHERE vbeln IN s_vbeln AND&lt;/P&gt;&lt;P&gt;          erdat IN s_erdat AND&lt;/P&gt;&lt;P&gt;          vbtyp IN s_vbtyp AND&lt;/P&gt;&lt;P&gt;          auart IN s_auart AND&lt;/P&gt;&lt;P&gt;          vkbur IN s_vkbur AND&lt;/P&gt;&lt;P&gt;          kunnr EQ p_kunnr.&lt;/P&gt;&lt;P&gt; Here, I need to know what is the diffrence in the commented "WHERE" and the other. Iam also aware of the select-option structure (Option, Sign, Low and High).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Oct 2005 07:15:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-08T07:15:28Z</dc:date>
    <item>
      <title>Select-Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030354#M83609</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;   Can anyone please explain the concept of using SELECT-OPTIONS in data fetching (In, Select statement, where clause). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex.&lt;/P&gt;&lt;P&gt; SELECTION-SCREEN BEGIN OF BLOCK selsrn WITH FRAME TITLE &lt;/P&gt;&lt;P&gt;                                                 text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO-EXTENSION,&lt;/P&gt;&lt;P&gt;                s_erdat FOR vbak-erdat NO-EXTENSION &lt;/P&gt;&lt;P&gt;                                       NO INTERVALS,&lt;/P&gt;&lt;P&gt;                s_vbtyp FOR vbak-vbtyp,&lt;/P&gt;&lt;P&gt;                s_auart FOR vbak-auart,&lt;/P&gt;&lt;P&gt;                s_vkbur FOR vbak-vkbur.&lt;/P&gt;&lt;P&gt;PARAMETER:      p_kunnr TYPE vbak-kunnr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK selsrn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbeln&lt;/P&gt;&lt;P&gt;         vbtyp&lt;/P&gt;&lt;P&gt;         kunnr&lt;/P&gt;&lt;P&gt;    FROM vbak INTO TABLE it_vbak1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WHERE vbeln = s_vbeln AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         erdat = s_erdat AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         vbtyp = s_vbtyp AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         auart = s_auart AND&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         vkbur = p_vkbur.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WHERE vbeln IN s_vbeln AND&lt;/P&gt;&lt;P&gt;          erdat IN s_erdat AND&lt;/P&gt;&lt;P&gt;          vbtyp IN s_vbtyp AND&lt;/P&gt;&lt;P&gt;          auart IN s_auart AND&lt;/P&gt;&lt;P&gt;          vkbur IN s_vkbur AND&lt;/P&gt;&lt;P&gt;          kunnr EQ p_kunnr.&lt;/P&gt;&lt;P&gt; Here, I need to know what is the diffrence in the commented "WHERE" and the other. Iam also aware of the select-option structure (Option, Sign, Low and High).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2005 07:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030354#M83609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-08T07:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030355#M83610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sumanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way SELECT-OPTIONS have been used in the commented code is not right. Usually you use SELECT-OPTIONS to cover a range or multiple single values or mulitple range of values or range plus some additional single values. For this to work properly you have to use the IN operator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use '=', it tries to take the header line of the SELECT OPTIONS tables and might not return the values that you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward points if this solves your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2005 08:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030355#M83610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-08T08:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030356#M83611</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;One more remark about SELECT-OPTIONS, be aware that if it is empty, then it as if the condition does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, if S_VBELN is empty then there won't be any filter on this criterion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2005 09:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030356#M83611</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2005-10-08T09:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030357#M83612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumanth,&lt;/P&gt;&lt;P&gt;Yes, and despite all these simplicity, the select-options can also be used to indicate single values, ranges, multiple single values, and also &amp;lt;&amp;gt; , &amp;lt;,&amp;gt; etc.&lt;/P&gt;&lt;P&gt;And you can also say Exclude and give a range/single value/multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats just how complex it cud get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2005 10:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1030357#M83612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-08T10:27:30Z</dc:date>
    </item>
  </channel>
</rss>

