<?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: LEAVE SCREEN not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296974#M789034</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;You have to use ON EXIT COMMAND in your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else use statements like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 0 or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set screen 0 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2008 06:03:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-15T06:03:16Z</dc:date>
    <item>
      <title>LEAVE SCREEN not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296971#M789031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the events EXIT and CANC which I use in module User command , I provided statement LEAVE SCREEN for these events, this works fine when I don't have any mandatory field on the screen, but if I use mandatory field the transaction does not exits the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 05:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296971#M789031</guid>
      <dc:creator>abhishek_katti</dc:creator>
      <dc:date>2008-01-15T05:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE SCREEN not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296972#M789032</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;if u make mandatory then u have to enter something in the input field other it wont work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its better to use leave to screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 05:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296972#M789032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T05:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE SCREEN not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296973#M789033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write your code inside a module (say EXIT) and in PAI of dat screen  write dis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module EXIT on EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pf-status of dat screen select the func types of back,exit as 'E'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 05:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296973#M789033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T05:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE SCREEN not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296974#M789034</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;You have to use ON EXIT COMMAND in your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else use statements like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 0 or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set screen 0 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 06:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296974#M789034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T06:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE SCREEN not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296975#M789035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
" in the flow logic of screen give the module as this
MODULE exit_0200 AT EXIT-COMMAND.
" now in the module write the code like this
MODULE exit_0200 INPUT.
CASE sy-ucomm.
  WHEN 'BACK' OR " make sure you give the function type as 'E'  for these function codes
       'CANC'. " when you define them in GUI Status
    IF NOT &amp;lt;mandatory FIELDS&amp;gt; is INITIAL.
      LEAVE TO SCREEN 0.
    ENDIF.
ENDCASE.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 06:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-screen-not-working/m-p/3296975#M789035</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-01-15T06:13:35Z</dc:date>
    </item>
  </channel>
</rss>

