<?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 Selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4952259#M1154683</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;I got  to  call &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection screen 1 -&amp;gt; selection screen 2-&amp;gt; smart form&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;in middle if i click on selection screeen 2's BACK button  i am getting the smart form trigger instead of selection screen 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Where to handle that BACK button .If there is some example mentioned it will be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ivneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 19:35:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-11T19:35:22Z</dc:date>
    <item>
      <title>Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4952259#M1154683</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;I got  to  call &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection screen 1 -&amp;gt; selection screen 2-&amp;gt; smart form&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;in middle if i click on selection screeen 2's BACK button  i am getting the smart form trigger instead of selection screen 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Where to handle that BACK button .If there is some example mentioned it will be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ivneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 19:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4952259#M1154683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4952260#M1154684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems Standard Back functionality getting triggered for screen 2.&lt;/P&gt;&lt;P&gt;I think by creating a SET-PF-STATUS for "screen 2" and  and having custom Back(from SE41) at the place of Back(standard) button you may handle and call smart form.&lt;/P&gt;&lt;P&gt;Code would be looks like.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;case sy-ucom.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;When 'BACK'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;handle smartforms here.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endcase.&lt;/EM&gt;&lt;EM&gt;Code should be in PAI of screen 2.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 20:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4952260#M1154684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T20:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4952261#M1154685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have two screens 1001 and 1002 (as the two selection screens).&lt;/P&gt;&lt;P&gt;For this make a PF-STATUS and in the PBO of the screens.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PF-STATUS 'ZXY_PFSTA'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI of screen 1001, you handle event and goto screen 1002.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : ok_code TYPE sy-ucomm.
ok-code = sy-ucomm.

CASE ok_code.
 WHEN 'NEXT'. "say the button on which you goto screen 1002
  CALL SCREEN 1002.
 WHEN 'EXIT'. "say you want to leave the program
*for EXIT button take function type as 'E'
  LEAVE PROGRAM.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI of screen 1002, you can handle the 'BACK' event and go back to screen 1001.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : ok_code TYPE sy-ucomm.
ok-code = sy-ucomm.

CASE ok_code.
 WHEN 'SF'. "say the button on which you goto screen 1003 for displaying SMARTFORM.
  CALL SCREEN 1003.
 WHEN 'BACK'. "say you want to leave the program
  LEAVE TO SCREEN 0. "the initial screen of the program (i.e., first screen 1001)
 WHEN 'EXIT'. "say you want to leave the program
*for EXIT button take function type as 'E'
  LEAVE PROGRAM.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 03:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/4952261#M1154685</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2008-12-12T03:45:41Z</dc:date>
    </item>
  </channel>
</rss>

