<?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: problem in alv refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585802#M1273681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;    You can use Refresh_table_display method to refresh the ALV grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 08:11:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-18T08:11:34Z</dc:date>
    <item>
      <title>problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585795#M1273674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi masters,&lt;/P&gt;&lt;P&gt;i m working on alv report where i have to change the data.&lt;/P&gt;&lt;P&gt;after changing the data i have to refresh the report to show changed data. &lt;/P&gt;&lt;P&gt;when i clicked on refresh button it is going to pf-status after that as i shown in below code it goes to 'refresh_report'. but in this 'form refresh_report' it won't display the any report. it goes into the infinite loop. within that form- endform.&lt;/P&gt;&lt;P&gt;plz can u give me solution for this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set pf-status 'STANDARD_FULLSCREEN'.&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when '&amp;amp;REFRESH'.&lt;/P&gt;&lt;P&gt;perform refresh_report.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form refresh_report .&lt;/P&gt;&lt;P&gt;perform build_fieldcatlog.&lt;/P&gt;&lt;P&gt;perform event_call.&lt;/P&gt;&lt;P&gt;perform populate_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform data_retrieval.&lt;/P&gt;&lt;P&gt;perform build_listheader using it_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     i_callback_program                = v_repid&lt;/P&gt;&lt;P&gt;     i_callback_pf_status_set          = 'SET_PF_STATUS'&lt;/P&gt;&lt;P&gt;     i_callback_user_command           = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;     i_callback_top_of_page            = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;     it_fieldcat                       = i_fieldcat[]&lt;/P&gt;&lt;P&gt;     i_save                            = 'A'&lt;/P&gt;&lt;P&gt;     it_events                         = v_events&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab                          = it_header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGRAM_ERROR                     = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                            = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;endform. " REFRESH_REPORT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 09:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585795#M1273674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T09:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585796#M1273675</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;remove the call function reuse_alv_grid_display from the refresh_report....&lt;/P&gt;&lt;P&gt;just see the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your form refresh_report should look like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form refresh_report .
perform build_fieldcatlog.
perform event_call.
perform populate_event.

perform data_retrieval.
perform build_listheader using it_listheader.

endform. " REFRESH_REPORT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'REUSE_ALV_GRID_DISPLAY_LVC'&lt;/P&gt;&lt;P&gt;you need not write any code for refresh just the function code &amp;amp;REFRESH will do... it works automatically...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 09:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585796#M1273675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585797#M1273676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vicky&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

"call these only once
perform build_fieldcatlog.
perform event_call.
perform populate_event.

perform data_retrieval.
perform build_listheader using it_listheader.

...
FORM set_pf_status USING ft_extab TYPE slis_t_extab.
  set pf-status 'STANDARD_FULLSCREEN'.
ENDFORM.                    "SET_PF_STATUS


FORM user_command USING f_ucomm TYPE sy-ucomm
                        ls_selfield TYPE slis_selfield.
    case ucomm.       "check f_ucomm not sy-ucomm
       when '&amp;amp;REFRESH'.   
       perform refresh_report.
    endcase.
ENDFORM.                    "USER_COMMAND

form refresh_report .

  SET SCREEN 0.       "try end up calling sequnece also before redisplaying 

call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
it_fieldcat = i_fieldcat[]
i_save = 'A'
it_events = v_events
tables
t_outtab = it_header
* EXCEPTIONS
* PROGRAM_ERROR = 1
* OTHERS = 2
.
endform. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585797#M1273676</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-15T10:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585798#M1273677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;use fm 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SupriyaReddy29 on May 15, 2009 12:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585798#M1273677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585799#M1273678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this u will definetly get ur requirement fulfilled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form user_command using ucomm type sy-ucomm&lt;/P&gt;&lt;P&gt;                        selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;  data: gstring type c.&lt;/P&gt;&lt;P&gt;  constants: l_c_repid type sy-repid value 'ZCOE_ALV_SIMPLE'.&lt;/P&gt;&lt;P&gt;  data: l_i_seltab type table of rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case ucomm.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Clicking on refresh button at toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    when 'REF'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling fm to get refresh data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      call function 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          curr_report     = l_c_repid&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          selection_table = l_i_seltab&lt;/P&gt;&lt;P&gt;        exceptions&lt;/P&gt;&lt;P&gt;          not_found       = 1&lt;/P&gt;&lt;P&gt;          no_report       = 2&lt;/P&gt;&lt;P&gt;          others          = 3.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; * Calling the screen after refreshing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        submit sy-repid  with selection-table l_i_seltab.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Murali.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585799#M1273678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T10:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585800#M1273679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this u will definetly get ur requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form user_command using ucomm type sy-ucomm&lt;/P&gt;&lt;P&gt;                        selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;  data: gstring type c.&lt;/P&gt;&lt;P&gt;  constants: l_c_repid type sy-repid value 'ZCOE_ALV_SIMPLE'.&lt;/P&gt;&lt;P&gt;  data: l_i_seltab type table of rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case ucomm.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Clicking on refresh button at toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    when 'REF'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling fm to get refresh data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      call function 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          curr_report     = l_c_repid&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          selection_table = l_i_seltab&lt;/P&gt;&lt;P&gt;        exceptions&lt;/P&gt;&lt;P&gt;          not_found       = 1&lt;/P&gt;&lt;P&gt;          no_report       = 2&lt;/P&gt;&lt;P&gt;          others          = 3.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; * Calling the screen after refreshing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        submit sy-repid  with selection-table l_i_seltab.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585800#M1273679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T10:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585801#M1273680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      i_callback_program              = sy-repid
      i_callback_pf_status_set      = 'ZMENU'
      i_callback_user_command  = 'USER_COMMAND_01'
      it_fieldcat                            = it_fieldcat
    TABLES
      t_outtab                 = it_spfli
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.

FORM user_command_01 USING ucomm    LIKE sy-ucomm
                           selfield TYPE slis_selfield.

Case ucomm.
   When '&amp;amp;REFRESH'.
       selfield-refresh = 'X'.
Endcase.
Ed form.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585801#M1273680</guid>
      <dc:creator>p604431</dc:creator>
      <dc:date>2009-05-15T11:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585802#M1273681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;    You can use Refresh_table_display method to refresh the ALV grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 08:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585802#M1273681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T08:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585803#M1273682</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;  If you are giving input in ALV, then don't refresh like this. Use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     v_ref TYPE REF TO cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_grid = v_ref.&lt;/P&gt;&lt;P&gt;    CALL METHOD v_ref-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 10:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-refresh/m-p/5585803#M1273682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T10:32:52Z</dc:date>
    </item>
  </channel>
</rss>

