<?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 Sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/11098118#M1902961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an internal table itab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt; f1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;400&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;700&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that entries i am selecting data from another db table using FOR ALL ENTRIES and i am getting data in sorted manner as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt; f1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 545&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;700&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 845&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;So how to get my original order back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 May 2015 20:37:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-05-10T20:37:40Z</dc:date>
    <item>
      <title>Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/11098118#M1902961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an internal table itab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt; f1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;400&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;700&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that entries i am selecting data from another db table using FOR ALL ENTRIES and i am getting data in sorted manner as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt; f1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 545&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;700&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 845&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;So how to get my original order back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 20:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/11098118#M1902961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-10T20:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/11098119#M1902962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You'll have to sort Table2 the same way you sorted Table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database table doesn't hold rows in any defined order, so you'll never know what you'll get - you have to sort the result yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 02:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/11098119#M1902962</guid>
      <dc:creator>paul_bakker2</dc:creator>
      <dc:date>2015-05-11T02:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/11098120#M1902963</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;After getting data into second internal table move the data into another (third) internal table and refresh the second table. When you are moving the data into new table, loop the first table and read the second table with key as 'f1'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TABLE1 INTO WA1.&lt;/P&gt;&lt;P&gt;READ TABLE TABLE2 INTO WA2 WITH KEY F1 = WA1-F1.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;APPEND WA2 TO TABLE3.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH TABLE2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 03:05:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/11098120#M1902963</guid>
      <dc:creator>VijayaKrishnaG</dc:creator>
      <dc:date>2015-05-11T03:05:01Z</dc:date>
    </item>
  </channel>
</rss>

