<?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: Raising Exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/raising-exception/m-p/3469043#M833883</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;Use this link &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/3e/a35c3cff8ca92be10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/3e/a35c3cff8ca92be10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/75/a55c3cff8ca92be10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/75/a55c3cff8ca92be10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mohinder Singh Chauhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Feb 2008 09:28:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-29T09:28:17Z</dc:date>
    <item>
      <title>Raising Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raising-exception/m-p/3469042#M833882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Zreport is fetching all the datas which is &lt;/P&gt;&lt;P&gt;displayed in the alv grid and a user defined button&lt;/P&gt;&lt;P&gt;( in the alv grid screen ) is pressed all the datas are send  thru XI interface and it stored in the system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been handled using the following code. I want to catch this exception since i was getting a warning. Plz suggest me hw to handle this exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been used in the user command form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm      &lt;/P&gt;&lt;P&gt;                             rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r_ucomm = sy-ucomm.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT prxy.&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;  CALL METHOD prxy -&amp;gt;executre_asynchronous&lt;/P&gt;&lt;P&gt;  EXPORTING &lt;/P&gt;&lt;P&gt;  output = it_grtinfo.&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;CATCH cx_system_fault into fault.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT fault.&lt;/P&gt;&lt;P&gt;  lv_msg_text = fault-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;  Write : / fault-&amp;gt; errortext.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After checking the syntax, i got the following warning.&lt;/P&gt;&lt;P&gt;Plz tell me how to handle this exception in the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning message is : The exception  CX_AI_SYSTEM_FAULT is neither caught nor declared  in the RAISING clause of "USER_COMMAND"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert back as soon as possible.&lt;/P&gt;&lt;P&gt;&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>Fri, 29 Feb 2008 09:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raising-exception/m-p/3469042#M833882</guid>
      <dc:creator>UmaArjunan</dc:creator>
      <dc:date>2008-02-29T09:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Raising Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raising-exception/m-p/3469043#M833883</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;Use this link &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/3e/a35c3cff8ca92be10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/3e/a35c3cff8ca92be10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/75/a55c3cff8ca92be10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/75/a55c3cff8ca92be10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mohinder Singh Chauhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 09:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raising-exception/m-p/3469043#M833883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T09:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Raising Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raising-exception/m-p/3469044#M833884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT prxy.
TRY.
  CALL METHOD prxy -&amp;gt;execute_asynchronous EXPORTING output = it_grtinfo.
  COMMIT WORK.
CATCH cx_system_fault into fault.
* CREATE OBJECT fault. " You don't need the this - the CATCH "creates" the object
  lv_msg_text = fault-&amp;gt;get_text( ).
  Write : / fault-&amp;gt; errortext.
CATCH cx_ai_system_fault INTO ai_fault.
  lv_msg_text = ai_fault-&amp;gt;get_text( ).
  Write : / ai_fault-&amp;gt; errortext.
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 18:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raising-exception/m-p/3469044#M833884</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-02-29T18:28:43Z</dc:date>
    </item>
  </channel>
</rss>

