Skip to Content
0
Mar 24, 2009 at 09:48 AM

cl_salv_table - refresh does not work

3362 Views

Hello community,

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.

here is the relevant code:

* The alv object is created like this
  try.
  cl_salv_table=>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->get_columns( ).
  lo_columns->set_optimize( abap_true ).

  go_joblist_alv->display( ).

* after a user command, the following code is processed

  data ls_stat type zdb_fspo_stat01.
  ls_stat = go_stat->get_stat( ).
  go_jobs->shift( ls_stat-strtdate ).
  clear gt_joblist. " For test reasons, the table is cleared
*  gt_joblist = go_jobs->get_joblist( ).
  go_joblist_alv->refresh( ).
  cl_gui_cfw=>flush( ).  " I event tried to do a flush - without effect

Can anybody help me?

Thanks to all

Jörg