<?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 END SELECT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521722#M570854</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;  when after SELECT clause ENDSELECT is used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 04:48:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-19T04:48:24Z</dc:date>
    <item>
      <title>END SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521722#M570854</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;  when after SELECT clause ENDSELECT is used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 04:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521722#M570854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T04:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: END SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521723#M570855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ENDSELECT is used when the selection involves more than one row and the output is into a single structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: &lt;/P&gt;&lt;P&gt;select * from mara into corresponding fields of mara_wa.&lt;/P&gt;&lt;P&gt; append mara_wa to it_mara.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cases where endselect is not used would be where you enter data directly into the table such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into corresponding fields of &amp;lt;b&amp;gt;table&amp;lt;/b&amp;gt; it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or selecting a single record&lt;/P&gt;&lt;P&gt;select &amp;lt;b&amp;gt;single &amp;lt;/b&amp;gt;* from mara into corresponding fields of mara_wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or selecting a count&lt;/P&gt;&lt;P&gt;select count(*) from mara into i_number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 04:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521723#M570855</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-19T04:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: END SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521724#M570856</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 case of 1)select single ..... 2)select.......into [corresponding-fields of] table itab.&lt;/P&gt;&lt;P&gt;we should not use endselect.&lt;/P&gt;&lt;P&gt;in all other cases we have to use endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 04:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521724#M570856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T04:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: END SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521725#M570857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debarshi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using select statement you need to use either one of the following statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select..... into tablename&lt;/P&gt;&lt;P&gt;     0r&lt;/P&gt;&lt;P&gt;2. select.... endselect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gowrishankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 04:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521725#M570857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T04:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: END SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521726#M570858</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;endselect statements has to be used when u write select statements for retieving data from database.but if u use a syntax like below&lt;/P&gt;&lt;P&gt;select lifnr land1 name1 ort01 sortl from lfa1&lt;/P&gt;&lt;P&gt;  UP TO 50 ROWS into corresponding FIELDS OF TABLE itab.&lt;/P&gt;&lt;P&gt;there is no need of using endselect.&lt;/P&gt;&lt;P&gt;ie..if u use select single * or select * from &amp;lt;table&amp;gt; into table &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;there is no need of using endselect.otherwise u have to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 04:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521726#M570858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T04:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: END SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521727#M570859</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;A SELECT command for which the INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab is inserted into an internal table, must be followed by ENDSELECT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all other SELECT commands, ENDSELECT must be used unless a single line above the addition SINGLE is read after SELECT and unless the columns of the result set are statically specified and contain only aggregate functions without the specification of the addition GROUP BY. &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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 04:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521727#M570859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T04:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: END SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521728#M570860</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;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The ENDSELECT statement closes a loop started with SELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A SELECT command for which the INTO|APPENDING [CORRESPONDING FIELDS OF] TABLE itab is inserted into an internal table, must be followed by ENDSELECT if the addition PACKAGE SIZE is used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all other SELECT commands, ENDSELECT must be used unless a single line above the addition SINGLE is read after SELECT and unless the columns of the result set are statically specified and contain only aggregate functions without the specification of the addition GROUP BY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 04:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-select/m-p/2521728#M570860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T04:53:06Z</dc:date>
    </item>
  </channel>
</rss>

