<?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: Re: Select Single * statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878294#M1478139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select single with an IN operator is simply nonsensical.  You would write &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;. . . .where matnr eq &amp;lt;matnr parameter&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 19:51:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-23T19:51:36Z</dc:date>
    <item>
      <title>Re: Select Single * statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878289#M1478134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;I had a question and hope you could give me an answer.&lt;/P&gt;&lt;P&gt;Here is it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * into itab from VRMPA where MATNR in S_MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would return a single record into itab although it is not correct as there would be more than 1 incoming record and so it is not unique.&lt;/P&gt;&lt;P&gt;My question is &lt;/P&gt;&lt;P&gt;a. would the logic skip out when it hit the first record and would not process the second valid selection&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;b. it would process all valid records and return only the last record processed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to know in order to improve the performance of the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 14:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878289#M1478134</guid>
      <dc:creator>colin_cheong</dc:creator>
      <dc:date>2010-04-23T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select Single * statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878290#M1478135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you do a select single, SAP will only retrieve 1 result, the first it encounters. So if you would have multiple material numbers in your select-option S_MATNR, only 1 of them will be in the result. The others are not further selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 14:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878290#M1478135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select Single * statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878291#M1478136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic skip out when it hits the first record and record was placed in itab, in contrast to select single , select up to 1 rows will fetch all records corresponding to itab based on where clause, but places only first record in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, make sure that when u use select single  *, better use all key fields in where clause as possible and it is not necessary to get data into ITAB, just get data into wa_itab as there is only one record will fetched using select single statement.&lt;/P&gt;&lt;P&gt;&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;RK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 14:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878291#M1478136</guid>
      <dc:creator>rthoodi</dc:creator>
      <dc:date>2010-04-23T14:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select Single * statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878292#M1478137</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;Its very basic question lot of information available in Google &lt;/P&gt;&lt;P&gt;Checkout this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/difference-between-select-single-and-up-to-1-row.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/difference-between-select-single-and-up-to-1-row.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 14:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878292#M1478137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T14:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select Single * statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878293#M1478138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would rather hit an F1 on SELECT SINGLE &amp;amp; read the SAP documentation which clearly states:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;"If the remaining additions to the SELECT command select more than one line from the database, the first line that is found is entered into the resulting set"&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source: [http://help.sap.com/abapdocu_70/en/ABAPSELECT_CLAUSE_LINES.htm#!ABAP_ALTERNATIVE_1@1@]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 14:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878293#M1478138</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-23T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select Single * statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878294#M1478139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select single with an IN operator is simply nonsensical.  You would write &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;. . . .where matnr eq &amp;lt;matnr parameter&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 19:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-select-single-statement/m-p/6878294#M1478139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T19:51:36Z</dc:date>
    </item>
  </channel>
</rss>

