<?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: Sort internal table with the sequence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705870#M32355</link>
    <description>&lt;P&gt;Instead of writing +1, why not press the arrow above the zero, and upvote the answer you like?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2018 14:33:35 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2018-07-05T14:33:35Z</dc:date>
    <item>
      <title>Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705862#M32347</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;wanted to sort my internal table in sequence. for example&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Sno Mat id Rec_id Sequence no&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;BOG6C210F 5857FB1D 2&lt;/LI&gt; 
   &lt;LI&gt;BOG6C210F 5857FB20 1 &lt;/LI&gt; 
   &lt;LI&gt;BOG6C210F BOG6C210F 3 &lt;/LI&gt; 
   &lt;LI&gt;BOG6C2166 584232BF 2 &lt;/LI&gt; 
   &lt;LI&gt;BOG6C2166 584232C0 1 &lt;/LI&gt; 
   &lt;LI&gt;BOG6C2166 584232A2 3&lt;/LI&gt; 
  &lt;/OL&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The above mentioned is my internal table data. i wanted to sort my internal table as below. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;BOG6C210F 5857FB20 1&lt;/LI&gt; 
   &lt;LI&gt;BOG6C210F 5857FB1D 2&lt;/LI&gt; 
   &lt;LI&gt;BOG6C210F BOG6C210F 3 &lt;/LI&gt; 
   &lt;LI&gt;BOG6C2166 584232C0 1&lt;/LI&gt; 
   &lt;LI&gt;BOG6C2166 584232BF 2&lt;/LI&gt; 
   &lt;LI&gt;BOG6C2166 584232A2 3&lt;/LI&gt; 
  &lt;/OL&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Can any one provide me the idea, how to achieve this sort based on sequence no. this is small example, i have more than 100 records are available in my internal table.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&amp;lt;inappropriate comment removed by moderator&amp;gt;&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; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Srikanth.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 19:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705862#M32347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-04T19:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705863#M32348</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;SORT &amp;lt;internal table&amp;gt; BY &amp;lt;sequence no&amp;gt; ASCENDING &amp;lt;mat id&amp;gt; ASCENDING &amp;lt;rec_id&amp;gt; DESCENDING.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;should do the trick. Just replace &amp;lt;...&amp;gt; by actual field names of your internal table.&lt;/P&gt;
  &lt;P&gt;Also take a look at SORT key word ABAP documentation.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 19:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705863#M32348</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2018-07-04T19:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705864#M32349</link>
      <description>&lt;P&gt;You've given inconsistent information as the records in your first set of data do not match any in the second. You really need to be clear exactly how you expect the data to be sorted, which columns, ascending or descending etc. But most of all you probably need to read the ABAP keyword documentation of SORT. &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 20:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705864#M32349</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-07-04T20:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705865#M32350</link>
      <description>&lt;P&gt;Would you explain where you see inconsistency?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The second set is just as the first one but in another order. Or am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 20:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705865#M32350</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2018-07-04T20:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705866#M32351</link>
      <description>&lt;P&gt;Hi Srikanth&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;For me, it is not 100% clear about what kind of sort sequence do you want.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Feels like you want to sort the table by "Mat id" and "Sequence no"&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;If yes, try this:&lt;/P&gt;
  &lt;P&gt; sort &amp;lt;internal table&amp;gt; by &amp;lt;Mat id&amp;gt; &amp;lt;Sequence no&amp;gt; ascending.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 00:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705866#M32351</guid>
      <dc:creator>tom_wan</dc:creator>
      <dc:date>2018-07-05T00:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705867#M32352</link>
      <description>&lt;P&gt;Sure. First data order is this:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;Sno Mat id    Rec_id   Sequence no
1   BOG6C210F 5857FB1D    2
2   BOG6C210F 5857FB20    1
3   BOG6C210F BOG6C210F   3 
4   BOG6C2166 584232BF    2
5   BOG6C2166 584232C0    1
6   BOG6C2166 584232A2    3
&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Second is this&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;Sno Mat id    Rec_id   Sequence no
1   BOG6C210F 5857FB20    1
2   BOG6C210F 5857FB1D    2
3   BOG6C210F BOG6C210F   3
4   BOG6C2166 584232C0    1
5   BOG6C2166 584232BF    2
6   BOG6C2166 584232A2    3
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The record &lt;STRONG&gt;1&lt;/STRONG&gt; BOG6C210F 5857FB1D 2 in the first set does not exist in the second data set. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Of course, you've made the assumption that the Sno column should be ignored, which is probably true, but the point I was making is that it's really important when people ask questions to be as clear as possible.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;And that it would be nice if people would put in a little effort to resolve issues themselves before posting here. I mean, how hard is it to read the keyword documentation? If this question had not received some answers already, I'd have deleted the question on the grounds of RTM. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 06:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705867#M32352</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-07-05T06:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705868#M32353</link>
      <description>&lt;P&gt;I couldn’t agree more with your remarks on questions quality.&lt;/P&gt;
  &lt;P&gt;I did assume Sno is superfluous and based my answer on that assumption. &lt;/P&gt;
  &lt;P&gt;Best reg&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 07:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705868#M32353</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2018-07-05T07:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705869#M32354</link>
      <description>&lt;P&gt;+1&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705869#M32354</guid>
      <dc:creator>Sathya_Gunasekaran</dc:creator>
      <dc:date>2018-07-05T14:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705870#M32355</link>
      <description>&lt;P&gt;Instead of writing +1, why not press the arrow above the zero, and upvote the answer you like?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705870#M32355</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-07-05T14:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705871#M32356</link>
      <description>&lt;P&gt;I did upvote to bring the value from -1 to 0.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 13:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705871#M32356</guid>
      <dc:creator>Sathya_Gunasekaran</dc:creator>
      <dc:date>2018-07-06T13:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort internal table with the sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705872#M32357</link>
      <description>&lt;P&gt;"how hard is it to read the keyword documentation?"&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Hopefully, not as hard as writing it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 15:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table-with-the-sequence/m-p/705872#M32357</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2018-07-06T15:23:17Z</dc:date>
    </item>
  </channel>
</rss>

