<?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: Select Statement behaviour? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159428#M1369901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"I don't want to do any sorting after selecting because of some other issues" share your reasons.&lt;/P&gt;&lt;P&gt;And you can do one more thing like modify your select query using Order BY clause for your example&lt;/P&gt;&lt;P&gt;see the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/62/10a423384746e8bf5f15ccdd36e8b1/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/62/10a423384746e8bf5f15ccdd36e8b1/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in tht link u can see at the last ORDER by clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else put a breakpoint and debug from where and how the data is been populating so tht u can get an idea on &lt;/P&gt;&lt;P&gt;the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 12:25:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-15T12:25:49Z</dc:date>
    <item>
      <title>Select Statement behaviour?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159423#M1369896</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 i did a select stetement with limited fields on MSEG, records are coming in to a internal table but the order of these records in internal table is strange. I want to know what would be the basis?. when i see the records in SE16 the order is based on Item number.  but in internal table records are in different order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know why it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 11:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159423#M1369896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T11:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement behaviour?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159424#M1369897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after your select... sort internal number on item number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 11:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159424#M1369897</guid>
      <dc:creator>nikhil_chitre</dc:creator>
      <dc:date>2009-10-15T11:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement behaviour?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159425#M1369898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are not using all the key fields in where condition this does happen...also you need to use the fields in same order while selecting them in select query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else you need to define the internal table as SORTED table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 11:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159425#M1369898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement behaviour?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159426#M1369899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After ur select query try to use sort query as shown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from MSEG into table itab.&lt;/P&gt;&lt;P&gt;sort itab by mblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am sorting with the field MBLNR, if u want you can sort with your required field&lt;/P&gt;&lt;P&gt;but if you sort with primary key field it gives good performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 11:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159426#M1369899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T11:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement behaviour?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159427#M1369900</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 don't want to do any sorting after selecting because of some other issues. This program is working fine from last several days and we got this issue now only.. so please let me know how to select statement behavious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 12:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159427#M1369900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T12:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement behaviour?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159428#M1369901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"I don't want to do any sorting after selecting because of some other issues" share your reasons.&lt;/P&gt;&lt;P&gt;And you can do one more thing like modify your select query using Order BY clause for your example&lt;/P&gt;&lt;P&gt;see the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/62/10a423384746e8bf5f15ccdd36e8b1/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/62/10a423384746e8bf5f15ccdd36e8b1/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in tht link u can see at the last ORDER by clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else put a breakpoint and debug from where and how the data is been populating so tht u can get an idea on &lt;/P&gt;&lt;P&gt;the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 12:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159428#M1369901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T12:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement behaviour?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159429#M1369902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a relational database.  In a relational database, there is no concept of order of records.  You are getting in your internal table, the actual order of the records in the database.  SE16 presumably sorts by key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 12:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159429#M1369902</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-15T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement behaviour?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159430#M1369903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 05:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-behaviour/m-p/6159430#M1369903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-03T05:46:31Z</dc:date>
    </item>
  </channel>
</rss>

