<?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: Error while display in ALV using SORT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514172#M845224</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;use like this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: sort TYPE slis_sortinfo_alv,&lt;/P&gt;&lt;P&gt;it_sort TYPE slis_t_sortinfo_alv.&lt;/P&gt;&lt;P&gt;sort-fieldname = 'PERNR'.&lt;/P&gt;&lt;P&gt;sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;APPEND sort TO it_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will sort ur fields auto matically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2008 12:49:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-11T12:49:26Z</dc:date>
    <item>
      <title>Error while display in ALV using SORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514169#M845221</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;   I Displaying the data in ALV and after display using the ls_fieldcat-edit changing the value and saving.but i cant sort the displayed data.so how tocome out this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dessanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514169#M845221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error while display in ALV using SORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514170#M845222</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;Please refer to the code below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_bypassing_buffer       = gs_test-bypassing_buffer
          i_buffer_active          = gs_test-buffer_active
          i_callback_program       = g_repid
          i_callback_pf_status_set = 'F01_ALV_EVENT_PF_STATUS_SET'
          i_callback_user_command  = 'F01_ALV_EVENT_USER_COMMAND'


And

form f01_alv_event_user_command using r_ucomm     like sy-ucomm
                                      rs_selfield type slis_selfield.
                                                            "#EC *

  data: ls_outtab    type g_ty_s_outtab,

        ls_vari      type disvariant,

        ls_slis_layo type slis_layout_alv,
        lt_slis_fcat type slis_t_fieldcat_alv,
        lt_slis_sort type slis_t_sortinfo_alv,
        lt_slis_filt type slis_t_filter_alv,
        ls_slis_prnt type slis_print_alv,

        ls_lvc_layo  type lvc_s_layo,
        lt_lvc_fcat  type lvc_t_fcat,
        lt_lvc_sort  type lvc_t_sort,
        lt_lvc_filt  type lvc_t_filt,
        ls_lvc_prnt  type lvc_s_prnt.

  case r_ucomm.
    when 'REFRESH'.
      rs_selfield-refresh = con_true.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sriram Ponna on Mar 11, 2008 6:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514170#M845222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error while display in ALV using SORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514171#M845223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After saving try calling the method &lt;STRONG&gt;refresh_table_display&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514171#M845223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error while display in ALV using SORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514172#M845224</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;use like this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: sort TYPE slis_sortinfo_alv,&lt;/P&gt;&lt;P&gt;it_sort TYPE slis_t_sortinfo_alv.&lt;/P&gt;&lt;P&gt;sort-fieldname = 'PERNR'.&lt;/P&gt;&lt;P&gt;sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;APPEND sort TO it_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will sort ur fields auto matically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514172#M845224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while display in ALV using SORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514173#M845225</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;In one of the structures of ALV  structure , there is an option called FIELD-SORT . Make  it on.&lt;/P&gt;&lt;P&gt;and when the result gets displayed, u will get a sort option as an icon on tool bar.. then and there u can  choose to operate SORT facility on required fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514173#M845225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error while display in ALV using SORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514174#M845226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chances are pretty good that this is a refresh issue.  It may require that after you update the internal table being displayed, you need to refresh the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be an option to REFRESH_DISPLAY (ie CALL METHOD grid_action_dropins-&amp;gt;refresh_table_display), or you may need to exit the ALV process and restart it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 12:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-display-in-alv-using-sort/m-p/3514174#M845226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T12:52:54Z</dc:date>
    </item>
  </channel>
</rss>

