<?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: user defined selection screen sequence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091822#M1507271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so let me present the code (or at least the most important parts) as Selva asked because using 'set screen 0' did not help. it is possible that I used it in wrong place so even more presenting code should help:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* some global data definition

*definition of mail sel.screen:
SELECTION-SCREEN BEGIN OF BLOCK selscr1
                 WITH FRAME TITLE text-001.
PARAMETERS: "select interface
     p_i001(4) as listbox visible length 20 OBLIGATORY DEFAULT 'XXX'.

SELECTION-SCREEN END   OF BLOCK selscr1.

*definiotion of following sel.screens;
SELECTION-SCREEN BEGIN OF SCREEN 1002.
  SELECTION-SCREEN BEGIN OF BLOCK selscr2 WITH FRAME TITLE text-001.
    PARAMETER: p_ws02(4) as listbox visible length 20 OBLIGATORY DEFAULT 'XXX'.
*    PARAMETER: p_t02 like GV_TABNAME DEFAULT 'zint_v_infin002'.
  SELECTION-SCREEN END   OF BLOCK selscr2.
SELECTION-SCREEN end OF SCREEN 1002.

SELECTION-SCREEN BEGIN OF SCREEN 1004.
  SELECTION-SCREEN BEGIN OF BLOCK selscr3 WITH FRAME TITLE text-001.
    PARAMETER: p_ws04(4) as listbox visible length 20 OBLIGATORY DEFAULT 'XXX'.
  SELECTION-SCREEN END   OF BLOCK selscr3.
SELECTION-SCREEN end OF SCREEN 1004.
*******************   END OF SCREENS ***********************************************************

AT SELECTION-SCREEN ON p_i001. "parameter from screen 1000
  CASE p_i001.
    WHEN '002'.
      call SELECTION-SCREEN 1002.
    WHEN '004'.
      call SELECTION-SCREEN 1004.

    WHEN OTHERS.
      CALL SELECTION-SCREEN 1000.
   ENDCASE.

*** some settings made basing on selections from following screens
AT selection-SCREEN on p_ws02.
  gv_werks = p_ws02.

AT selection-SCREEN on p_ws04.
  gv_werks = p_ws04.


INITIALIZATION
* filling listbox


 START-OF-SELECTION.
  CASE p_i001.
    WHEN '002'.
     "select 002 relevant data 
     "alv display
    WHEN '004'.
     "select 004 relevant data 
     "alv display
  ENDCASE.

  END-OF-SELECTION.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so as i mentioned before when i press 'back' on alv list I end up with screen 1000 instead 1004 (it's 1004 in real life not 9000). when i tried to change i was able to display 1004 selection when i pressed 'back' on alv but then instead of getting new list system takes ma back to 1000 scr again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pawel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 12:23:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-29T12:23:12Z</dc:date>
    <item>
      <title>user defined selection screen sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091819#M1507268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a kind of an issue with selection screens. Story goes like this. I have a main sel.screen (no 1000) where I have some selection list. Now based on this selection i display another sel.screen (with my given number, let's say 9000). Then i fill selection criterion on screen 9000 press F8 and I get results. So far so good. Now when i 'back' button system displays the first, initial sel.screen (1000) instead of the last displayed (9000). I've tried to modify this behaviour and I am able to display the last sel.screen (9000) after pressing 'back' button but then when i press 'F8' instead of results I get initial sel.screen (1000) again. Is there anything I could do to make it work in the way I want to ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pawel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 11:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091819#M1507268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-29T11:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: user defined selection screen sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091820#M1507269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you paste the code where you are checking the sy-ucomm (Ok_Code) in the screen 9000?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally, we will set the screen as 0 to go back as below:&lt;/P&gt;&lt;P&gt; Leave to screen 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to look into your code so that I can tell you an exact solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Selva K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 11:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091820#M1507269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-29T11:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: user defined selection screen sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091821#M1507270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use set screen 0 instead of leave to screen 1000 or call screen 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because all called statments will make a stake and on back it will go back from where it was called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 12:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091821#M1507270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-29T12:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: user defined selection screen sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091822#M1507271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so let me present the code (or at least the most important parts) as Selva asked because using 'set screen 0' did not help. it is possible that I used it in wrong place so even more presenting code should help:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* some global data definition

*definition of mail sel.screen:
SELECTION-SCREEN BEGIN OF BLOCK selscr1
                 WITH FRAME TITLE text-001.
PARAMETERS: "select interface
     p_i001(4) as listbox visible length 20 OBLIGATORY DEFAULT 'XXX'.

SELECTION-SCREEN END   OF BLOCK selscr1.

*definiotion of following sel.screens;
SELECTION-SCREEN BEGIN OF SCREEN 1002.
  SELECTION-SCREEN BEGIN OF BLOCK selscr2 WITH FRAME TITLE text-001.
    PARAMETER: p_ws02(4) as listbox visible length 20 OBLIGATORY DEFAULT 'XXX'.
*    PARAMETER: p_t02 like GV_TABNAME DEFAULT 'zint_v_infin002'.
  SELECTION-SCREEN END   OF BLOCK selscr2.
SELECTION-SCREEN end OF SCREEN 1002.

SELECTION-SCREEN BEGIN OF SCREEN 1004.
  SELECTION-SCREEN BEGIN OF BLOCK selscr3 WITH FRAME TITLE text-001.
    PARAMETER: p_ws04(4) as listbox visible length 20 OBLIGATORY DEFAULT 'XXX'.
  SELECTION-SCREEN END   OF BLOCK selscr3.
SELECTION-SCREEN end OF SCREEN 1004.
*******************   END OF SCREENS ***********************************************************

AT SELECTION-SCREEN ON p_i001. "parameter from screen 1000
  CASE p_i001.
    WHEN '002'.
      call SELECTION-SCREEN 1002.
    WHEN '004'.
      call SELECTION-SCREEN 1004.

    WHEN OTHERS.
      CALL SELECTION-SCREEN 1000.
   ENDCASE.

*** some settings made basing on selections from following screens
AT selection-SCREEN on p_ws02.
  gv_werks = p_ws02.

AT selection-SCREEN on p_ws04.
  gv_werks = p_ws04.


INITIALIZATION
* filling listbox


 START-OF-SELECTION.
  CASE p_i001.
    WHEN '002'.
     "select 002 relevant data 
     "alv display
    WHEN '004'.
     "select 004 relevant data 
     "alv display
  ENDCASE.

  END-OF-SELECTION.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so as i mentioned before when i press 'back' on alv list I end up with screen 1000 instead 1004 (it's 1004 in real life not 9000). when i tried to change i was able to display 1004 selection when i pressed 'back' on alv but then instead of getting new list system takes ma back to 1000 scr again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pawel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 12:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091822#M1507271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-29T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: user defined selection screen sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091823#M1507272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, i've solved it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 13:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-defined-selection-screen-sequence/m-p/7091823#M1507272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T13:05:22Z</dc:date>
    </item>
  </channel>
</rss>

