<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725471#M316336</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;         SELECT ENDSELECT is usually used when we need to select a range of values. Values which are just needed from the IT are selected  using this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT is not concluded by ENDSELECT :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is a SELECT SINGLE command, &lt;/P&gt;&lt;P&gt;if only aggregate functions appear in the SELECT clause and there is no GROUP BY clause, or &lt;/P&gt;&lt;P&gt;if the INTO clause INTO TABLE itab or APPENDING TABLE itab does not include the addition PACKAGE SIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Dec 2006 07:21:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-01T07:21:28Z</dc:date>
    <item>
      <title>select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725464#M316329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  when we will use &lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;end select&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 15:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725464#M316329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T15:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725465#M316330</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;I think generally if you don't have the full primary value to use SELECT SINGLE..You will be SELECT UP TO 1 ROWS with an ENDSELECT..Can be used for existence check..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example..&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;SELECT MATNR UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;              INTO V_MATNR&lt;/P&gt;&lt;P&gt;              FROM VBAP&lt;/P&gt;&lt;P&gt;              WHERE VBELN = '1234567'.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 15:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725465#M316330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T15:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725466#M316331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you want process some thing( calculating or writing to list )  while fetching the date  , &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;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 19:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725466#M316331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T19:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725467#M316332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT... INTO TABLE it_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at it_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select...Endselect creates a loop within the select statement BUT... it performs multiple DB reads to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The INTO TABLE above performs one and only one DB read... which is much faster and efficient for the App server and DB server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 19:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725467#M316332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T19:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725468#M316333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * from &amp;lt;Table&amp;gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;All Processing Logic&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;END SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT - END SELECT works like a loop. A single record is read and the processing is done.&lt;/P&gt;&lt;P&gt;This causes multiple hits on Data base server... which increases your execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead.. it is good programming practice to select all the required data into an internal table and then loop on the internal table. this reduces the run time to a great extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the conclusion is that in general you must avaoid using SELECT  ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 04:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725468#M316333</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-16T04:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725469#M316334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ratna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points accordingly and close the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 13:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725469#M316334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T13:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725470#M316335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would suggest never to use select-end select .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u shopuld always prefer &lt;/P&gt;&lt;P&gt;select (field-list) into table (conditions) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can always avoid using select-end select .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also i would tell not to use nested select statements .&lt;/P&gt;&lt;P&gt;a better idea would be to use 'for all entries ' option of select statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful plz reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 06:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725470#M316335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T06:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725471#M316336</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;         SELECT ENDSELECT is usually used when we need to select a range of values. Values which are just needed from the IT are selected  using this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT is not concluded by ENDSELECT :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is a SELECT SINGLE command, &lt;/P&gt;&lt;P&gt;if only aggregate functions appear in the SELECT clause and there is no GROUP BY clause, or &lt;/P&gt;&lt;P&gt;if the INTO clause INTO TABLE itab or APPENDING TABLE itab does not include the addition PACKAGE SIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 07:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1725471#M316336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T07:21:28Z</dc:date>
    </item>
  </channel>
</rss>

