<?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: cl_salv_table - refresh does not work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427363#M1245453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you implemented the Events for the SALV object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check demo program: SALV_DEMO_TABLE_REFRESH which works well for the refresh on the button Change Data Records &amp;amp; Select Rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2009 13:46:36 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2009-03-24T13:46:36Z</dc:date>
    <item>
      <title>cl_salv_table - refresh does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427362#M1245452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i put a table on a custom control of a dynpro using the class above. Now, after altering the table contents and doing a refresh, the visible table will not show any change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the relevant code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* The alv object is created like this
  try.
  cl_salv_table=&amp;gt;factory(
    exporting
      r_container = go_joblist_container
    importing
      r_salv_table = go_joblist_alv
    CHANGING
* The table gt_joblist is global...
      t_table = gt_joblist
       ).
  catch cx_salv_msg.
    exit.
  ENDTRY.
  lo_columns ?= go_joblist_alv-&amp;gt;get_columns( ).
  lo_columns-&amp;gt;set_optimize( abap_true ).

  go_joblist_alv-&amp;gt;display( ).

* after a user command, the following code is processed

  data ls_stat type zdb_fspo_stat01.
  ls_stat = go_stat-&amp;gt;get_stat( ).
  go_jobs-&amp;gt;shift( ls_stat-strtdate ).
  clear gt_joblist. " For test reasons, the table is cleared
*  gt_joblist = go_jobs-&amp;gt;get_joblist( ).
  go_joblist_alv-&amp;gt;refresh( ).
  cl_gui_cfw=&amp;gt;flush( ).  " I event tried to do a flush - without effect
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all&lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 09:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427362#M1245452</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2009-03-24T09:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: cl_salv_table - refresh does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427363#M1245453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you implemented the Events for the SALV object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check demo program: SALV_DEMO_TABLE_REFRESH which works well for the refresh on the button Change Data Records &amp;amp; Select Rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 13:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427363#M1245453</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-03-24T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: cl_salv_table - refresh does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427364#M1245454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the scope of the table variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar problem that I fixed by making the table an attribute of the local class, rather than a global variable of the report program. Once I did that, the method that caught the user action saw the updated (sorted) version of the table, not the original.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 14:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427364#M1245454</guid>
      <dc:creator>bryan_cain</dc:creator>
      <dc:date>2009-03-24T14:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: cl_salv_table - refresh does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427365#M1245455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the user action is being initiated by the dynpro that carries the alv (PAI-Processing). I don't see how the implementation of events could help here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 15:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427365#M1245455</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2009-03-24T15:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: cl_salv_table - refresh does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427366#M1245456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no report. It's a object-orientated transaction with a function module that contains a dynpro with the alv on it. The table is a global, private attribute of the main class. I did several similar programs where the refresh works fine...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 15:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427366#M1245456</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2009-03-24T15:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: cl_salv_table - refresh does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427367#M1245457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code for refreshing must be triggered form the event handlers of your ALV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to implement Events &amp;amp; the event handlers for your ALV e.g. BEFORE_SALV_FUNCTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 15:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427367#M1245457</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-03-24T15:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: cl_salv_table - refresh does not work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427368#M1245458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I was misunderstanding your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK, the refresh should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the set_data method instead?  Be aware, it'll wipe your display settings...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 18:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-does-not-work/m-p/5427368#M1245458</guid>
      <dc:creator>bryan_cain</dc:creator>
      <dc:date>2009-03-24T18:55:42Z</dc:date>
    </item>
  </channel>
</rss>

