<?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: Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592312#M864950</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;Calling Screens Internally from the Same ABAP Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any ABAP program that can have its own screens (type 1, M, or F), you can use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN &amp;lt;dynnr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement to call a screen and its subsequent sequence within that program. The flow logic of each screen calls dialog modules in the program that called the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the screen sequence ends, control returns to the statement after the original CALL SCREEN statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leaving a Screen Sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A screen sequence terminates when a screen ends and the defined next screen has the number 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can leave a single screen within a sequence using the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN &amp;lt;dynnr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement. These statements exit the current screen and call the defined next screen. If the next screen is screen 0, the entire screen sequence concludes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN xxx- It will go to a new screen. If u press back it will come back to the screen from where u have called the new screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN xxx - It will go to a new screen. If u press back it will NOT go back to the screen from where u have called the new screen instead it will exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2008 08:32:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-17T08:32:57Z</dc:date>
    <item>
      <title>Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592311#M864949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Pls tell me the diff bet leave screen/leave to screen  and call screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 08:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592311#M864949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T08:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592312#M864950</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;Calling Screens Internally from the Same ABAP Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any ABAP program that can have its own screens (type 1, M, or F), you can use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN &amp;lt;dynnr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement to call a screen and its subsequent sequence within that program. The flow logic of each screen calls dialog modules in the program that called the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the screen sequence ends, control returns to the statement after the original CALL SCREEN statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leaving a Screen Sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A screen sequence terminates when a screen ends and the defined next screen has the number 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can leave a single screen within a sequence using the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN &amp;lt;dynnr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement. These statements exit the current screen and call the defined next screen. If the next screen is screen 0, the entire screen sequence concludes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN xxx- It will go to a new screen. If u press back it will come back to the screen from where u have called the new screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN xxx - It will go to a new screen. If u press back it will NOT go back to the screen from where u have called the new screen instead it will exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 08:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592312#M864950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T08:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592313#M864951</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;&lt;U&gt;&lt;STRONG&gt;Leave Screen:-&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;LEAVE SCREEN&lt;/STRONG&gt; statement ends the current screen and calls the subsequent screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the system encounters the &amp;#147;SET SCREEN &amp;lt;screen #&amp;gt;&amp;#148; ABAP statement, it temporarily overrides the &amp;#147;Next Screen&amp;#148; attribute with this &amp;lt;screen #&amp;gt; and the PAI processing continues.  After all PAI modules are executed, the system goes to the PBO event of &lt;/P&gt;&lt;P&gt;     &amp;lt;screen #&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;LEAVE TO SCREEN:-&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#147;LEAVE TO SCREEN &amp;lt;screen #&amp;gt;&amp;#148; ABAP statement, terminates the screen&amp;#146;s PAI event and immediately goes to the PBO of &amp;lt;screen #&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;#147;LEAVE TO SCREEN &amp;lt;screen #&amp;gt; statement performs the functionality of two statements:  &amp;#147;SET SCREEN &amp;lt;screen #&amp;gt;&amp;#147; and &amp;#147;LEAVE SCREEN&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;&amp;#147;CALL SCREEN&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt; &amp;#147;CALL SCREEN &amp;lt;screen #&amp;gt;&amp;#148; ABAP statement, temporarily suspends the current screen&amp;#146;s PAI processing and immediately goes to the PBO event of &amp;lt;screen #&amp;gt;.  When control returns back to the &amp;#147;calling&amp;#148; screen, its PAI processing will resume.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 08:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592313#M864951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592314#M864952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Differences&lt;/P&gt;&lt;P&gt;1. Leave Screen     - Leaves  the current screen on which it is lying.&lt;/P&gt;&lt;P&gt;2. Leave to Screen - the Screen which need to be called .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module PAI.&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'CALL'.&lt;/P&gt;&lt;P&gt;leave screen .&lt;/P&gt;&lt;P&gt;call  screen 100.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;is same as&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is module PAI.&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'CALL'.&lt;/P&gt;&lt;P&gt;leave to screen 100.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 08:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592314#M864952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T08:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592315#M864953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;==&amp;gt; Determining the Next Screen&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next screen is entered statically in the screen attributes. &lt;/P&gt;&lt;P&gt;At runtime, you can temporarily override the static next screen using the SET SCREEN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;1. --&amp;gt; Static Screen Sequences&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can establish a static sequence of screens by entering a value in the Next&lt;/P&gt;&lt;P&gt;screen field of the screen attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you enter 0 or no value as the next screen, the system resumes processing&lt;/P&gt;&lt;P&gt;from the point at which the screen was initiated, once it has finished processing&lt;/P&gt;&lt;P&gt;the screen itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;2. --&amp;gt; Setting the Next Screen Dynamically&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SET SCREEN statement temporarily overwrites the Next screen attribute.&lt;/P&gt;&lt;P&gt;The screen must belong to the same program. The next screen is processed either when the current screen processing ends, or when you terminate it using the LEAVE SCREEN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To specify the next screen and leave the current screen in a single step, use the&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;3. --&amp;gt; Inserting Screen Sequences&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can insert a screen sequence. This adds another layer to a stack.&lt;/P&gt;&lt;P&gt;You insert a screen sequence using the CALL SCREEN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To interrupt processing of the current screen and branch to a new screen or&lt;/P&gt;&lt;P&gt;sequence of screens, use the CALL SCREEN statement. The screen must belong&lt;/P&gt;&lt;P&gt;to the same program.&lt;/P&gt;&lt;P&gt;In the program, the system constructs a stack.&lt;/P&gt;&lt;P&gt;To return to the statement following the CALL SCREEN statement, you can use&lt;/P&gt;&lt;P&gt;either SET SCREEN 0. LEAVE SCREEN. or LEAVE TO SCREEN 0. The screen&lt;/P&gt;&lt;P&gt;that called the other screen is then processed further.&lt;/P&gt;&lt;P&gt;If you use the above statements outside a call chain, the program terminates, and&lt;/P&gt;&lt;P&gt;control returns to the point from which it was called. You can also terminate a&lt;/P&gt;&lt;P&gt;program using the ABAP statement LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Points !!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 16:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592315#M864953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-19T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592316#M864954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;CALL SCREEN &amp;lt;sno&amp;gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN is used to insert a set of screen sequences dynamically. Processing will return to the current screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE SCREEN&lt;/P&gt;&lt;P&gt;LEAVE SCREEN will leave the processing of the current screen immediately and leave to the processing of the next screen which is defined either statically or dynamically. Processing will not return to the current screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN &amp;lt;sno&amp;gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN behaves like set screen + leave screen together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;palak behal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: palak behal on Mar 24, 2008 1:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 12:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen/m-p/3592316#M864954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T12:08:56Z</dc:date>
    </item>
  </channel>
</rss>

