<?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: exception class help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897090#M1327329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jul 2009 09:45:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-11T09:45:25Z</dc:date>
    <item>
      <title>exception class help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897088#M1327327</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 create exception class like it write in the sap help and when i want to send the exception with parameters to the ABOVE METHODS i don't susses  i just get the message without the parameter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is simple guideline how o transfer the exception with parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 11:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897088#M1327327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-10T11:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: exception class help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897089#M1327328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ricardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you trigger the exception you need to feed the EXPORTING parameters with the values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report  DEMO_RAISE_EXCEPTIONS.

data OREF type ref to CX_ROOT.
data TEXT type STRING.

try.
  try.
    raise exception type CX_DEMO_CONSTRUCTOR
          exporting MY_TEXT = SY-REPID.  " &amp;lt;&amp;lt;&amp;lt;
    catch CX_DEMO_CONSTRUCTOR into OREF.
      TEXT = OREF-&amp;gt;GET_TEXT( ).
      write / TEXT.
      raise exception OREF.
  endtry.
  catch CX_DEMO_CONSTRUCTOR into OREF.
    TEXT = OREF-&amp;gt;GET_TEXT( ).
    write / TEXT.
endtry.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 12:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897089#M1327328</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-07-10T12:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: exception class help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897090#M1327329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 09:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897090#M1327329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T09:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: exception class help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897091#M1327330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the first method on the tree:&lt;/P&gt;&lt;P&gt;the method name is create .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; ....
INSERT (lt_table_name) FROM &amp;lt;ls_obj&amp;gt;.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      RAISE EXCEPTION TYPE /cx_db_db_error
        EXPORTING
          textid     = cx_db_error=&amp;gt;create_failed
          table_name = lt_table_name.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this method call to the above method - create .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
 TRY.
        CALL METHOD lo_obj_create-&amp;gt;create
          CHANGING
            is_bound_object = ls_obj_user.

      CATCH cx_db_error INTO lo_exc.
        "Create user failed. Throw an exception.
        RAISE EXCEPTION TYPE cx_db_error
          EXPORTING
            textid     = cx_db_error=&amp;gt;create_user_error
            previous   = lo_exc.
        result = lo_exc-&amp;gt;get_text( ).

    ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in result i just get the massage without the table name that i export in the first method ,what i miss here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 17:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897091#M1327330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T17:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: exception class help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897092#M1327331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(deleted - misread post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pascal Schlecht on Jul 16, 2009 2:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 12:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-help/m-p/5897092#M1327331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T12:05:58Z</dc:date>
    </item>
  </channel>
</rss>

