<?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: define our own Exceptions in th function builder in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470692#M555422</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 define your exceptions in exceptions tab and call  like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 1.&lt;/P&gt;&lt;P&gt;     raise ret_code." exception name&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;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2007 09:02:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-25T09:02:44Z</dc:date>
    <item>
      <title>define our own Exceptions in th function builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470690#M555420</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;how to define our own Exceptions in th function builder in the Exception tab and how to use them in functon definiton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 08:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470690#M555420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T08:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: define our own Exceptions in th function builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470691#M555421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1730073"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 09:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470691#M555421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: define our own Exceptions in th function builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470692#M555422</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 define your exceptions in exceptions tab and call  like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 1.&lt;/P&gt;&lt;P&gt;     raise ret_code." exception name&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;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 09:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470692#M555422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T09:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: define our own Exceptions in th function builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470693#M555423</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 any function module you can in transaction SE37 you can goto Exceptions tab and there you can type your Exception names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From then on whenever you use CALL FUNCTION you will also have to use EXCEPTIONS to list the exception that this FM might raise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there is an option of creating your own Exception class example classes that start with CX___________. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create exception classes ans using a check box in the SE37 you can make your FM raise class based exceptions instead of normal exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 09:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470693#M555423</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-06-25T09:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: define our own Exceptions in th function builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470694#M555424</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;&amp;lt;b&amp;gt;Exceptions&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The exception of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception are defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition RAISING is used to declare class-based exceptions that can be propagated from the function module to the caller. Exceptions in the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be explicitly declared, otherwise a propagation can lead to an interface violation. A violation of the interface leads to the treatable exception CX_SY_NO_HANDLER. Exceptions of the category CX_NO_CHECK are implicitly always declared. The declaration of exceptions of the category CX_STATIC_CHECK is statically checked in the syntax check. For exceptions of the category CX_DYNAMIC_CHECK, the check is not performed until runtime. In a function module in which class-based exceptions are declared with the RAISING addition, the statement CATCH SYSTEM-EXCEPTIONS cannot be used. Instead, the relevant treatable exceptions should be handled in a TRY control structure.&lt;/P&gt;&lt;P&gt;The addition EXCEPTIONS is used to define a list of non-class-based exceptions that can be triggered in the function module using the statements RAISE or MESSAGE RAISING. Exceptions defined in this way - as with formal parameters - are bound to the function module and cannot be propagated. If an exception of this type is triggered in a function module, and no return value has been assigned to it with the homonymous addition EXCEPTIONS of the CALL FUNCTION statement when the call was made, this leads to a runtime error.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Note&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;For new developments after release 6.10, SAP recommends that you work with class-based exceptions that are independent of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 09:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470694#M555424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: define our own Exceptions in th function builder</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470695#M555425</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 eg: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have defined exceptions in the function module&lt;/P&gt;&lt;P&gt;based on sy-subrc value you can raise exceptionslike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case sy-subrc.&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;rasie &amp;lt; exception name1&amp;gt;.&lt;/P&gt;&lt;P&gt;when 2.&lt;/P&gt;&lt;P&gt;rasie &amp;lt; exception name2&amp;gt;.&lt;/P&gt;&lt;P&gt;when 3.&lt;/P&gt;&lt;P&gt;rasie &amp;lt; exception name3&amp;gt;.&lt;/P&gt;&lt;P&gt;when 4.&lt;/P&gt;&lt;P&gt;rasie &amp;lt; exception name4&amp;gt;.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 09:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-our-own-exceptions-in-th-function-builder/m-p/2470695#M555425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T09:08:38Z</dc:date>
    </item>
  </channel>
</rss>

