<?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: problem with select single statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805658#M1468144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;        Use this    SELECT FLD1 FLD2 ELD3 FLD4  FROM Tab  INTO ITAB &lt;STRONG&gt;where&lt;/STRONG&gt;  &amp;lt;Condition&amp;gt; ,&lt;/P&gt;&lt;P&gt; might be because you are selecting lot of data , so hav to use &lt;STRONG&gt;Where&lt;/STRONG&gt; condition . try it out , also chk the same fields are define in internal table , and chk the order also , u ll get   &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sarath P G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Apr 2010 06:26:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-16T06:26:33Z</dc:date>
    <item>
      <title>problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805649#M1468135</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;I am debugging one z program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though Select Single statement is there, it is fetching 4 th record from standard data base table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one help me on this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 13:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805649#M1468135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T13:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805650#M1468136</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;Try using select single upto 1 row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 13:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805650#M1468136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T13:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805651#M1468137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am nt supposed to change the code..Just I am analysing the data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 14:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805651#M1468137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T14:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805652#M1468138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not give the full key list or a sort criterion there is no guarantee relative to the order of the records returned by a SELECT statement in Open SQL, neither for the choice of a record in a SELECT SINGLE.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 14:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805652#M1468138</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-04-15T14:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805653#M1468139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that Select single statement, in where condition they dont have mentioned primary key ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 14:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805653#M1468139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T14:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805654#M1468140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Open SQL/SQLJ does not allow to process the result set of a SELECT * in a single-row query. The reason is that Open SQL does not guarantee the order of the columns. It may be different at runtime and at design time.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - next time, please note where you are quoting from (help.sap.com here)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 15, 2010 2:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 14:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805654#M1468140</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-04-15T14:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805655#M1468141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select single should be use if you have full primary keys else use select up to one rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 18:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805655#M1468141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T18:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805656#M1468142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add to Raymond's explanation: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;If SELECT SINGLE selects 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; (source: [http://help.sap.com/abapdocu_70/en/ABAPSELECT_CLAUSE_LINES.htm])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the first record found by the SELECT query might not be 4th record of the DB table. Also note that the table records you see in SE16 are sorted &amp;amp; at the actual DB level the order of records might be different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 18:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805656#M1468142</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-15T18:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805657#M1468143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use select single if you get all the primary key in where cluse, otherwise use select upto 1 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tutun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 05:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805657#M1468143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T05:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805658#M1468144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;        Use this    SELECT FLD1 FLD2 ELD3 FLD4  FROM Tab  INTO ITAB &lt;STRONG&gt;where&lt;/STRONG&gt;  &amp;lt;Condition&amp;gt; ,&lt;/P&gt;&lt;P&gt; might be because you are selecting lot of data , so hav to use &lt;STRONG&gt;Where&lt;/STRONG&gt; condition . try it out , also chk the same fields are define in internal table , and chk the order also , u ll get   &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sarath P G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 06:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805658#M1468144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T06:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805659#M1468145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 15:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805659#M1468145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-12T15:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem with select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805660#M1468146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass all the primary key fields in the select single statement....&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;&lt;/P&gt;&lt;P&gt;Krishna Dussa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 17:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-single-statement/m-p/6805660#M1468146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-12T17:53:03Z</dc:date>
    </item>
  </channel>
</rss>

