<?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 between Select *    and Select single     ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756299#M327659</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 *&amp;lt;/b&amp;gt; starts a loop so as to find the entries specified by where condition or else the complete list of records.It is concluded by endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Select Single&amp;lt;/b&amp;gt; selects the first(single) occurrence of the record that satisfies the condition &amp;amp; does not move in a loop.Hence endselect not required in this case.&lt;/P&gt;&lt;P&gt;Also Select Single is more efiicient performance wise as compared to select * if required records has less ocuurence in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Dec 2006 04:28:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-09T04:28:24Z</dc:date>
    <item>
      <title>difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756290#M327650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;difference between Select *    and Select single     ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756290#M327650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756291#M327651</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 * ....: It selects all the fields from the table and this statement requires an endselect.&lt;/P&gt;&lt;P&gt;Select single : It selects only one records and it does not required end seelct.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ARUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756291#M327651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756292#M327652</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 will only pick up one record for the conditions specified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * wll pick up all the records for that condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check these links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=342118&amp;amp;messageID=1710019" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=342118&amp;amp;messageID=1710019&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=342118&amp;amp;messageID=647631" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=342118&amp;amp;messageID=647631&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756292#M327652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756293#M327653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select single return one record corresponding to the key field you fill.( all the table key must be fill )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * return a range of record corresponding to the parameter you fill in the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756293#M327653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756294#M327654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select * will get all the columns of the table. The number of records will be dependent upon the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * will get a single record with all the columns of a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single field1 field2..will get one record with the fields field1 field2 ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756294#M327654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756295#M327655</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 * means Selecting all the fields in the table.&lt;/P&gt;&lt;P&gt;Select single means Selecting single record from the table that matches the Where clause condition. In Select Single statement, Where clause must contain all the key fields of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sksingh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 12:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756295#M327655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T12:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756296#M327656</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;&lt;/P&gt;&lt;P&gt;DATA : IT  TYPE TABLE OF MARA,&lt;/P&gt;&lt;P&gt;           WA TYPE MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it selects all the record and keeps in internal table it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select  *  from mara into corresponding fields of table &amp;lt;b&amp;gt; it&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it slects only one record that to first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wnat any specific record then use where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select  single *  from mara into corresponding fields of &amp;lt;b&amp;gt;wa&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Purshothaman P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 13:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756296#M327656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T13:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756297#M327657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * READS ALL THE FIELDS OF A RECORD FROM THE DATABASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;THE ABOVE STATEMENT SELECTS ALL THE FIELDS OF ALL THE RECORDS IN THE DATABASE AND GET INTO THE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT IS SAME AS:&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA INTO ITAB.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE AS:&lt;/P&gt;&lt;P&gt;AELECT SINGLE * FROM MARA INTO TABLE ITAB WHERE &amp;lt;COND&amp;gt;----- READS ONLY ONE RECORD BASED ON THE CONDITION.&lt;/P&gt;&lt;P&gt;WE DONT NEED TO WRITE THE ENDSELECT ALSO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHEERS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 13:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756297#M327657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T13:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756298#M327658</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 * means u selecting all the fields from the table and putting it into the internal table of type &amp;lt;tablename&amp;gt;&lt;/P&gt;&lt;P&gt;eg: select * from mara into corresponding fields of it_mara.&lt;/P&gt;&lt;P&gt;the above statement means u selectings all the fields of the it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as,&lt;/P&gt;&lt;P&gt;SELECT SINGLE implies that u r selecting just only one record or entry from that table and putting it into the work area.&lt;/P&gt;&lt;P&gt;ie,&lt;/P&gt;&lt;P&gt;select single * from mara into wa_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope now u got the difference..&lt;/P&gt;&lt;P&gt;all the best!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 13:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756298#M327658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T13:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: difference between Select *    and Select single     ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756299#M327659</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 *&amp;lt;/b&amp;gt; starts a loop so as to find the entries specified by where condition or else the complete list of records.It is concluded by endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Select Single&amp;lt;/b&amp;gt; selects the first(single) occurrence of the record that satisfies the condition &amp;amp; does not move in a loop.Hence endselect not required in this case.&lt;/P&gt;&lt;P&gt;Also Select Single is more efiicient performance wise as compared to select * if required records has less ocuurence in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Dec 2006 04:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-and-select-single/m-p/1756299#M327659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-09T04:28:24Z</dc:date>
    </item>
  </channel>
</rss>

