<?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: Hierarchical List Display Sorting Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hierarchical-list-display-sorting-issue/m-p/8312207#M1636564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cagatay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, but..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Category' is from header table(otabh) and 'failed_lines' is from item table(otabd).&lt;/P&gt;&lt;P&gt;I also tried sorting item table(otabd) just before the function call, but it did not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2011 09:08:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-30T09:08:35Z</dc:date>
    <item>
      <title>Hierarchical List Display Sorting Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hierarchical-list-display-sorting-issue/m-p/8312205#M1636562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019m using REUSE_ALV_HIERSEQ_LIST_DISPLAY to display header and item details. I need to sort header table in ascending order with respect to u2018categoryu2019 field and item table in descending order with respect to u2018failed_linesu2019 field. Iu2019m using below code for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lv_alv_sort-spos = '1'.
    lv_alv_sort-fieldname = 'CATEGORY'.
    lv_alv_sort-tabname = 'OTABH'.
    lv_alv_sort-up = 'X'.
    APPEND lv_alv_sort TO alv_sort.
    CLEAR: lv_alv_sort.

    lv_alv_sort-spos = '2'.
    lv_alv_sort-fieldname = 'FAILED_LINES'.
    lv_alv_sort-tabname = 'OTABD'.
    lv_alv_sort-down = 'X'.
    APPEND lv_alv_sort TO alv_sort.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code, header table (otabh) is working properly and displaying in ascending order. But the item table (otabd), even though descending order is mentioned( lv_alv_sort-down = 'X'.), it is displaying in ascending order. Could anyone help me with other possible ways to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 08:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hierarchical-list-display-sorting-issue/m-p/8312205#M1636562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-30T08:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical List Display Sorting Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hierarchical-list-display-sorting-issue/m-p/8312206#M1636563</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;Try sort item table just before list.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT otabd by category ASCENDING failed_line DESCENDING.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I didn't try. Let me know the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Çağatay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 08:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hierarchical-list-display-sorting-issue/m-p/8312206#M1636563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-30T08:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hierarchical List Display Sorting Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hierarchical-list-display-sorting-issue/m-p/8312207#M1636564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cagatay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, but..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Category' is from header table(otabh) and 'failed_lines' is from item table(otabd).&lt;/P&gt;&lt;P&gt;I also tried sorting item table(otabd) just before the function call, but it did not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 09:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hierarchical-list-display-sorting-issue/m-p/8312207#M1636564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-30T09:08:35Z</dc:date>
    </item>
  </channel>
</rss>

