<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580289#M261853</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;U can try to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-WBS = 'ZZZZZZZZZ'.&lt;/P&gt;&lt;P&gt;MODIFY ITAB TRANSPORTING WBS WHERE WBS = SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY WBS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ITAB-WBS.&lt;/P&gt;&lt;P&gt;MODIFY ITAB TRANSPORTING WBS WHERE WBS = 'ZZZZZZZZZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u insert a value where the WBS is blank, sort the table and then clear WBS where u have inserted the false value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2006 12:24:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-17T12:24:09Z</dc:date>
    <item>
      <title>sort internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580287#M261851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a requirement.&lt;/P&gt;&lt;P&gt;I am looking to sort an internal table with wbs element. I want to sort the internal table such a way that all the entries that have wbs element appears at top in ascending order and then those that dont have wbs element.&lt;/P&gt;&lt;P&gt;if i try sort ascending then blank entries come first.&lt;/P&gt;&lt;P&gt;help please..&lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 12:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580287#M261851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T12:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: sort internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580288#M261852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SORT ITAB &amp;lt;b&amp;gt;DESCENDING&amp;lt;/b&amp;gt; by POSID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 12:19:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580288#M261852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T12:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: sort internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580289#M261853</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;U can try to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-WBS = 'ZZZZZZZZZ'.&lt;/P&gt;&lt;P&gt;MODIFY ITAB TRANSPORTING WBS WHERE WBS = SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB BY WBS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ITAB-WBS.&lt;/P&gt;&lt;P&gt;MODIFY ITAB TRANSPORTING WBS WHERE WBS = 'ZZZZZZZZZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u insert a value where the WBS is blank, sort the table and then clear WBS where u have inserted the false value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 12:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580289#M261853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T12:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: sort internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580290#M261854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible to achieve that by the SORT statement on WBS Element. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only solution is that you include a field in the internal table say KEY and populate the same with '1' if WBS Element is not space and '9' if it is space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that sort the internal table using key and wbs element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab by key wbselement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result of the same would be as you want.&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>Tue, 17 Oct 2006 12:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-internal-table/m-p/1580290#M261854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T12:38:14Z</dc:date>
    </item>
  </channel>
</rss>

