<?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: Back from ALV Grid with multiple refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371218#M1543023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep track of what report level you are on and based on that either &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;leave to screen 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Nov 2010 16:20:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-11T16:20:34Z</dc:date>
    <item>
      <title>Back from ALV Grid with multiple refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371213#M1543018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a report that from a selection screen shows an editable ALV Grid, and after I save it, it will refresh the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is when I hit the BACK button it returns to the "previous grid" instead of the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
WHEN 'BACK_C'.
  LEAVE to SCREEN '0'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I force it to go back to the selection screen?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sidenote: I have tried using call &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen '1000'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; but it adds a new problem as in the selection screen hitting back will return to the grid and I can never exit the report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 14:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371213#M1543018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-11T14:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Back from ALV Grid with multiple refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371214#M1543019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the user command section you can set the flag exit of structure of type slis_selfield to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM user_command USING r_ucomm     LIKE sy-ucomm
                        rs_selfield TYPE slis_selfield.

  CASE r_ucomm.

    WHEN 'EXIT'.
      rs_selfield-exit = 'X'.

  ENDCASE.

ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 14:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371214#M1543019</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2010-11-11T14:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Back from ALV Grid with multiple refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371215#M1543020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try LEAVE TO SCREEN '1000'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 15:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371215#M1543020</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2010-11-11T15:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Back from ALV Grid with multiple refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371216#M1543021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither solution works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps, I'm refreshing the grid with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : ref_grid TYPE REF TO cl_gui_alv_grid.

  IF ref_grid IS INITIAL.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
      IMPORTING
        e_grid = ref_grid.
  ENDIF.

CALL METHOD ref_grid-&amp;gt;refresh_table_display( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems when I refresh the grid it generates a completely independent grid screen and there's no way to skip them all and return to the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 16:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371216#M1543021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-11T16:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Back from ALV Grid with multiple refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371217#M1543022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What i posted was just an example, you should replace EXIT with the user command from the exit button, of course. This works pretty well usually. Also, refresh could be done the same way, after save user command the flag refresh = 'X' does the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 16:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371217#M1543022</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2010-11-11T16:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Back from ALV Grid with multiple refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371218#M1543023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep track of what report level you are on and based on that either &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;leave to screen 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 16:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371218#M1543023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-11T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Back from ALV Grid with multiple refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371219#M1543024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did replace it by the back button, but the problem was another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was still a call to the &lt;EM&gt;'REUSE_ALV_GRID_DISPLAY'&lt;/EM&gt; function in the code, which forced the creation of a new &lt;EM&gt;ALV&lt;/EM&gt;. This is the expected behavior and a good one. I've replaced it with a call to refresh_table_display and now it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 16:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371219#M1543024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-11T16:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Back from ALV Grid with multiple refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371220#M1543025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice to hear, glad to be of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 16:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-from-alv-grid-with-multiple-refresh/m-p/7371220#M1543025</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2010-11-11T16:35:23Z</dc:date>
    </item>
  </channel>
</rss>

