<?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 try...catch cx_root in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-cx-root/m-p/6933718#M1486178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experets,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm updating a abap program written by others.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM  A
PERFORM  B
PERFORM  C
PERFORM  D
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;because of file format issue, the program end at "PERFORM  C". I can find the red flag in xml messages monitor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I updated this section as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;PERFORM  A&lt;/P&gt;&lt;P&gt;PERFORM  B&lt;/P&gt;&lt;P&gt;PERFORM  C&lt;/P&gt;&lt;P&gt;PERFORM  D&lt;/P&gt;&lt;P&gt;catch cx_root  into l_oref.&lt;/P&gt;&lt;P&gt;  send a &lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;e m a i l&lt;/SPAN&gt; to me&lt;/P&gt;&lt;P&gt; endtry.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I execute this program, I get a email, but show "execute successfully" in xml messages monitor.&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;Now my question is how to keep red flag in xml messages monitor after send exception infomation to me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me,and thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Apr 2010 04:47:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-29T04:47:50Z</dc:date>
    <item>
      <title>try...catch cx_root</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-cx-root/m-p/6933718#M1486178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experets,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm updating a abap program written by others.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM  A
PERFORM  B
PERFORM  C
PERFORM  D
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;because of file format issue, the program end at "PERFORM  C". I can find the red flag in xml messages monitor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I updated this section as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;PERFORM  A&lt;/P&gt;&lt;P&gt;PERFORM  B&lt;/P&gt;&lt;P&gt;PERFORM  C&lt;/P&gt;&lt;P&gt;PERFORM  D&lt;/P&gt;&lt;P&gt;catch cx_root  into l_oref.&lt;/P&gt;&lt;P&gt;  send a &lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;e m a i l&lt;/SPAN&gt; to me&lt;/P&gt;&lt;P&gt; endtry.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I execute this program, I get a email, but show "execute successfully" in xml messages monitor.&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;Now my question is how to keep red flag in xml messages monitor after send exception infomation to me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me,and thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 04:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-cx-root/m-p/6933718#M1486178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T04:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: try...catch cx_root</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-cx-root/m-p/6933719#M1486179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RESUME&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;catch CX_SY_ARITHMETIC_ERROR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 15:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/try-catch-cx-root/m-p/6933719#M1486179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T15:32:12Z</dc:date>
    </item>
  </channel>
</rss>

