<?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: symbols while sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191923#M1625307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module REUSE_ALV_GRID_DISPLAY, you need to make use of table IT_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: it_sort TYPE slis_t_sortinfo_alv,
      wa_sort LIKE LINE OF it_sort.

CLEAR wa_sort.
wa_sort-fieldname = 'VBELN'.... your 1st column to be sorted.
wa_sort-tabname = 'ITAB'....... your internal table name.
wa_sort-up = 'X'.
APPEND wa_sort TO it_sort.

CLEAR wa_sort.
wa_sort-fieldname = 'MATNR'.... your 2nd column to be sorted.
wa_sort-tabname = 'ITAB'....... your internal table name.
wa_sort-up = 'X'.
APPEND wa_sort TO it_sort.

Now use IT_SORT in function module REUSE_ALV_GRID_DISPLAY.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 06:24:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-22T06:24:09Z</dc:date>
    <item>
      <title>symbols while sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191920#M1625304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     I have designed an ALV report with 10 fields.&lt;/P&gt;&lt;P&gt;While sorting in standard reports there will be a small triangle symbol will be displayed in the field header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to enable that in my customized report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 13:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191920#M1625304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T13:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: symbols while sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191921#M1625305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when calling function module REUSE_ALV_GRID_DISPLAY, sorted field must be set in IT_SORT of type SLIS_T_SORTINFO_ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are calling directly the class CL_GUI_ALV_GRID then you have to SET_SORT_CRITERIA with IT_SORT of type LVC_T_SORT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 14:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191921#M1625305</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2011-09-21T14:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: symbols while sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191922#M1625306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the symbol one of the field ?? What type it is ??&lt;/P&gt;&lt;P&gt;What is the content for Items in this field ?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If items are blank, i believe Sort itab by Symbol descending F1 F2 should do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 03:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191922#M1625306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T03:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: symbols while sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191923#M1625307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module REUSE_ALV_GRID_DISPLAY, you need to make use of table IT_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: it_sort TYPE slis_t_sortinfo_alv,
      wa_sort LIKE LINE OF it_sort.

CLEAR wa_sort.
wa_sort-fieldname = 'VBELN'.... your 1st column to be sorted.
wa_sort-tabname = 'ITAB'....... your internal table name.
wa_sort-up = 'X'.
APPEND wa_sort TO it_sort.

CLEAR wa_sort.
wa_sort-fieldname = 'MATNR'.... your 2nd column to be sorted.
wa_sort-tabname = 'ITAB'....... your internal table name.
wa_sort-up = 'X'.
APPEND wa_sort TO it_sort.

Now use IT_SORT in function module REUSE_ALV_GRID_DISPLAY.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 06:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/symbols-while-sorting/m-p/8191923#M1625307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T06:24:09Z</dc:date>
    </item>
  </channel>
</rss>

