<?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: ABAP Program shows a Screen which calls a Function which call another screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14102331#M2041840</link>
    <description>&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;In PAI I forgot to purge the ALV Object instance before LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;So it persisted despite&amp;nbsp;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;MODULE pai0101 INPUT.&lt;BR /&gt;&amp;nbsp; IF sy-ucomm EQ 'SAIR'.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IF grid1 IS NOT INITIAL.&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALL METHOD grid1-&amp;gt;free.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CLEAR: grid1, g_handler.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ENDIF.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LEAVE TO SCREEN 0.&lt;BR /&gt;&amp;nbsp; ENDIF.&lt;BR /&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 10:38:29 GMT</pubDate>
    <dc:creator>rodrigok</dc:creator>
    <dc:date>2025-05-15T10:38:29Z</dc:date>
    <item>
      <title>ABAP Program shows a Screen which calls a Function which call another screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14101303#M2041832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wrote a program which shows a screen.&lt;/P&gt;&lt;P&gt;I calls a function which shows its own screen.&lt;/P&gt;&lt;P&gt;When LEAVE TO SCREEN 0 is executes in the function the screen of the program is not shown again.&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;Program:&lt;/P&gt;&lt;P&gt;CALL SCREEN 0100&lt;/P&gt;&lt;P&gt;In PAI: CALL FUNCTION 'XXX'&lt;/P&gt;&lt;P&gt;Function 'XXX'&lt;/P&gt;&lt;P&gt;CALL SCREEN 0101&lt;/P&gt;&lt;P&gt;In PAI: LEAVE TO SCREEN 0&lt;/P&gt;&lt;P&gt;It returns to programa but the screen 0100 is not shown.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 12:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14101303#M2041832</guid>
      <dc:creator>rodrigok</dc:creator>
      <dc:date>2025-05-14T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Program shows a Screen which calls a Function which call another screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14101348#M2041833</link>
      <description>&lt;P&gt;First please debug. Also, what means 0100 is not shown? What is shown? Where do you go after CALL FUNCTION 'XXX'? Make sure a next screen is defined in the attributes of the dynpro 0100, and that you don't execute LEAVE TO SCREEN 0 or SET SCREEN 0 during the PAI of screen 0100. There are lots of other reasons why a screen is not displayed (LEAVE PROGRAM, etc.)&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 13:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14101348#M2041833</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2025-05-14T13:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Program shows a Screen which calls a Function which call another screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14101364#M2041834</link>
      <description>&lt;P&gt;&lt;SPAN&gt;About your question: "what means 0100 is not shown?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After LEAVE TO SCREEN 0 the screen 0101 is shown again. Instead of 0100.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 13:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14101364#M2041834</guid>
      <dc:creator>rodrigok</dc:creator>
      <dc:date>2025-05-14T13:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Program shows a Screen which calls a Function which call another screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14102331#M2041840</link>
      <description>&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;In PAI I forgot to purge the ALV Object instance before LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;So it persisted despite&amp;nbsp;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;MODULE pai0101 INPUT.&lt;BR /&gt;&amp;nbsp; IF sy-ucomm EQ 'SAIR'.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IF grid1 IS NOT INITIAL.&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALL METHOD grid1-&amp;gt;free.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CLEAR: grid1, g_handler.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ENDIF.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LEAVE TO SCREEN 0.&lt;BR /&gt;&amp;nbsp; ENDIF.&lt;BR /&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 10:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-shows-a-screen-which-calls-a-function-which-call-another/m-p/14102331#M2041840</guid>
      <dc:creator>rodrigok</dc:creator>
      <dc:date>2025-05-15T10:38:29Z</dc:date>
    </item>
  </channel>
</rss>

