<?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: Handling exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exception/m-p/2586663#M591949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you insert the function call using the pattern button in SE38, you will get the exceptions and optional parameters commented out. Uncomment the exceptions and also the following sy-subrc check. See below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 EXCEPTIONS
   NO_CLASSIFICATION          = 1
   NO_CLASSTYPES              = 2
   INVALID_CLASS_TYPE         = 3
   OTHERS                     = 4
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 22:13:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T22:13:20Z</dc:date>
    <item>
      <title>Handling exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exception/m-p/2586661#M591947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am executing a function module to find classification data &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLAF_CLASSIFICATION_OF_OBJECTS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; which gives me a dump for &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RAISE NO_CLASSIFICATION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to handle such exceptions. I am new to exception handling so could someone help me with the code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 21:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exception/m-p/2586661#M591947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T21:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Handling exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exception/m-p/2586662#M591948</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;Try giving the exceptions when calling the function module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
  EXPORTING
*   CLASS                      = ' '
*   CLASSTEXT                  = 'X'
    classtype                  =
*   CLINT                      = 0
*   FEATURES                   = 'X'
*   LANGUAGE                   = SY-LANGU
    object                     =
*   OBJECTTABLE                = ' '
*   KEY_DATE                   = SY-DATUM
*   INITIAL_CHARACT            = 'X'
*   NO_VALUE_DESCRIPT          =
*   CHANGE_SERVICE_CLF         = 'X'
*   INHERITED_CHAR             = ' '
*   CHANGE_NUMBER              = ' '
  tables
    t_class                    =
    t_objectdata               =
*   I_SEL_CHARACTERISTIC       =
*   T_NO_AUTH_CHARACT          =
 EXCEPTIONS
   NO_CLASSIFICATION          = 1
   NO_CLASSTYPES              = 2
   INVALID_CLASS_TYPE         = 3
   OTHERS                     = 4
          .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 22:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exception/m-p/2586662#M591948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T22:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Handling exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exception/m-p/2586663#M591949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you insert the function call using the pattern button in SE38, you will get the exceptions and optional parameters commented out. Uncomment the exceptions and also the following sy-subrc check. See below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 EXCEPTIONS
   NO_CLASSIFICATION          = 1
   NO_CLASSTYPES              = 2
   INVALID_CLASS_TYPE         = 3
   OTHERS                     = 4
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 22:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exception/m-p/2586663#M591949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T22:13:20Z</dc:date>
    </item>
  </channel>
</rss>

