<?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: Exit Process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031705#M717090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm, tried it.&lt;/P&gt;&lt;P&gt;it makes no difference to my code.&lt;/P&gt;&lt;P&gt;see, my concern is when the program goes back to the selection screen&lt;/P&gt;&lt;P&gt;and i do new selections it will just continue displaying the interrupted ALV display.&lt;/P&gt;&lt;P&gt;coz u see in my if block statement, if i had not put that, it will display the ALV&lt;/P&gt;&lt;P&gt;even it has no data in it.&lt;/P&gt;&lt;P&gt;that's what i'm trying to avoid.&lt;/P&gt;&lt;P&gt;so now i placed that if block so that if there are no records,&lt;/P&gt;&lt;P&gt;a message box will pop up and it will not display the ALV anymore.&lt;/P&gt;&lt;P&gt;instead will go back to my selection screen.&lt;/P&gt;&lt;P&gt;and it is a success.&lt;/P&gt;&lt;P&gt;BUT when i make new selections and execute,&lt;/P&gt;&lt;P&gt;it will continue to display the blank ALV that my if block statement previously interrupted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2007 02:50:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-26T02:50:50Z</dc:date>
    <item>
      <title>Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031701#M717086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have the following piece of code in my program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-dbcnt = 0.&lt;/P&gt;&lt;P&gt;    MESSAGE 'No record matches.' TYPE 'I'.&lt;/P&gt;&lt;P&gt;    CALL SELECTION-SCREEN '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the program meets that condition (sy-dbcnt = 0)&lt;/P&gt;&lt;P&gt;i should NOT continue to display the should be ALV for the report,&lt;/P&gt;&lt;P&gt;instead after displaying the message box it goes back to the selection.&lt;/P&gt;&lt;P&gt;now,&lt;/P&gt;&lt;P&gt;when i go back to the selection-screen 1000,&lt;/P&gt;&lt;P&gt;and execute whatever new selections i will make,&lt;/P&gt;&lt;P&gt;it just continues to the previously interrupted ALV grid display&lt;/P&gt;&lt;P&gt;regardless of whether i make a new selection or not.&lt;/P&gt;&lt;P&gt;how do i avoid that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 02:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031701#M717086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T02:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031702#M717087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its because you have been giving the message type as 'I' which is Information message.&lt;/P&gt;&lt;P&gt;On pressing Enter it continues with the next steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you give 'E' instead of 'I', it shoudl solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this what i understood from your post??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 02:12:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031702#M717087</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-10-26T02:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031703#M717088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gopi, &lt;/P&gt;&lt;P&gt;that would have been correct if i have this if block &lt;/P&gt;&lt;P&gt;inside my AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;unfortunately i have reasons why i don't put it in there.&lt;/P&gt;&lt;P&gt;that's why i use 'I' in my message statement so i can force the program to &lt;/P&gt;&lt;P&gt;go back to the selection screen.&lt;/P&gt;&lt;P&gt;(coz in the 'E' it wouldn't).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;laure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 02:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031703#M717088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T02:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031704#M717089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : t001.
PARAMETER : p_bukrs TYPE t001-bukrs.

START-OF-SELECTION.
  SELECT SINGLE * FROM t001 WHERE bukrs = p_bukrs.
  IF sy-subrc = 0.
  ELSE.
    MESSAGE i000(ztest_gopi) WITH 'Incorrect Company Code'.
  ENDIF.&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>Fri, 26 Oct 2007 02:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031704#M717089</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-10-26T02:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031705#M717090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm, tried it.&lt;/P&gt;&lt;P&gt;it makes no difference to my code.&lt;/P&gt;&lt;P&gt;see, my concern is when the program goes back to the selection screen&lt;/P&gt;&lt;P&gt;and i do new selections it will just continue displaying the interrupted ALV display.&lt;/P&gt;&lt;P&gt;coz u see in my if block statement, if i had not put that, it will display the ALV&lt;/P&gt;&lt;P&gt;even it has no data in it.&lt;/P&gt;&lt;P&gt;that's what i'm trying to avoid.&lt;/P&gt;&lt;P&gt;so now i placed that if block so that if there are no records,&lt;/P&gt;&lt;P&gt;a message box will pop up and it will not display the ALV anymore.&lt;/P&gt;&lt;P&gt;instead will go back to my selection screen.&lt;/P&gt;&lt;P&gt;and it is a success.&lt;/P&gt;&lt;P&gt;BUT when i make new selections and execute,&lt;/P&gt;&lt;P&gt;it will continue to display the blank ALV that my if block statement previously interrupted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 02:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031705#M717090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T02:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031706#M717091</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;Just change below code to&lt;/P&gt;&lt;P&gt;IF sy-dbcnt = 0.&lt;/P&gt;&lt;P&gt;MESSAGE 'No record matches.' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*CALL SELECTION-SCREEN '1000'.&amp;lt;/b&amp;gt; replace this with&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LEAVE LIST-PROCESSING.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 03:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031706#M717091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T03:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031707#M717092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok its because when you give the Call Selection-Screen statement, it calls the selection screen again. Once you see the selection screen after getting the information message, press BACK button and see it still shows you the previous selection screen.&lt;/P&gt;&lt;P&gt;Its because Information Message allows you to continue from the step where the program was interupted, where as in case of Error it does not. It will start right from the start again.&lt;/P&gt;&lt;P&gt;If possible try to avoid using an 'I' Information message, that should solve your problem.&lt;/P&gt;&lt;P&gt;Or you can use LEAVE to LIST_PROCESSING.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 03:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031707#M717092</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-10-26T03:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031708#M717093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the leave list processing works fine ONLY IF&lt;/P&gt;&lt;P&gt;it doesn't get me stuck to a blank new screen without back button or anything.&lt;/P&gt;&lt;P&gt;i can't use that unless i'm putting the if block statement in my &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN event.&lt;/P&gt;&lt;P&gt;which i'm afraid i won't do for certain reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say we put some code after the call selection-screen '1000'.&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which by the way doesn't work as well.&lt;/P&gt;&lt;P&gt;coz  tried.&lt;/P&gt;&lt;P&gt;any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 03:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031708#M717093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T03:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031709#M717094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i stand corrected guys,&lt;/P&gt;&lt;P&gt;the leave list processing works fine.&lt;/P&gt;&lt;P&gt;that's just what i'm looking for even if i use 'I' in my message statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks both of you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;laure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 03:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031709#M717094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T03:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exit Process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031710#M717095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laure,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should reward points to the all useful answers :).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 03:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-process/m-p/3031710#M717095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T03:51:56Z</dc:date>
    </item>
  </channel>
</rss>

