<?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: problem with two selection screens in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screens/m-p/8040866#M1610752</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;Why are you calling the second selection-screen in the AT SELECTION-SCREEN event?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call the second selection-screen in the START-OF-SELECTION event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to consider the event AT SELECTION-SCREEN will be triggered for every selection-screen, so you can risk a recursive call, that means an infinitive cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to call the second screen in that event you should check which the current screen is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.
  CASE SY-DYNNR.
    WHEN '2000'. MESSAGE I368(00) WITH 'Screen ' '200'.
    WHEN '1000'.
      CALL SELECTION-SCREEN 200.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Jul 21, 2011 4:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 14:10:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-21T14:10:19Z</dc:date>
    <item>
      <title>problem with two selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screens/m-p/8040865#M1610751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a two selection screens 1000 &amp;amp; 2000 in single report , which needs to be executed one after the other ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is when i execute second selection screen(2000) , the cursor is going back to at-selection-screen once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need to trigger start-of-selection directly after executing second selection screen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first selection screen 1000 will be executed with the help of select options..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sample code is below .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at-selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call selection screen 2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection screen on value request p_adm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main logic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 14:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screens/m-p/8040865#M1610751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T14:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: problem with two selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screens/m-p/8040866#M1610752</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;Why are you calling the second selection-screen in the AT SELECTION-SCREEN event?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call the second selection-screen in the START-OF-SELECTION event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to consider the event AT SELECTION-SCREEN will be triggered for every selection-screen, so you can risk a recursive call, that means an infinitive cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to call the second screen in that event you should check which the current screen is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.
  CASE SY-DYNNR.
    WHEN '2000'. MESSAGE I368(00) WITH 'Screen ' '200'.
    WHEN '1000'.
      CALL SELECTION-SCREEN 200.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Jul 21, 2011 4:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 14:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screens/m-p/8040866#M1610752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with two selection screens</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screens/m-p/8040867#M1610753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you defined the function keys for the screen 2000?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i believe you need to click on f8 when you are at the screen 2000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 14:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screens/m-p/8040867#M1610753</guid>
      <dc:creator>Shahid</dc:creator>
      <dc:date>2011-07-21T14:17:34Z</dc:date>
    </item>
  </channel>
</rss>

