<?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 option question.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992859#M706904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN LVBUK&lt;/P&gt;&lt;P&gt;... Query will select the records for all the VBELN in the table LVBUK...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN ... for select-options&lt;/P&gt;&lt;P&gt;When you want to use the select options you have to use the IN operator to check against your select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 19:51:37 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-10-29T19:51:37Z</dc:date>
    <item>
      <title>SELECT option question....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992858#M706903</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;&lt;/P&gt;&lt;P&gt;What is the meaning of FOR ALL ENTRIES IN.. as in the code below: where can I find the documentation of FOR ALL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * INTO CORRESPONDING FIELDS OF TABLE L_SPETAB&lt;/P&gt;&lt;P&gt;          FROM VBAK&lt;/P&gt;&lt;P&gt;          FOR ALL ENTRIES IN LVBUK&lt;/P&gt;&lt;P&gt;          WHERE VBELN = LVBUK-VBELN&lt;/P&gt;&lt;P&gt;          AND   LIFSK IN LIFSPE&lt;/P&gt;&lt;P&gt;          AND   VKORG = VKORG&lt;/P&gt;&lt;P&gt;          AND   VTWEG IN VTWEG&lt;/P&gt;&lt;P&gt;          AND   SPART IN SPART. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the meaning of IN (as in the last line of code above)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992858#M706903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T19:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT option question....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992859#M706904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN LVBUK&lt;/P&gt;&lt;P&gt;... Query will select the records for all the VBELN in the table LVBUK...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN ... for select-options&lt;/P&gt;&lt;P&gt;When you want to use the select options you have to use the IN operator to check against your select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992859#M706904</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-10-29T19:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT option question....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992860#M706905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just put your cursor on WHERE in a SELECT statement and press F1. It will answer both questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992860#M706905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T19:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT option question....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992861#M706906</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;From online help ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabular Conditions:&lt;/P&gt;&lt;P&gt;The WHERE clause of the SELECT statement has a special variant that allows you to derive conditions from the lines and columns of an internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ... FOR ALL ENTRIES IN &amp;lt;itab&amp;gt; WHERE &amp;lt;cond&amp;gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;cond&amp;gt; may be formulated as described above. If you specify a field of the internal table &amp;lt;itab&amp;gt; as an operand in a condition, you address all lines of the internal table. The comparison is then performed for each line of the internal table. For each line, the system selects the lines from the database table that satisfy the condition. The result set of the SELECT statement is the union of the individual selections for each line of the internal table. Duplicate lines are automatically eliminated from the result set. If &amp;lt;itab&amp;gt; is empty, the addition FOR ALL ENTRIES is disregarded, and all entries are read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table &amp;lt;itab&amp;gt; must have a structured line type, and each field that occurs in the condition &amp;lt;cond&amp;gt; must be compatible with the column of the database with which it is compared. Do not use the operators LIKE, BETWEEN, and IN in comparisons using internal table fields. You may not use the ORDER BY clause in the same SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the option FOR ALL ENTRIES to replace nested select loops by operations on internal tables. This can significantly improve the performance for large sets of selected data.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:55:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992861#M706906</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-29T19:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT option question....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992862#M706907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below link for help docu:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-question/m-p/2992862#M706907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T19:57:30Z</dc:date>
    </item>
  </channel>
</rss>

