<?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: Ho to back on selection screen using BACK button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386511#M1404034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Just use&lt;/P&gt;&lt;P&gt;when 'BACK'. &lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;this will work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2009 07:24:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-01T07:24:09Z</dc:date>
    <item>
      <title>Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386493#M1404016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Salute.&lt;/P&gt;&lt;P&gt;I have a program which contains 3 screens:&lt;/P&gt;&lt;P&gt;1st -- selection screen.&lt;/P&gt;&lt;P&gt;2nd -- my screen, I called it 1002, When I press F8 button on I get on it. I am using cl_gui_alv_grid there with my own buttons. So when I press MY OWN the save button I get the 3d screen&lt;/P&gt;&lt;P&gt;3d -- my own screen with some labels (screen name 1001).&lt;/P&gt;&lt;P&gt;So when i press BACK button on the third screen I want to back on selection screen and skip second screen, but I can't, I think the problem is in the cl_gui_alv_grid because I use custom grid handler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD handle_user_command.&lt;/P&gt;&lt;P&gt;    DATA :&lt;/P&gt;&lt;P&gt;        ls_selected TYPE lvc_s_roid,&lt;/P&gt;&lt;P&gt;        lt_selected TYPE lvc_t_roid.&lt;/P&gt;&lt;P&gt;    CASE e_ucomm.&lt;/P&gt;&lt;P&gt;      WHEN 'QSAVE'.&lt;/P&gt;&lt;P&gt;        PERFORM save_data.&lt;/P&gt;&lt;P&gt;        CALL SCREEN 1001.&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kernel.panic on Nov 24, 2009 6:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386493#M1404016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T05:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386494#M1404017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Save Our Environment. Save Yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Kernel,&lt;/P&gt;&lt;P&gt;Try writing code for BACK also, as calling the first screen directly, as you wrote the code for QSAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I'm not an environmentalist.  I'm an Earth warrior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386494#M1404017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T05:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386495#M1404018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the next:&lt;/P&gt;&lt;P&gt;      SET SCREEN 0.&lt;/P&gt;&lt;P&gt;      LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;doesn't work &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386495#M1404018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T05:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386496#M1404019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Save Our Environment. Save Yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Kernel,&lt;/P&gt;&lt;P&gt;Try giving &lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN xxxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I'm not an environmentalist.  I'm an Earth warrior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386496#M1404019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T05:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386497#M1404020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kernal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To go back to the First Screen (Selection Scree) use&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LEAVE TO SCREEN 0. " This makes the Program to go back from where it had started&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or Create a Tcode for your program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE e_ucomm.
WHEN 'BACK'.
LEAVE TO TRANSACTION 'YOUR TCODE HERE' . " This will take you back to your Selection Screen
WHEN 'QSAVE'.
PERFORM save_data.
CALL SCREEN 1001.
WHEN OTHERS.
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386497#M1404020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T05:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386498#M1404021</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF SY-UCOMM EQ 'BACK'.
  CALL SELECTION-SCREEN 1000.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386498#M1404021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T05:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386499#M1404022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kernel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When 'BACK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN &amp;lt;dynnr- ur selection-screen number&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 05:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386499#M1404022</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-11-24T05:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386500#M1404023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answers, but&lt;/P&gt;&lt;P&gt;LEAVE TO TRANSACTION 'YOUR TCODE HERE' works but selection screen values not retrieved.&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN 1000. works too, but when I get on the selection screen and press there BACK button it will returned me to the previous screen (1001 in my case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is interesting thing: if I use standart SAVE button in the screen 1001 and If I set SET SCREEN 0. in the 1002 screen initialization the BACK button will return me on the selection screen, Exactly what I wanted. But I use custom save button on the grid I think it rewrites the state or something like and operator SET SCREEN 0.doesn't work in that case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386500#M1404023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386501#M1404024</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;Try using:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET SCREEN 1000.
LEAVE SCREEN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386501#M1404024</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-11-24T06:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386502#M1404025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tarun, it occurs an error, Must use CALL SELECTION-SCREEN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386502#M1404025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T06:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386503#M1404026</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;PRE&gt;&lt;CODE&gt;
CALL SELECTION-SCREEN 1000. works too, but when I get on the selection screen and press there BACK button it will returned me to the previous screen (1001 in my case)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the back button present in the scelection screen write &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Leave Program.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it will come out of the screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386503#M1404026</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-11-24T06:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386504#M1404027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LEAVE PROGRAM. " exit from the program, it will not return me to the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think similar problem was discussed here: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4958799"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I didn't understand how to close the screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386504#M1404027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T06:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386505#M1404028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kernel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean to say is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For teh BACK button on 3rd screen write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN &amp;lt;dynnr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the BACK button on selection screen write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swarna Munukoti on Nov 24, 2009 8:02 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swarna Munukoti on Nov 24, 2009 8:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 07:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386505#M1404028</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-11-24T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386506#M1404029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, got it. good workaround &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 07:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386506#M1404029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T07:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386507#M1404030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BACK button doesn't work on the selection screen if I call selection screen programmatically &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 07:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386507#M1404030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T07:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386508#M1404031</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;Did you program for the BACK button on the selection screen?&lt;/P&gt;&lt;P&gt;You can find the PBO and PAI for the selection screen.&lt;/P&gt;&lt;P&gt;Code for your button there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 08:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386508#M1404031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T08:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386509#M1404032</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;Yes, when you called back button from selection screen, the PAI of thrid screen is getting called. So it is not wokring&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this one: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a flag globally: fg_selscrn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in third screen PAI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'BACK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fg_selscrn is initial.&lt;/P&gt;&lt;P&gt;fg_selscrn = 'X'.&lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN &amp;lt;dynnr&amp;gt; .&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;clear fg_selscrn.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 10:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386509#M1404032</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-11-24T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386510#M1404033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before displaying the second screen, you can try using the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By doing this, the control will go back to your selection screen and the you can call the required screen for ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the sequence will be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Execute the Report&lt;/P&gt;&lt;P&gt;2. Call the screen or Do the Processing&lt;/P&gt;&lt;P&gt;3. Before calling the third screen leave back to list processing and return to screen 0.&lt;/P&gt;&lt;P&gt;4. Call the third screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you press back button the control goes back into the first screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 13:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386510#M1404033</guid>
      <dc:creator>sreejithmohanm</dc:creator>
      <dc:date>2009-11-30T13:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386511#M1404034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Just use&lt;/P&gt;&lt;P&gt;when 'BACK'. &lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;this will work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 07:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386511#M1404034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T07:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to back on selection screen using BACK button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386512#M1404035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) To return to the selection screen use this:&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) To quit the selection screen via the back button:&lt;/P&gt;&lt;P&gt;For the selection screen you have a specific event to handle the quiting of your program.&lt;/P&gt;&lt;P&gt;Use this for exiting the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The combination of these two did the trick for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 14:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ho-to-back-on-selection-screen-using-back-button/m-p/6386512#M1404035</guid>
      <dc:creator>tomcockaert2</dc:creator>
      <dc:date>2011-09-21T14:57:28Z</dc:date>
    </item>
  </channel>
</rss>

