<?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: BACK function key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384938#M1643214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood your problem correctly , then i guess you need to write below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Understanding of your issue : screen 100 -&amp;gt; pop up screen 200 -&amp;gt;screen 300 and when you click "BACK" Button from screen 300, you want to go back to screen 100 instead of screen 200's pop up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution :      Please write below code before calling SCREEN 300.&lt;/P&gt;&lt;P&gt;                  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IN PAI OF screen 200. 
                IF Ok_code_200 EQ 'OK'
                   SET SCREEN 0.
                   CALL SCREEN 300.
                     " write your logic....
               ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;         &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In  PAI of 300, write below code.
	PROCESS AFTER INPUT.
	MODULE exit_command_305 AT EXIT-COMMAND.
      (IN PF-STATUS of screen 300 - while maintaining Function Code, Write Function type as 'E' for "Back" button )
	MODULE exit_command_305 INPUT.
	  IF ok_code_305 EQ 'CANCEL'.
	    LEAVE TO SCREEN 0.
	  ENDIF.
	ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul Mahajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2011 06:12:04 GMT</pubDate>
    <dc:creator>rahul_mahajan</dc:creator>
    <dc:date>2011-11-07T06:12:04Z</dc:date>
    <item>
      <title>BACK function key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384932#M1643208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a ALV grid display ..using button I am moving to another screen 200...then again click on button moving to screen 300 which &lt;/P&gt;&lt;P&gt;displays a ALV List.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But a 'BACK' Function Key is there in screen 300. BUT this is not working.ON clicking this back button its going to a hibernate kind&lt;/P&gt;&lt;P&gt;of state.Actually screen 300 PAI is not getting executed on clicking back button &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ give a solun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 21:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384932#M1643208</guid>
      <dc:creator>KumarVishal</dc:creator>
      <dc:date>2011-11-04T21:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: BACK function key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384933#M1643209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give the code extracts for each screen's PAI events ? What are the Fcodes u r using for BACK button on each screen ? Give different names to OK_CODES in each screen under elements tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code extracts of USER_COMMAND for each screen will be of help to find out the cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 04:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384933#M1643209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-05T04:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: BACK function key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384934#M1643210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check that in gui status of screen 300 you have defined BACK button or not and if defined please check the attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 08:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384934#M1643210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-05T08:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: BACK function key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384935#M1643211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. CHeck your PF STATUS. IF BACK BUTTON IS ACTIVE THERE.&lt;/P&gt;&lt;P&gt;ALL YOU HAVE TO DO IS to write acode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY_UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'BACK'.&lt;/P&gt;&lt;P&gt;Leave to screen -&amp;lt;YOUR PREVIOUS SCREEN NAME&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if find it useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 10:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384935#M1643211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-05T10:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: BACK function key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384936#M1643212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using BACK as function key ...so FCODE is "BACK"....and tried giving different ok_codes to all screen.&lt;/P&gt;&lt;P&gt;What not solved...&lt;/P&gt;&lt;P&gt;Actually I am moving from screen 200 to 300 ..but when i am leaving back to screen 100 ...the screen 200 pop-up remains.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 18:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384936#M1643212</guid>
      <dc:creator>KumarVishal</dc:creator>
      <dc:date>2011-11-05T18:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: BACK function key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384937#M1643213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually in screen 300 I am displaying a alv using "REUSE_ALV_LIST_DISPLAY"... this is in PBO of screen..&lt;/P&gt;&lt;P&gt;ON click back function key it is never going to the PAI of the screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO do I need to pass some ...user action or command alos to REUSE_ALV_LIST_DISPLAY function module..&lt;/P&gt;&lt;P&gt;there is a field for that???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 18:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384937#M1643213</guid>
      <dc:creator>KumarVishal</dc:creator>
      <dc:date>2011-11-05T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: BACK function key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384938#M1643214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood your problem correctly , then i guess you need to write below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Understanding of your issue : screen 100 -&amp;gt; pop up screen 200 -&amp;gt;screen 300 and when you click "BACK" Button from screen 300, you want to go back to screen 100 instead of screen 200's pop up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution :      Please write below code before calling SCREEN 300.&lt;/P&gt;&lt;P&gt;                  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IN PAI OF screen 200. 
                IF Ok_code_200 EQ 'OK'
                   SET SCREEN 0.
                   CALL SCREEN 300.
                     " write your logic....
               ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;         &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In  PAI of 300, write below code.
	PROCESS AFTER INPUT.
	MODULE exit_command_305 AT EXIT-COMMAND.
      (IN PF-STATUS of screen 300 - while maintaining Function Code, Write Function type as 'E' for "Back" button )
	MODULE exit_command_305 INPUT.
	  IF ok_code_305 EQ 'CANCEL'.
	    LEAVE TO SCREEN 0.
	  ENDIF.
	ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul Mahajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 06:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/back-function-key/m-p/8384938#M1643214</guid>
      <dc:creator>rahul_mahajan</dc:creator>
      <dc:date>2011-11-07T06:12:04Z</dc:date>
    </item>
  </channel>
</rss>

