<?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: difference b/w select endselect &amp; select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805033#M655397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;select.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endselect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this fetches the data from the dbtab in a loop 1 by 1.this locks the  table for the particular time period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * from bdtab into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here it fetches the record in 1 shot and need not lock the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence select is faster than select...endselect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;vivekanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 05:46:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-06T05:46:29Z</dc:date>
    <item>
      <title>difference b/w select endselect &amp; select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805029#M655393</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;What is the difference in&lt;/P&gt;&lt;P&gt;Select...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endselect .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805029#M655393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select endselect &amp; select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805030#M655394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select endselect is just like a select with in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the below examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using select endselect&lt;/P&gt;&lt;P&gt;select * from vbak.&lt;/P&gt;&lt;P&gt;append vbak to it_vbak.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternative of using select endselect&lt;/P&gt;&lt;P&gt;select * from vbak into table it_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805030#M655394</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-09-06T05:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select endselect &amp; select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805031#M655395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * from MARA.&lt;/P&gt;&lt;P&gt;Append MARA to i_MARA.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above statement will execute 100 times if MARA has 100 records &amp;amp; i_mara will have all 100 records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from MARA&lt;/P&gt;&lt;P&gt;into table i_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above statement will execute only once &amp;amp; fetch all the 100 records in i_mara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805031#M655395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select endselect &amp; select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805032#M655396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically both have the same output. However their usage is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select - endselect -&amp;gt; this is used when you do not specify all the primary ckeys of the table in WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single -&amp;gt; This is used when you specify all the primary keys of table in the WHERE clause of the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this solves your doubt.&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805032#M655396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select endselect &amp; select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805033#M655397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;select.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endselect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this fetches the data from the dbtab in a loop 1 by 1.this locks the  table for the particular time period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * from bdtab into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here it fetches the record in 1 shot and need not lock the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence select is faster than select...endselect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;vivekanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805033#M655397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select endselect &amp; select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805034#M655398</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;in this select statement no need to give end select as it is populating all the data to table itab_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr ernam from mara into corresponding fields of table itab_mara &lt;/P&gt;&lt;P&gt;                                                        where matnr = marc-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. this select statement becomes a loop so we have to  specify endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr ernam from mara into corresponding fields of itab_mara&lt;/P&gt;&lt;P&gt;                                                         where matnr = marc-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vinutha YV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 05:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805034#M655398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T05:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select endselect &amp; select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805035#M655399</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 ........... end select just acts like a loop and it fetches all records from database table and places into internal table. in select statement there are different types as&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1. select single * .................. -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; fetches only one record from database table based on where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. select matnr,pernr,...................... -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; fetches no .of fields from different tables [with help of views or joins].............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. select * from .............. into table itab -&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt; fecthes all fields from database table into internal table in a single time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. select matnr, pernr ................... into d_matnr, d_pernr..........----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; fetches fields of databse tables into individual fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with select statement we can use into corresponding option also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 06:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-select/m-p/2805035#M655399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T06:06:25Z</dc:date>
    </item>
  </channel>
</rss>

