<?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 Terminate Program in OOPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/terminate-program-in-oops/m-p/11128263#M1905288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am new to ABAP and ABAP with oops concept. now i have program in which i am calling one public method of local class.&lt;/P&gt;&lt;P&gt;This local class is placed inside other INCLUDES. i am calling it from main program.&lt;/P&gt;&lt;P&gt;now from this public method many private method is being called in some sequence . now i have situation, if in this some private method, data is not found then i need to stop execution of program with specific message and redirect user to selection screen so he/she can input other data.&lt;/P&gt;&lt;P&gt;i tried to use "STOP" but it is not supported in Object Oriented.&lt;/P&gt;&lt;P&gt;EXIT is also not working as it is just getting exited from that inner method.program is still executing&lt;/P&gt;&lt;P&gt;and i can not create global exception and message class.&lt;/P&gt;&lt;P&gt;so is it possible to create local custom exception class?&lt;/P&gt;&lt;P&gt;if yes then how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 05:29:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-06-11T05:29:13Z</dc:date>
    <item>
      <title>Terminate Program in OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/terminate-program-in-oops/m-p/11128263#M1905288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am new to ABAP and ABAP with oops concept. now i have program in which i am calling one public method of local class.&lt;/P&gt;&lt;P&gt;This local class is placed inside other INCLUDES. i am calling it from main program.&lt;/P&gt;&lt;P&gt;now from this public method many private method is being called in some sequence . now i have situation, if in this some private method, data is not found then i need to stop execution of program with specific message and redirect user to selection screen so he/she can input other data.&lt;/P&gt;&lt;P&gt;i tried to use "STOP" but it is not supported in Object Oriented.&lt;/P&gt;&lt;P&gt;EXIT is also not working as it is just getting exited from that inner method.program is still executing&lt;/P&gt;&lt;P&gt;and i can not create global exception and message class.&lt;/P&gt;&lt;P&gt;so is it possible to create local custom exception class?&lt;/P&gt;&lt;P&gt;if yes then how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 05:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/terminate-program-in-oops/m-p/11128263#M1905288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-11T05:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Terminate Program in OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/terminate-program-in-oops/m-p/11128264#M1905289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, exceptions are right way to your problem. And yes local exception class are possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is nice example: &lt;A href="http://zevolving.com/2011/12/class-based-exception/" title="http://zevolving.com/2011/12/class-based-exception/"&gt;http://zevolving.com/2011/12/class-based-exception/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this might help too: &lt;A href="http://help.sap.com/abapdocu_731/en/abenabap_exceptions.htm" title="http://help.sap.com/abapdocu_731/en/abenabap_exceptions.htm"&gt;ABAP Exception Handling Documentation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 05:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/terminate-program-in-oops/m-p/11128264#M1905289</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2015-06-11T05:53:17Z</dc:date>
    </item>
  </channel>
</rss>

