<?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 sometimes does nothing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429023#M1997804</link>
    <description>&lt;P&gt;Yes, the table is in the final class, the ALV object in its abstract super class.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 16:06:47 GMT</pubDate>
    <dc:creator>jrgkraus</dc:creator>
    <dc:date>2021-06-18T16:06:47Z</dc:date>
    <item>
      <title>CL_SALV_TABLE - refresh sometimes does nothing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429021#M1997802</link>
      <description>&lt;P&gt;I wrote about this already 12 years ago (!) - &lt;A href="https://answers.sap.com/questions/5704968/index.html"&gt;https://answers.sap.com/questions/5704968/index.html&lt;/A&gt; - no solution so far.&lt;/P&gt;
  &lt;P&gt;I have a very strange issue with CL_SALV_TABLE regarding the refresh of a table. Since my program is very big (~100 classes) I can not paste the coding here. I will try to describe the issue with screen shots&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950515-shot1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;My SALV is this table on the screen. Now, I delete the line we see and do a refresh afterwards&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950516-2021-06-18-14-21-15-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;The delete( ) deletes the row from the database using a BAPI call. It then reloads the data in the model.&lt;/P&gt;
  &lt;P&gt;Now I step into the refresh( ) method&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950519-2021-06-18-14-24-03-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;init_alv( ) does nothing, because the ALV object is already instantiated.&lt;/P&gt;
  &lt;P&gt;Now I step into get_data( ).&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950520-2021-06-18-14-25-19-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;time_confirmations is the output table of my ALV. As we can see, it now is empty.&lt;/P&gt;
  &lt;P&gt;Now let's go on to the refresh:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950523-2021-06-18-14-27-11-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I do a display - but also a refresh causes the same problem. Pressing F8, the table is NOT refreshed:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950524-2021-06-18-14-28-59-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;However, if I do a simple sort operation:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950525-2021-06-18-14-29-59-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Voilà - the table is refreshed!&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950526-2021-06-18-14-31-00-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Now the same class has also a function (the "all confs" button), that does something very similar:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1950532-2021-06-18-14-51-48-clipboard.png" /&gt;&lt;/P&gt;
  &lt;P&gt;This call sets up a filtering in the model, so a different set of lines will be passed during refresh. Surprisingly, this call works perfect...&lt;/P&gt;
  &lt;P&gt;It's making me mad. I can not deliver my program like this, and I have no idea about a workaround.&lt;/P&gt;
  &lt;P&gt;Any help is welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 12:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429021#M1997802</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2021-06-18T12:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_TABLE - refresh sometimes does nothing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429022#M1997803</link>
      <description>&lt;P&gt;The reaction of the program seems to be a syncrhonous problem between ABAP / SAPGui, but ... you have put a flush ..  &lt;/P&gt;&lt;P&gt;Does the table corresponding to the SALV grid is global &amp;amp; in the same class  ?   &lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 14:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429022#M1997803</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-06-18T14:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_TABLE - refresh sometimes does nothing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429023#M1997804</link>
      <description>&lt;P&gt;Yes, the table is in the final class, the ALV object in its abstract super class.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 16:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429023#M1997804</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2021-06-18T16:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_TABLE - refresh sometimes does nothing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429024#M1997805</link>
      <description>&lt;P&gt;I found out, that the problem relates to the fact that I do a PAI/PBO turn afterwards (with leave screen). If the leave screen is not performed, the refresh works.&lt;/P&gt;&lt;P&gt;I tried to change the leave screen into a CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE( 'ENTER' ). This resolved the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 17:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429024#M1997805</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2021-06-18T17:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: CL_SALV_TABLE - refresh sometimes does nothing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429025#M1997806</link>
      <description>&lt;P&gt;I have no issue with this minimal (non-)reproducible code (double-click the line to delete):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT.
CLASS lcl_app DEFINITION.
  PUBLIC SECTION.
    METHODS main.
    METHODS on_double_click
      FOR EVENT double_click OF cl_salv_events_table
      IMPORTING row.
    DATA salv TYPE REF TO cl_salv_table.
    DATA flights TYPE TABLE OF sflight.
ENDCLASS.
CLASS lcl_app IMPLEMENTATION.
  METHOD main.
    SELECT * FROM sflight INTO TABLE @flights.
    cl_salv_table=&amp;gt;factory(
      EXPORTING
        r_container  = cl_gui_container=&amp;gt;screen0
      IMPORTING
        r_salv_table = salv
      CHANGING
        t_table      = flights ).
    salv-&amp;gt;get_functions( )-&amp;gt;set_all( ).
    DATA lo_events TYPE REF TO cl_salv_events_table.
    lo_events = salv-&amp;gt;get_event( ).
    SET HANDLER on_double_click FOR lo_events.
    salv-&amp;gt;get_sorts( )-&amp;gt;add_sort( columnname = 'CARRID' subtotal = 'X' ).
    salv-&amp;gt;get_aggregations( )-&amp;gt;add_aggregation( columnname = 'PRICE' ).
    salv-&amp;gt;display( ).
  ENDMETHOD.
  METHOD on_double_click.
    DELETE flights INDEX row.
    salv-&amp;gt;refresh( refresh_mode = if_salv_c_refresh=&amp;gt;full ).
  ENDMETHOD.
ENDCLASS.
PARAMETERS dummy.
DATA app TYPE REF TO lcl_app.
AT SELECTION-SCREEN OUTPUT.
  IF app IS NOT BOUND.
    app = NEW lcl_app( ).
    app-&amp;gt;main( ).
  ENDIF.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Jun 2021 17:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-salv-table-refresh-sometimes-does-nothing/m-p/12429025#M1997806</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-06-18T17:20:44Z</dc:date>
    </item>
  </channel>
</rss>

