<?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: REFRESH_TABLE_DISPLAY not working. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281068#M1633822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response. I inserted your code after the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM get_data&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; line, but it did not solve my problem. Any other ideas why this isn't working for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 14:00:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-22T14:00:38Z</dc:date>
    <item>
      <title>REFRESH_TABLE_DISPLAY not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281066#M1633820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ALV grid displaying purchase order information. When you double-click, it takes you to the transaction ME22N. I have enhanced ME22N's screen to include a checkbox on the screen that is tied to a custom field in the EKKO table. I have verified that the EKKO field is getting updated correctly whenever the checkbox is changed, however my ALV grid will not refresh to display the changes made. I have been putting the code directly after the CALL TRANSACTION ME22N line in the user event block. I have also tried putting it in the ALV screen's PDO module. I have gotten the internal table that I use to create the ALV grid to reflect the changes, but the actual grid display is still showing the old information. I have tried using REFRESH_TABLE_DISPLAY and I am having no luck. &lt;STRONG&gt;The ALV display does refresh if I back out to the selection screen and execute the report again.&lt;/STRONG&gt; Am I forgetting to do something to the container? Do I need to free the grid first (which I have tried)? I know there are similar threads on SDN pertaining to this issue, but none of the ones I have found so far have solved my problem. I am creating the ALV using the object-oriented method. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code for setting the ALV container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM alv_set_container.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Create ALV object if it does not already exist&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF cl_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT cl_custom_container&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        container_name = 'ALV_CONTAINER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT cl_alv_grid&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_parent = cl_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Build the ALV field catalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM alv_build_field_cat TABLES it_alv_field_cat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Build the ALV sort tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM alv_build_sort TABLES it_alv_sort.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Set the ALV layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM alv_set_layout USING wa_alv_layout.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Set the ALV variant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM alv_set_variant USING wa_alv_variant.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Set the ALV save setting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM alv_set_save USING w_save.&lt;/P&gt;&lt;P&gt;&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 cl_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_layout       = wa_alv_layout&lt;/P&gt;&lt;P&gt;        is_variant      = wa_alv_variant&lt;/P&gt;&lt;P&gt;        i_save          = w_save&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_outtab       = it_ekko&lt;/P&gt;&lt;P&gt;        it_fieldcatalog = it_alv_field_cat&lt;/P&gt;&lt;P&gt;        it_sort         = it_alv_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Create events for this object&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT cl_event.&lt;/P&gt;&lt;P&gt;    SET HANDLER cl_event-&amp;gt;double_click       FOR cl_alv_grid.&lt;/P&gt;&lt;P&gt;    SET HANDLER cl_event-&amp;gt;handle_top_of_list FOR cl_alv_grid.&lt;/P&gt;&lt;P&gt;    SET HANDLER cl_event-&amp;gt;handle_top_of_page FOR cl_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Table has already been created so refresh it&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM get_data.&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_alv_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " alv_set_container&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 21:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281066#M1633820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T21:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH_TABLE_DISPLAY not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281067#M1633821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this line of your code, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ELSE.
* Table has already been created so refresh it
PERFORM get_data.
CALL METHOD cl_alv_grid-&amp;gt;refresh_table_display.
ENDIF. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please add the following lines:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


PERFORM get_data. "this is you present code. insert here beforerefreshing the ALV display

DATA:  lwa_ref        TYPE lvc_s_stbl..

IF cl_alv_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = cl_alv_grid.
        IF sy-subrc EQ 0.                                   
*          do nothing
        ENDIF.
ENDIF.

 IF NOT cl_alv_grid IS INITIAL.
        CALL METHOD cl_alv_grid-&amp;gt;refresh_table_display
          EXPORTING
            is_stable = lwa_ref
          EXCEPTIONS
            finished  = 1
            OTHERS    = 2.
        IF sy-subrc = 0 .
          "do nothing
        ENDIF.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: levis 501 on Sep 22, 2011 5:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 02:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281067#M1633821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T02:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH_TABLE_DISPLAY not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281068#M1633822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response. I inserted your code after the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM get_data&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; line, but it did not solve my problem. Any other ideas why this isn't working for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281068#M1633822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T14:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH_TABLE_DISPLAY not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281069#M1633823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you calling transaction ME22n within the event  'double_click'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, after the call transaction, try a leave to screen...... statement. This will recall the screen again. I suspect after you double click the screen is not being refresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281069#M1633823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH_TABLE_DISPLAY not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281070#M1633824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Levis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help. I added your code and at first it didn't work. Then, I thought I would clear and refresh the internal tables (I have two) used in the get_data subroutine. This seemed to work, and it was refreshing immediately upon returning to the screen. Then I exited the program and restarted it completely and now in order for me to get the alv grid to refresh properly I need to click the refresh button I created on the ALV screen. I guess this is a performance related issue that I should begin in another thread. Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin, thanks for the suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 15:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281070#M1633824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T15:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: REFRESH_TABLE_DISPLAY not working.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281071#M1633825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are welcome. Thanks too for your appreciation. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 02:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-table-display-not-working/m-p/8281071#M1633825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T02:49:54Z</dc:date>
    </item>
  </channel>
</rss>

