<?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 difference b/w select ,endselect  and select statement alone in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328335#M511973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, can any one give me the details abt difference b/w select,endselect  and select statement alone, where we will use select,endselect and select statement only with some example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2007 12:57:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-12T12:57:30Z</dc:date>
    <item>
      <title>difference b/w select ,endselect  and select statement alone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328335#M511973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, can any one give me the details abt difference b/w select,endselect  and select statement alone, where we will use select,endselect and select statement only with some example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 12:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328335#M511973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select ,endselect  and select statement alone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328336#M511974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the SAP help for details but here are a few examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Select alone if doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single field&lt;/P&gt;&lt;P&gt;into v_field&lt;/P&gt;&lt;P&gt;from t_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field2 &lt;/P&gt;&lt;P&gt;from t_table &lt;/P&gt;&lt;P&gt;into it_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use endselect in the following case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select field&lt;/P&gt;&lt;P&gt;into v_field&lt;/P&gt;&lt;P&gt;from t_table&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 15:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328336#M511974</guid>
      <dc:creator>tamra_walstrom</dc:creator>
      <dc:date>2007-06-12T15:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select ,endselect  and select statement alone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328337#M511975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  When ever u want to append data into the workarea then use select ... endselect. When u r appending data into the internal table then use select. Also when u use select single then also use only select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Eg: Using only Select&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;              lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;           end of itab.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single lifnr from lfa1 into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data itab like lfa1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from lfa1 into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Eg: Using Select .. endselect.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data : itab like lfa1 occurs 0,&lt;/P&gt;&lt;P&gt;           wa like lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from lfa1 into wa.&lt;/P&gt;&lt;P&gt;    append wa to itab.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 15:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328337#M511975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select ,endselect  and select statement alone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328338#M511976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
select
.....
endselect 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; is used when you are extracting data into headerline/workarea of the internal table and later append the data to the body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is used when you are extracting data directly into the body of the internal table.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 16:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328338#M511976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: difference b/w select ,endselect  and select statement alone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328339#M511977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to avoid select and endselect always because if u write select and endselect, for every time it goes to database and fetch one record from database and fills the internal table, if u have thousans of records in the selection then just assume the performance of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of above u can write select statement like this,&lt;/P&gt;&lt;P&gt;select * from kna1 into table itab where kunnr = kna1-kunnr.&lt;/P&gt;&lt;P&gt;this statement can get the all avbl records from database fills the itab at single shot now you can assume the performance of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the difference b/w these two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2007 16:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-select-endselect-and-select-statement-alone/m-p/2328339#M511977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-12T16:55:55Z</dc:date>
    </item>
  </channel>
</rss>

