<?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/1690547#M303508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     i have an internal table which has 10 rows....in that, i need to sort the 1st column and the 8th col ascending wise...both are numeric fields only, i.e., &lt;/P&gt;&lt;P&gt;sort itab by sloc days...but it's not working..where am i going wrong? thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2006 11:29:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-27T11:29:21Z</dc:date>
    <item>
      <title>sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690547#M303508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     i have an internal table which has 10 rows....in that, i need to sort the 1st column and the 8th col ascending wise...both are numeric fields only, i.e., &lt;/P&gt;&lt;P&gt;sort itab by sloc days...but it's not working..where am i going wrong? thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 11:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690547#M303508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T11:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690548#M303509</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;Check out this way ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort ascending itab by sloc days.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 11:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690548#M303509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690549#M303510</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;This is the help on sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 11:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690549#M303510</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2006-10-27T11:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690550#M303511</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;one observation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do one thing just comment 2...7 fields in ur itab ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and sort only 1 and 8 field ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by 1(field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now check the o/p ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it's correct as per ur expectations then some of the field from 2..7 is affecting the sort criteria..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im guessing this cause i dont know ur fields or itab structure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 11:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690550#M303511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690551#M303512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY field1 field8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above should work...when you say it is not working can you describe the problem(with values) ?&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;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 11:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690551#M303512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T11:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690552#M303513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort ascending should work in this situation.&lt;/P&gt;&lt;P&gt;have a look at following code for some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_t OCCURS 0,&lt;/P&gt;&lt;P&gt;       v1(2) type n,&lt;/P&gt;&lt;P&gt;       v2(2) type n,&lt;/P&gt;&lt;P&gt;       v3(2) type n,&lt;/P&gt;&lt;P&gt; END   OF t_t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_t-v1 = 10.&lt;/P&gt;&lt;P&gt;t_t-v2 = 10.&lt;/P&gt;&lt;P&gt;t_t-v3 = 10.&lt;/P&gt;&lt;P&gt;append t_t.&lt;/P&gt;&lt;P&gt;clear t_t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_t-v1 = 20.&lt;/P&gt;&lt;P&gt;t_t-v2 = 10.&lt;/P&gt;&lt;P&gt;t_t-v3 = 10.&lt;/P&gt;&lt;P&gt;append t_t.&lt;/P&gt;&lt;P&gt;clear t_t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_t-v1 = 30.&lt;/P&gt;&lt;P&gt;t_t-v2 = 20.&lt;/P&gt;&lt;P&gt;t_t-v3 = 10.&lt;/P&gt;&lt;P&gt;append t_t.&lt;/P&gt;&lt;P&gt;clear t_t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_t-v1 = 30.&lt;/P&gt;&lt;P&gt;t_t-v2 = 10.&lt;/P&gt;&lt;P&gt;t_t-v3 = 20.&lt;/P&gt;&lt;P&gt;append t_t.&lt;/P&gt;&lt;P&gt;clear t_t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort t_t ascending by v1 v3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_t.&lt;/P&gt;&lt;P&gt;  write:/ t_t-v1, space, t_t-v2, space, t_t-v3.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 12:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting/m-p/1690552#M303513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T12:39:58Z</dc:date>
    </item>
  </channel>
</rss>

