<?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: display Red triangle in the sorting column header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212806#M1627497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Raymond!&lt;/P&gt;&lt;P&gt;This solves the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 09:56:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-08-04T09:56:38Z</dc:date>
    <item>
      <title>display Red triangle in the sorting column header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212800#M1627491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;In the customized ALV report,we need the display of Red triangle in the column header While sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In standard report, we can see the display of Red triangle in the sorted column header. how to enable that in my customized report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Kindly do reply for the above threat&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: raj on Sep 20, 2011 10:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 07:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212800#M1627491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T07:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: display Red triangle in the sorting column header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212801#M1627492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the standard behavior of ALV as soon as the SORT is executed in the ALV (not a SORT of the internal table before calling the ALV) - fill the SORT parameter (*) (or use a variant with a sort option) in the call of ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*) eg. parameter IT_SORT of method [set_table_for_first_display|http://help.sap.com/saphelp_erp2004/helpdata/en/0a/b5533cd30911d2b467006094192fe3/frameset.htm] of [Methods of Class CL_GUI_ALV_GRID|http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5ecd2fe11d2b467006094192fe3/frameset.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 08:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212801#M1627492</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-09-20T08:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: display Red triangle in the sorting column header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212802#M1627493</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; Just fill the SORT parameter in RESUE_ALV_grid_display or in SET_TABLE_FOR_FIRST_DISPLAY method of CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WA_SORT-FIELDNAME = 'field name'.&lt;/P&gt;&lt;P&gt;  WA_SORT-TABNAME =   ' table name'.&lt;/P&gt;&lt;P&gt;  WA_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;  WA_SORT-DOWN = 'X'.&lt;/P&gt;&lt;P&gt;  WA_SORT-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND WA_SORT TO IT_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this will helps you.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kiran  kumar on Sep 20, 2011 11:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 09:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212802#M1627493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T09:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: display Red triangle in the sorting column header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212803#M1627494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Raymond,&lt;/P&gt;&lt;P&gt;Thanks for your reply .....&lt;/P&gt;&lt;P&gt;Since we use customized Sorting icons in our ALV report, when we sorting the coulmn header, the Red triange is not get displayed. Pls let us know the ' BLOCK OF CODE ' to show the red triangle while do sort the column header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: raj on Sep 20, 2011 12:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 09:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212803#M1627494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T09:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: display Red triangle in the sorting column header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212804#M1627495</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;PRE&gt;&lt;CODE&gt;

Data: it_sort        TYPE slis_t_sortinfo_alv,
         wa_sort     TYPE slis_sortinfo_alv.

wa_sort-fieldname = 'VBELN'.
wa_sort-tabname = 'ITAB'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'......... Use this only if you have currency columns.

append wa_sort to it_sort.

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program = sy-repid
      i_default          = 'X'
      i_save             = 'A'
      is_layout          = wa_layout
      it_fieldcat        = it_fcat
      it_sort            = it_sort........................ used for automatic sorting
      it_events          = it_events
    TABLES
      t_outtab           = itab
    EXCEPTIONS
      program_error      = 1
      OTHERS             = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE 'Error in displaying records.' TYPE 'E'.
    LEAVE LIST-PROCESSING.
  ENDIF.

&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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Danish2285 on Sep 20, 2011 3:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 09:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212804#M1627495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T09:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: display Red triangle in the sorting column header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212805#M1627496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just fill IT_SORT with sort criteria and apply the change to sort via a (*) &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD &amp;lt;ref.var. to CL_GUI_ALV_GRID &amp;gt; -&amp;gt;set_sort_criteria

   EXPORTING
      IT_SORT  =   &amp;lt;internal table of type LVC_T_SORT &amp;gt; .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*) For (old) Reuse FM use a GET_GLOBALS_FROM_SLVC_FULLSCR to get the ref to cl_gui_alv_grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 11:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212805#M1627496</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-09-20T11:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: display Red triangle in the sorting column header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212806#M1627497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Raymond!&lt;/P&gt;&lt;P&gt;This solves the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 09:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-red-triangle-in-the-sorting-column-header/m-p/8212806#M1627497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-04T09:56:38Z</dc:date>
    </item>
  </channel>
</rss>

