<?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: screen to selection screen flow issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-to-selection-screen-flow-issue/m-p/2988955#M705923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for me, please try this code:&lt;/P&gt;&lt;P&gt;It retains the values from the second selection screen 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second screen, you need to press the run button to go back to the main selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTEST_NP.

TABLES SSCRFIELDS.

DATA functxt TYPE smp_dyntxt.

PARAMETERS: P_NUM1 TYPE I.
SELECTION-SCREEN FUNCTION KEY 5.

SELECTION-SCREEN: BEGIN OF SCREEN 200.
PARAMETERS: P_NUM2 TYPE I.
SELECTION-SCREEN: END   OF SCREEN 200.


INITIALIZATION.
  functxt-quickinfo = 'Screen 200'.
  functxt-icon_text = 'Screnn 200'.
  sscrfields-functxt_05 = functxt.

AT SELECTION-SCREEN.
  CASE SSCRFIELDS-ucomm.
    WHEN 'FC05'.
      CALL selection-SCREEN 200 starting at 10 10.
  ENDCASE.

START-OF-SELECTION.
  WRITE: / 'num1', P_NUM1,
         / 'num2', P_NUM2.&lt;/CODE&gt;&lt;/PRE&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>Mon, 29 Oct 2007 18:13:49 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-10-29T18:13:49Z</dc:date>
    <item>
      <title>screen to selection screen flow issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-to-selection-screen-flow-issue/m-p/2988954#M705922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a selection screen 1000 which contains fields, execute button and a custom buttom FC01. When I click on the button FC01, it takes me to another screen 200. When I go back to selection screen from screen using BACK button, I am not able to hit the execute button to run report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I am doing for flow of screen 200. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;case save_ok.
when 'BACK': call selection-screen 1000. leave to screen 1000.

I have also tried 
when 'BACK': set screen 1000. leave screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both do nothing the first time I press execute button, the second time I press it they give out errors. It seems after I press the BACK button from the screen 200 to move into selection screen 1000. The flow is still in screen 200 as when I check sy-dynnr .. its still equals 200. I need to be able to go  back to the selection screen 1000 from screen 200 and still retain the input that was entered by user. Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 17:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-to-selection-screen-flow-issue/m-p/2988954#M705922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T17:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: screen to selection screen flow issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-to-selection-screen-flow-issue/m-p/2988955#M705923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for me, please try this code:&lt;/P&gt;&lt;P&gt;It retains the values from the second selection screen 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second screen, you need to press the run button to go back to the main selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTEST_NP.

TABLES SSCRFIELDS.

DATA functxt TYPE smp_dyntxt.

PARAMETERS: P_NUM1 TYPE I.
SELECTION-SCREEN FUNCTION KEY 5.

SELECTION-SCREEN: BEGIN OF SCREEN 200.
PARAMETERS: P_NUM2 TYPE I.
SELECTION-SCREEN: END   OF SCREEN 200.


INITIALIZATION.
  functxt-quickinfo = 'Screen 200'.
  functxt-icon_text = 'Screnn 200'.
  sscrfields-functxt_05 = functxt.

AT SELECTION-SCREEN.
  CASE SSCRFIELDS-ucomm.
    WHEN 'FC05'.
      CALL selection-SCREEN 200 starting at 10 10.
  ENDCASE.

START-OF-SELECTION.
  WRITE: / 'num1', P_NUM1,
         / 'num2', P_NUM2.&lt;/CODE&gt;&lt;/PRE&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>Mon, 29 Oct 2007 18:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-to-selection-screen-flow-issue/m-p/2988955#M705923</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-10-29T18:13:49Z</dc:date>
    </item>
  </channel>
</rss>

