<?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 Raise xception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203941#M763750</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;whats the use of raise exception in fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from tnamme .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raise abcd.&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;&lt;/P&gt;&lt;P&gt;whats the use if raise abcd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2007 14:28:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-26T14:28:23Z</dc:date>
    <item>
      <title>Raise xception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203941#M763750</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;whats the use of raise exception in fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from tnamme .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raise abcd.&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;&lt;/P&gt;&lt;P&gt;whats the use if raise abcd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 14:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203941#M763750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Raise xception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203942#M763751</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;For example, if you try to divide any numer with Zero it will raise an exception, and it will go for ABAP dump. Instead of going to dump. In raise event  u can give your own description of the error and avoid the program for dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram POnna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 14:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203942#M763751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T14:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Raise xception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203943#M763752</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;one can define their own error message or exception.&lt;/P&gt;&lt;P&gt;And hence if at all error occurs it will be easy for us to identify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, it is used for trapping the error before it goes to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 14:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203943#M763752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T14:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Raise xception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203944#M763753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAISE statement is used to raise an exception from within the FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you might know, a FM is always called from somewhere (a calling program) and cannot execute on its own. So, when the FM comes across a situation where it wants to raise an exception it raises it using RAISE statement and this is passed on to the calling program by a non-zero SY-SUBRC value. This exception must be defined in the EXCEPTIONS tab of the FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM, optionally, can handle the situation but if it wants the calling program to handle the situation, RAISE statement does the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 21:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-xception/m-p/3203944#M763753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T21:40:35Z</dc:date>
    </item>
  </channel>
</rss>

