<?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: ALV Refresh not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225101#M1009367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi:&lt;/P&gt;&lt;P&gt;form user_com using r_ucomm like sy-ucomm&lt;/P&gt;&lt;P&gt;              rs_selfield type slis_selfield .&lt;/P&gt;&lt;P&gt;  case r_ucomm.&lt;/P&gt;&lt;P&gt;    when: 'BACK' or 'EXIT' or 'CANCEL'.  "leave back to last screen&lt;/P&gt;&lt;P&gt;      leave to screen 0.&lt;/P&gt;&lt;P&gt;    when: 'ZADD'.                        "add line&lt;/P&gt;&lt;P&gt;      call screen '100' starting at 80 10.&lt;/P&gt;&lt;P&gt;    when: 'ZDELETE'.&lt;/P&gt;&lt;P&gt;      perform do_delete_line.            "delete lines&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;  rs_selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;  rs_selfield-col_stable = 'X'.&lt;/P&gt;&lt;P&gt;  rs_selfield-row_stable = 'X'.&lt;/P&gt;&lt;P&gt;endform.                    "user_com_second&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you used the oo ALV.&lt;/P&gt;&lt;P&gt;you need define a new object,do not use the old one.&lt;/P&gt;&lt;P&gt;such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM refresh_alv_dis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD l_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "REFRESH_ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;好运，&lt;/P&gt;&lt;P&gt;启明星&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 02:51:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-18T02:51:57Z</dc:date>
    <item>
      <title>ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225098#M1009364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using refresh_table_display to refresh the data in my ALV, but apparantly it is not refreshing anything.&lt;/P&gt;&lt;P&gt;Please advice if i am missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN 'REFR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Clear Data&lt;/P&gt;&lt;P&gt;        PERFORM clear_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data Selection.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        PERFORM get_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD obj_grid-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            finished = 1&lt;/P&gt;&lt;P&gt;            OTHERS   = 2.&lt;/P&gt;&lt;P&gt;        IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 21:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225098#M1009364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-17T21:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225099#M1009365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to write below code to clear custom control :&lt;/P&gt;&lt;P&gt;*--custom control through it ALV Grid is displayed.&lt;/P&gt;&lt;P&gt;        IF NOT G_CUSTOM_CONTAINER2 IS INITIAL.&lt;/P&gt;&lt;P&gt;          CALL METHOD G_CUSTOM_CONTAINER2-&amp;gt;FREE.&lt;/P&gt;&lt;P&gt;          CLEAR: G_CUSTOM_CONTAINER2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 22:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225099#M1009365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-17T22:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225100#M1009366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need a  " CALL METHOD cl_gui_cfw=&amp;gt;flush. " after the method refresh_table_display called.&lt;/P&gt;&lt;P&gt;You don't have to free the alv grid control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is used to synchronize your SAPGui, each time you call it, a new RFC connection is opened to the SAPgui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref. &lt;A href="http://help.sap.com/saphelp_sm32/helpdata/en/06/3fa1879f2811d2bd68080009b4534c/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_sm32/helpdata/en/06/3fa1879f2811d2bd68080009b4534c/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 01:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225100#M1009366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T01:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225101#M1009367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi:&lt;/P&gt;&lt;P&gt;form user_com using r_ucomm like sy-ucomm&lt;/P&gt;&lt;P&gt;              rs_selfield type slis_selfield .&lt;/P&gt;&lt;P&gt;  case r_ucomm.&lt;/P&gt;&lt;P&gt;    when: 'BACK' or 'EXIT' or 'CANCEL'.  "leave back to last screen&lt;/P&gt;&lt;P&gt;      leave to screen 0.&lt;/P&gt;&lt;P&gt;    when: 'ZADD'.                        "add line&lt;/P&gt;&lt;P&gt;      call screen '100' starting at 80 10.&lt;/P&gt;&lt;P&gt;    when: 'ZDELETE'.&lt;/P&gt;&lt;P&gt;      perform do_delete_line.            "delete lines&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;  rs_selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;  rs_selfield-col_stable = 'X'.&lt;/P&gt;&lt;P&gt;  rs_selfield-row_stable = 'X'.&lt;/P&gt;&lt;P&gt;endform.                    "user_com_second&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you used the oo ALV.&lt;/P&gt;&lt;P&gt;you need define a new object,do not use the old one.&lt;/P&gt;&lt;P&gt;such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM refresh_alv_dis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD l_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "REFRESH_ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;好运，&lt;/P&gt;&lt;P&gt;启明星&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 02:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225101#M1009367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T02:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225102#M1009368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Z_ALV_GRID_CTRL_REFRESH.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Z_ALV_GRID_CTRL_REFRESH.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 03:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225102#M1009368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T03:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225103#M1009369</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;Why there is a need to FREE the custom container?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT G_CUSTOM_CONTAINER2 IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL METHOD G_CUSTOM_CONTAINER2-&amp;gt;FREE.&lt;/P&gt;&lt;P&gt;CLEAR: G_CUSTOM_CONTAINER2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225103#M1009369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225104#M1009370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even I am using refresh_table_display but its not working. I just added few things&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CASE e_ucomm.&lt;/P&gt;&lt;P&gt;      WHEN 'REFR'.&lt;/P&gt;&lt;P&gt;        PERFORM clear_data.&lt;/P&gt;&lt;P&gt;        PERFORM get_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD obj_grid-&amp;gt;get_frontend_layout&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    es_layout = DS_LAYO&lt;/P&gt;&lt;P&gt;        CALL METHOD obj_grid-&amp;gt;set_frontend_layout&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            is_layout = ds_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ds_sort1 type LVC_T_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD  obj_grid-&amp;gt;get_sort_criteria&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    et_sort = ds_sort1&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD  obj_grid-&amp;gt;set_sort_criteria&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    it_sort = ds_sort1&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD obj_grid-&amp;gt;refresh_table_display&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           IS_STABLE = ds_stable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            finished = 1&lt;/P&gt;&lt;P&gt;            OTHERS   = 2.&lt;/P&gt;&lt;P&gt;        IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;        EXCEPTIONS CNTL_SYSTEM_ERROR = 1&lt;/P&gt;&lt;P&gt;                         CNTL_ERROR = 2.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225104#M1009370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225105#M1009371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just added the FLUSH to my code, I Development server it was working before as well, but in production server it is was not refreshing. Lets see if this FLUSH thing will help in production server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CASE e_ucomm.&lt;/P&gt;&lt;P&gt;      WHEN 'REFR'.&lt;/P&gt;&lt;P&gt;*Clear Data&lt;/P&gt;&lt;P&gt;        PERFORM clear_data.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data Selection.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        PERFORM get_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD obj_grid-&amp;gt;get_frontend_layout&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    es_layout = DS_LAYO&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;*DATA DS_STABLE TYPE LVC_S_STBL .&lt;/P&gt;&lt;P&gt;*DS_STABLE-ROW = 'X'.&lt;/P&gt;&lt;P&gt;*DS_STABLE-COL = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD obj_grid-&amp;gt;set_frontend_layout&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            is_layout = ds_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ds_sort1 type LVC_T_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD  obj_grid-&amp;gt;get_sort_criteria&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    et_sort = ds_sort1&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD  obj_grid-&amp;gt;set_sort_criteria&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    it_sort = ds_sort1&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;        CALL METHOD obj_grid-&amp;gt;refresh_table_display&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           IS_STABLE = ds_stable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            finished = 1&lt;/P&gt;&lt;P&gt;            OTHERS   = 2.&lt;/P&gt;&lt;P&gt;        IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;        EXCEPTIONS CNTL_SYSTEM_ERROR = 1&lt;/P&gt;&lt;P&gt;                         CNTL_ERROR = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225105#M1009371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Refresh not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225106#M1009372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gurus for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 14:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-not-working/m-p/4225106#M1009372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T14:19:34Z</dc:date>
    </item>
  </channel>
</rss>

