<?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: method executing multiple times when BACK button is selected in custom container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487676#M1931776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a silly question, but did you try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 9001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2016 10:52:08 GMT</pubDate>
    <dc:creator>PeterJonker</dc:creator>
    <dc:date>2016-02-01T10:52:08Z</dc:date>
    <item>
      <title>method executing multiple times when BACK button is selected in custom container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487675#M1931775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have developed a Zreport with two custom containers(on screen 9001) as shown below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/878256" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i click a record(hot spot click) on second container,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are calling another screen 9002 with container3 as shown below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/878257" width="450" /&gt;&lt;/P&gt;&lt;P&gt;however the issue is when i click BACK button on screen 9002 , it's not coming back to screen 9001 in one go,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was forced to click the BACK button multiple times, how do i eliminate this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code when BACK...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L1S52"&gt;MODULE USER_COMMAND_9002 &lt;SPAN class="L1S52"&gt;INPUT&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;case&lt;/SPAN&gt; sy-ucomm.&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;when&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'BACK'&lt;/SPAN&gt; .&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;LEAVE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;to&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;SCREEN&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;0&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDCASE&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L1S52"&gt;ENDMODULE&lt;/SPAN&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S31"&gt;" USER_COMMAND_9002&amp;nbsp; INPUT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call METHOD custom3-&amp;gt;free.&lt;BR /&gt; &lt;SPAN class="L1S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call METHOD grid3-&amp;gt;free.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L1S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L1S31"&gt;*&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L1S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clear : custom3,grid3.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;&lt;SPAN class="L1S31"&gt;* free:custom3,grid3.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;&lt;SPAN class="L1S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;&lt;SPAN class="L1S31"&gt;but did not work with this also..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;&lt;SPAN class="L1S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;&lt;SPAN class="L1S31"&gt;any suggestions...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;&lt;SPAN class="L1S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S31"&gt;&lt;SPAN class="L1S31"&gt;thanks in advance...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487675#M1931775</guid>
      <dc:creator>former_member185116</dc:creator>
      <dc:date>2016-02-01T10:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: method executing multiple times when BACK button is selected in custom container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487676#M1931776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a silly question, but did you try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 9001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487676#M1931776</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2016-02-01T10:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: method executing multiple times when BACK button is selected in custom container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487677#M1931777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; i tried with LEAVE TO SCREEN 9001 also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487677#M1931777</guid>
      <dc:creator>former_member185116</dc:creator>
      <dc:date>2016-02-01T10:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: method executing multiple times when BACK button is selected in custom container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487678#M1931778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you set pf-status in PBO of that screen. If not do so and under function keys for the back button write the fcode 'BACK'. This will solve the problem. And in PAI write the leave to screen statement for 'BACK' user command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/878298" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Taiyeb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487678#M1931778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-01T11:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: method executing multiple times when BACK button is selected in custom container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487679#M1931779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the statement that you use to display screens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL Screen xxxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally when you call something (you call a function,&amp;nbsp; or your call a subroutine etc) the location of the call is pushed onto a stack.&amp;nbsp; When you exit that subroutine or function processing continues at the point immediately after the Call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screens are exactly the same.&amp;nbsp; mWhen you CALL a screen the current screen is pushed onto a stack.&amp;nbsp; When you specify that you wish to leave to screen 0, this is SAP convention for saying 'return to the previous screen',&amp;nbsp; which is popped off of the stack,&amp;nbsp; so to leave to another screen you need to specify that screen number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found that the combined form of 'Leave To Screen xxxx' to be a bit flaky so I always use the two statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Set Screen 9001.&lt;/P&gt;
&lt;P&gt;Leave Screen.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also make your third screen a window rather than a full screen,&amp;nbsp; either by using a docking container or by using the 'Starting At',&amp;nbsp; 'Ending At' clauses of the call screen statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487679#M1931779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-01T11:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: method executing multiple times when BACK button is selected in custom container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487680#M1931780</link>
      <description>&lt;P&gt;Hi Vinay,&lt;/P&gt;&lt;P&gt;I have similar issue rn. Can you please guide if you found a fix? &lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sairam&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 03:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/method-executing-multiple-times-when-back-button-is-selected-in-custom/m-p/11487680#M1931780</guid>
      <dc:creator>sidda1196</dc:creator>
      <dc:date>2021-08-14T03:13:14Z</dc:date>
    </item>
  </channel>
</rss>

