<?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 ALV REFRESH in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887458#M52755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;how to refresh ALV grid values?&lt;/P&gt;&lt;P&gt;calling bELOW FM alone did not get refresh. do we have to&lt;/P&gt;&lt;P&gt;call routine again.?&lt;/P&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;     CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Jan 2005 17:30:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-09T17:30:45Z</dc:date>
    <item>
      <title>ALV REFRESH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887458#M52755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;how to refresh ALV grid values?&lt;/P&gt;&lt;P&gt;calling bELOW FM alone did not get refresh. do we have to&lt;/P&gt;&lt;P&gt;call routine again.?&lt;/P&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;     CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2005 17:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887458#M52755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-09T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REFRESH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887459#M52756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your question lacks some information to be answered. It is important to know where and how you call the method. You may have somethings wrong while you are building ALV grid. However, I suggest you to inspect the tutorial &amp;lt;a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf"&amp;gt;"An Easy Reference For ALV Grid Control"&amp;lt;/a&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;And as a last thing, let me introduce you the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;&lt;/P&gt;&lt;P&gt;- one 10 points (solved)&lt;/P&gt;&lt;P&gt;- two 6 points (very helpful answer)&lt;/P&gt;&lt;P&gt;- many 2 points (helpful answer)&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2005 20:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887459#M52756</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-01-09T20:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REFRESH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887460#M52757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai let me post the code below&lt;/P&gt;&lt;P&gt;i have writen Refresh code in EVEN HANDLER place.&lt;/P&gt;&lt;P&gt;When i click Refresh button at ALVgrid, it should refresh&lt;/P&gt;&lt;P&gt;the grid values.&lt;/P&gt;&lt;P&gt;REPORT ZALVTEST .&lt;/P&gt;&lt;P&gt;TYPE-POOLS: icon. TABLES: ZSFLIGHT.&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION DEFERRED.&lt;/P&gt;&lt;P&gt;DATA: gi_sflight TYPE STANDARD TABLE OF sflight.&lt;/P&gt;&lt;P&gt;DATA: ok_code LIKE sy-ucomm,&lt;/P&gt;&lt;P&gt;      g_wa_sflight LIKE sflight.&lt;/P&gt;&lt;P&gt;DATA:go_grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;  go_custom_container TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;  o_event_receiver TYPE REF TO lcl_event_receiver.&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;     handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;       e_object e_interactive,&lt;/P&gt;&lt;P&gt;       handle_user_command FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;       IMPORTING e_ucomm.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_event_receiver IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLASS lcl_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD handle_toolbar.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Event handler method for event toolbar.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CONSTANTS:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Constants for button type&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      c_button_normal           TYPE i VALUE 0,&lt;/P&gt;&lt;P&gt;      c_menu_and_default_button TYPE i VALUE 1,&lt;/P&gt;&lt;P&gt;     c_menu                    TYPE i VALUE 2,&lt;/P&gt;&lt;P&gt;      c_separator               TYPE i VALUE 3,&lt;/P&gt;&lt;P&gt;      c_radio_button            TYPE i VALUE 4,&lt;/P&gt;&lt;P&gt;      c_checkbox                TYPE i VALUE 5,&lt;/P&gt;&lt;P&gt;      c_menu_entry              TYPE i VALUE 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA:&lt;/P&gt;&lt;P&gt;        ls_toolbar  TYPE stb_button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Append seperator to the normal toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;    MOVE c_separator TO ls_toolbar-butn_type..&lt;/P&gt;&lt;P&gt;    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Append a new button that to the toolbar. Use E_OBJECT of&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  This class has one attribute MT_TOOLBAR which is of table type&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TTB_BUTTON. The structure is STB_BUTTON&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;    MOVE 'REFRESH'  TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;    MOVE  icon_REFRESH   TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;    MOVE 'Change flight' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;    MOVE 'Refresh'       TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;    MOVE ' '             TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;    APPEND ls_toolbar    TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;  METHOD handle_user_command.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Handle own functions defined in the toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CASE e_ucomm.&lt;/P&gt;&lt;P&gt;      WHEN 'CHANGE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Perform Loaddata.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;      CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LEAVE TO SCREEN 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;CALL SCREEN 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0300 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IF go_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;       CREATE OBJECT go_custom_container&lt;/P&gt;&lt;P&gt;         EXPORTING container_name = 'ZCUSTOM'.&lt;/P&gt;&lt;P&gt;       CREATE OBJECT go_grid&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;         i_parent = go_custom_container.&lt;/P&gt;&lt;P&gt;       CREATE OBJECT o_event_receiver.&lt;/P&gt;&lt;P&gt;       SET HANDLER o_event_receiver-&amp;gt;handle_user_command FOR go_grid.&lt;/P&gt;&lt;P&gt;       SET HANDLER o_event_receiver-&amp;gt;handle_toolbar FOR go_grid.&lt;/P&gt;&lt;P&gt;       Perform Loaddata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0300  OUTPUT&lt;/P&gt;&lt;P&gt;FORM Loaddata.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read data from table SFLIGHT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       SELECT * FROM sflight INTO TABLE gi_sflight.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Load data into the grid and display them&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;       EXPORTING i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;       CHANGING  it_outtab        = gi_sflight.&lt;/P&gt;&lt;P&gt;       CALL METHOD go_grid-&amp;gt;set_toolbar_interactive.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2005 04:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887460#M52757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-10T04:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REFRESH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887461#M52758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have mentioned 'REFRESH' in function code, but in handle_user_command you have mentioned 'CHANGE'. For obvious reasons, this would not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the link Serdar has given is very good. I use it pretty much everyday. Secondly for ALV related, especially, grid issues, there are lots of programs available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check BC&lt;STRONG&gt;ALV&lt;/STRONG&gt;GRID* in SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2005 05:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887461#M52758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-10T05:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REFRESH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887462#M52759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I changed 'REFRESH' as Functional code and tried as below.&lt;/P&gt;&lt;P&gt;But it did not works. Unless i call the (Select *) command call again using PERFORM LOADDATA.&lt;/P&gt;&lt;P&gt;I checked all examples..but still doubt.could you please confirm..&lt;/P&gt;&lt;P&gt;Refer code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE e_ucomm.&lt;/P&gt;&lt;P&gt;      WHEN 'REFRESH'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Perform Loaddata.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;     CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;   Above two lines alone does not Refresh the Grid including Structure values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandra kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2005 06:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887462#M52759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-10T06:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REFRESH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887463#M52760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Importantly, the &amp;lt;b&amp;gt;data in the internal table&amp;lt;/b&amp;gt; should &amp;lt;b&amp;gt;change&amp;lt;/b&amp;gt;, for noticeable difference. So change the internal table, when you hit on REFRESH, and you will find out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2005 06:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887463#M52760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-10T06:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV REFRESH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887464#M52761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your assistance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2005 05:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh/m-p/887464#M52761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-11T05:16:22Z</dc:date>
    </item>
  </channel>
</rss>

