<?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/2714319#M629479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;             if you want to fetch only one record use SELECT SINGLE in the where condition use all primary key fields if you don't know all primary fields use UP TO 1 row.&lt;/P&gt;&lt;P&gt;                         where as select and endselect is used to fetch more than one record we use but SAP is not recommending usage of SELECT and ENDSELECT for this we have to use INTERNAL  TABLE WITH OUT HEADER TABLE and In the  SELECT statement use INTO TABLE &amp;lt;ITAB&amp;gt;. &lt;/P&gt;&lt;P&gt;                   Usage of SELECT - ENDSELECT IS Performance's issue for fetching each record Your program will hit DATABASE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;reward points to all helpful answers.&lt;/P&gt;&lt;P&gt;P.Surendar Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 10:56:42 GMT</pubDate>
    <dc:creator>suredarreddy_pulimamidi</dc:creator>
    <dc:date>2007-08-13T10:56:42Z</dc:date>
    <item>
      <title>SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714310#M629470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN TO USE SELECT....ENDSELECT.. /  SELECT SINGLE....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714310#M629470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T10:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714311#M629471</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 you want to select many records from the database table you have to use select..endselect.It works like a loop selecting records one at a time.&lt;/P&gt;&lt;P&gt;It is not advisable to use it due to performance issues.&lt;/P&gt;&lt;P&gt;Select single is sued when you want to fetch just a single records based upon the key fields.It retrieves just a single record.When you want to select only one record please use select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it was useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:44:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714311#M629471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714312#M629472</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..endselect is used when you are retrieving data directly into work area rather into a table.its like a loop statement.it should be avoided as its not a good programming technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single is used to pull a single record from the table matching on the criteria in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714312#M629472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T10:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714313#M629473</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;You can get all this FROM ABAP Keyword Documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use SELECT ENDSELECT if you want to prcoess the data between these two statements. Its like LOOP over the database table and in each loop pass you want to process something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE is to read one record, make sure you give the full PRIMARY key fields in WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714313#M629473</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-13T10:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714314#M629474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ......End Select is use for multiple records fetching  &lt;/P&gt;&lt;P&gt;but Select Single is use for single record fetching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But select ......End select is not use very much but it's break your performance instead of u use select ......into table .......which is fast compare to other select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714314#M629474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T10:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714315#M629475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ......End Select is use for multiple records fetching  &lt;/P&gt;&lt;P&gt;but Select Single is use for single record fetching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But select ......End select is not use very much but it's break your performance instead of u use select ......into table .......which is fast compare to other select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714315#M629475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T10:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714316#M629476</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 SINGLE IS MAINLY USED FOR VALIDATION PERPOUS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND SELECT / ENDSELECT IS USED FOR RETRIVING DATA FROM DATA BASE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFULL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714316#M629476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T10:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714317#M629477</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; &amp;lt;b&amp;gt;Select .. end select &amp;lt;/b&amp;gt; --&amp;gt; For Fetching Multiple records..&lt;/P&gt;&lt;P&gt;                                    Its Runs in loop &lt;/P&gt;&lt;P&gt;                                    i.eNo. of Database Hits = Length of loop .&lt;/P&gt;&lt;P&gt;                   so it should avoided for performance issues and use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;select ..... into table...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select single            &amp;lt;/b&amp;gt; --&amp;gt; Used for fetching single record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714317#M629477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T10:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714318#M629478</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 can be used when u want to make some modifications to the fields during fetch from the database and before storing it in internal table . MOdification can be done between &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;endselect  statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from databaetable into table itab is used to directrly store the rows fetched from the internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714318#M629478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714319#M629479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;             if you want to fetch only one record use SELECT SINGLE in the where condition use all primary key fields if you don't know all primary fields use UP TO 1 row.&lt;/P&gt;&lt;P&gt;                         where as select and endselect is used to fetch more than one record we use but SAP is not recommending usage of SELECT and ENDSELECT for this we have to use INTERNAL  TABLE WITH OUT HEADER TABLE and In the  SELECT statement use INTO TABLE &amp;lt;ITAB&amp;gt;. &lt;/P&gt;&lt;P&gt;                   Usage of SELECT - ENDSELECT IS Performance's issue for fetching each record Your program will hit DATABASE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;reward points to all helpful answers.&lt;/P&gt;&lt;P&gt;P.Surendar Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 10:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/2714319#M629479</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2007-08-13T10:56:42Z</dc:date>
    </item>
  </channel>
</rss>

