<?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: How to define exceptions? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367057#M181385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;In exception reporting you select and highlight objects that are in some way different or critical. Results that fall outside a set of predetermined threshold values (exceptions) are highlighted in color. This enables you to identify immediately any results that deviate from the expected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception reporting allows you to determine the objects that are critical for a query in you Web application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find additional information under Exception Reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;You have called up the exceptions function to change or define a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        In the Web item List of Exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        In the Web item Ad-hoc Query Designer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        In the Standard Web Template for Ad-hoc Analysis or in the BEx Web Analyzer&lt;/P&gt;&lt;P&gt;GO THROUGH THIS LINK&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c2/f6843b49f6a40de10000000a11402f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c2/f6843b49f6a40de10000000a11402f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cb/89fa3a0376a51fe10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cb/89fa3a0376a51fe10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2006 07:14:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-30T07:14:45Z</dc:date>
    <item>
      <title>How to define exceptions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367055#M181383</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;I have an internal table containing Key and Value as fieldnames. I have defined follwoing methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD(KEY, VALUE);&lt;/P&gt;&lt;P&gt;VALUE GET(KEY);&lt;/P&gt;&lt;P&gt;SET (KEY, VALUE);&lt;/P&gt;&lt;P&gt;DELETE(KEY);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Get Method, i need to pass a key, it must return the value. If the key is not found, it must raise some user defined exception. Similar case with set and delete also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me in detail how to implement exceptions in my case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367055#M181383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to define exceptions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367056#M181384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  first define the exception in the exception column of the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whenever u want to raise the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raise exception_name.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that`s all you have to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have manually raise exception in if condition as per the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These exceptions are called checked exceptions because whenever u called method using pattern these exceptions are shown in the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark Helpfull answers&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, 30 May 2006 07:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367056#M181384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T07:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to define exceptions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367057#M181385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;In exception reporting you select and highlight objects that are in some way different or critical. Results that fall outside a set of predetermined threshold values (exceptions) are highlighted in color. This enables you to identify immediately any results that deviate from the expected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception reporting allows you to determine the objects that are critical for a query in you Web application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find additional information under Exception Reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;You have called up the exceptions function to change or define a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        In the Web item List of Exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        In the Web item Ad-hoc Query Designer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        In the Standard Web Template for Ad-hoc Analysis or in the BEx Web Analyzer&lt;/P&gt;&lt;P&gt;GO THROUGH THIS LINK&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c2/f6843b49f6a40de10000000a11402f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c2/f6843b49f6a40de10000000a11402f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cb/89fa3a0376a51fe10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cb/89fa3a0376a51fe10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 07:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367057#M181385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T07:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to define exceptions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367058#M181386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you able to expalin me how to define exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreekar M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 07:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367058#M181386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T07:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to define exceptions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367059#M181387</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;that is done by using statement EVENTS in the definition of class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare an event KEY_NOT_FOUND with exporting parameter of KEY, so when key is not found in the method of GET, use statement RAISE KEY_NOT_FOUND exporting 'Key number'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when this event is raised in the program, you need to create an event handler which will handle this event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 07:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367059#M181387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T07:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to define exceptions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367060#M181388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sreekar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are creating a method, you will write the name of the method and now click on the EXCEPTIONS button. Here you can list all the exceptions you want for that method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the code for the method, you will have to use the &lt;/P&gt;&lt;P&gt;RAISE EXCEPTION_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is all. Now this exception will have to be handled by the code which calls this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note :Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 07:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367060#M181388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T07:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to define exceptions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367061#M181389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RaviKumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if suppose I have a class A in which i have a method GET which has key as datamember. It also have ref to class B as datamember.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another class B in which all the methods in my prev post are mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET in the Class A contains&lt;/P&gt;&lt;P&gt;BREF - &amp;gt; GET(KEY).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to handle the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLass B MEthod will look like this:&lt;/P&gt;&lt;P&gt;VALUE GET(KEY,VALUE)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;READ TABLE....&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0&lt;/P&gt;&lt;P&gt;RAISE VALUE_NOT_FOUND(defined in exceptions).&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 08:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367061#M181389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T08:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to define exceptions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367062#M181390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Exceptions can only be raised from function moduls.&lt;/P&gt;&lt;P&gt;There you can create them in the "Exceptions" register.&lt;/P&gt;&lt;P&gt;Simpley define and name it there.&lt;/P&gt;&lt;P&gt;Then you can raise it in your funcion module's code i.e.&lt;/P&gt;&lt;P&gt;RAISE MY_TEST_EXCEPTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd like to do so from a report... That's not possible. You can only do "Messages" from there i.e. E or A messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helped a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some points would be nice...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 08:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-exceptions/m-p/1367062#M181390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T08:51:52Z</dc:date>
    </item>
  </channel>
</rss>

