<?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 Sort table containing single row as display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712127#M1872222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know how to sort table containing single row as display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is i have to show lastest text (comment) in the top following by its previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in text i have "date" "time" "userid" -"comment".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: i'm append one line having '________' after every row and my table has only 1-Row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFB the details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/585891" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/585892" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Nov 2014 06:51:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-11-15T06:51:08Z</dc:date>
    <item>
      <title>Sort table containing single row as display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712127#M1872222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know how to sort table containing single row as display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is i have to show lastest text (comment) in the top following by its previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in text i have "date" "time" "userid" -"comment".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: i'm append one line having '________' after every row and my table has only 1-Row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFB the details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/585891" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/585892" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 06:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712127#M1872222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-15T06:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sort table containing single row as display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712128#M1872223</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;Is your database table also having one record only..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 07:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712128#M1872223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-15T07:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sort table containing single row as display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712129#M1872224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorting this kind of data is the wrong approach. Get your data in order using the original data then construct your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT original_data BY date descending time descending.&lt;/P&gt;&lt;P&gt;LOOP AT original_data INTO record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; row = record-date &amp;amp;&amp;amp; record-time &amp;amp;&amp;amp; record-username &amp;amp;&amp;amp; record-comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp; insert row into table rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp; insert row_of_underlines into table rows.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not exactly complicated ABAP is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 07:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712129#M1872224</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-11-15T07:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sort table containing single row as display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712130#M1872225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean your table has only 1 column right?&lt;/P&gt;&lt;P&gt;but multiple rows still.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can build another table having date, time, row id as columns, extract data from your table and fill this, and then sort based on date &amp;amp; time and then fetch row id and rearrange your original internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 07:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-table-containing-single-row-as-display/m-p/10712130#M1872225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-15T07:17:07Z</dc:date>
    </item>
  </channel>
</rss>

