<?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: Regarding problem on Sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642595#M877203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well you told him to sort by vbeln and so he did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the VBELN are ascending sorted, you just cant see it since you have just one vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better implement a second sort criteria. like schddt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2008 11:06:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-04T11:06:55Z</dc:date>
    <item>
      <title>Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642592#M877200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have create a internal table as below&lt;/P&gt;&lt;P&gt;BEGIN OF i_oia05 OCCURS 0,&lt;/P&gt;&lt;P&gt;     vbeln   LIKE oia05-vbeln,   &lt;/P&gt;&lt;P&gt;     schddt LIKE oia05-schddt,  &lt;/P&gt;&lt;P&gt;     intqty   LIKE oia05-intqty,  &lt;/P&gt;&lt;P&gt;END OF i_oia05,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the entries in the internal table as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vbeln                  schddt            intqty&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;      &lt;P&gt;&lt;/P&gt;&lt;P&gt;0040230354       20080101       515463.864&lt;/P&gt;&lt;P&gt;0040230354       20080101               0.170&lt;/P&gt;&lt;P&gt;0040230354       20080201               0.159&lt;/P&gt;&lt;P&gt;0040230354       20080301               0.170&lt;/P&gt;&lt;P&gt;0040230354       20080401               0.165&lt;/P&gt;&lt;P&gt;0040230354       20080501               0.170&lt;/P&gt;&lt;P&gt;0040230354       20080601               0.166&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done like this sorting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_oia05 by VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the sorting i m getting internal table as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vbeln                  schddt            intqty&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0040230354       20080601               0.166&lt;/P&gt;&lt;P&gt;0040230354       20080501               0.170&lt;/P&gt;&lt;P&gt;0040230354       20080401               0.165&lt;/P&gt;&lt;P&gt;0040230354       20080301               0.170&lt;/P&gt;&lt;P&gt;0040230354       20080101       515463.864&lt;/P&gt;&lt;P&gt;0040230354       20080101               0.170&lt;/P&gt;&lt;P&gt;0040230354       20080201               0.159&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i know the reason y it sort like this, it should have been nor mal asending only know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise me on this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 10:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642592#M877200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T10:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642593#M877201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suresh,&lt;/P&gt;&lt;P&gt;                 This is kiran.G.A. U better to sort on vbeln and schddt fields.Then ur problem is resolved ok..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful..&lt;/P&gt;&lt;P&gt;Kiran Kumar.G.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642593#M877201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642594#M877202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thanks for the reply, but i wanted to know y it is hapening like that and reason for that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642594#M877202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642595#M877203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well you told him to sort by vbeln and so he did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the VBELN are ascending sorted, you just cant see it since you have just one vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better implement a second sort criteria. like schddt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642595#M877203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642596#M877204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian Kemmer  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have few VBELN's , but for example i have given only one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642596#M877204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642597#M877205</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 think the question is: why have the rows in the table changed although the table was already sorted by vbeln?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found nothing special in the help except the addition STABLE in the SORT statement, although I don't understand exact the meaning of it....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642597#M877205</guid>
      <dc:creator>stephan_herrmann2</dc:creator>
      <dc:date>2008-04-04T11:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642598#M877206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm if you want it in a certain sort order, then you need to sort it that way by using the desired sort criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its the same Problem when you use a select single statement  whichs where conditions match more than one record.&lt;/P&gt;&lt;P&gt;you will not be able to forecast which record will be drawn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642598#M877206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642599#M877207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;sort ur table like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_oia05 by VBELN schddt intqty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why it is coming like this means, in ur internal tabel the data is sorted based on vbeln. so there is only one vbeln, then it will sort only vbeln. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this and reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ravi shankar reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642599#M877207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642600#M877208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have few VBELN documents , but for example i have given one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 11:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642600#M877208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T11:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642601#M877209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suresh,&lt;/P&gt;&lt;P&gt;    this is taken from the ABAP Keyword Documentation explaining about the keyword sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The sort process is only stable if you use the STABLE addition. Otherwise, a predefined sequence of fields used to sort a list is not usually retained.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 12:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642601#M877209</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-04-04T12:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding problem on Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642602#M877210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW who cares?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this doesnt touch anything and you as well know how to do it correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not every question needs an answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 12:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-problem-on-sorting/m-p/3642602#M877210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T12:32:24Z</dc:date>
    </item>
  </channel>
</rss>

