<?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 catch..endcatch in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088661#M732587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what is the exact functionality of below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS arithmetic_errors = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it will do??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2007 10:50:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-05T10:50:17Z</dc:date>
    <item>
      <title>catch..endcatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088661#M732587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know what is the exact functionality of below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS arithmetic_errors = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it will do??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088661#M732587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: catch..endcatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088662#M732588</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;catch block will be executed when the exception mentioned is raised.&lt;/P&gt;&lt;P&gt;see this example.&lt;/P&gt;&lt;P&gt;DATA: result TYPE p DECIMALS 3,&lt;/P&gt;&lt;P&gt;      number TYPE i VALUE 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS arithmetic_errors = 5.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    number = number - 1.&lt;/P&gt;&lt;P&gt;    result = 1 / number.&lt;/P&gt;&lt;P&gt;    WRITE: / number, result.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 5.&lt;/P&gt;&lt;P&gt;  WRITE / 'Division by zero!'.&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;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088662#M732588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: catch..endcatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088663#M732589</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;You can handle with this way some incorrect arithmetic operation, like division by zero...&lt;/P&gt;&lt;P&gt;Your program will not have a short dump, keeps the control, and you can write a nice error handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: there are catchable and non-catchable exceptions. Non-catchable ones will cause ABAP dump, even when they are between CATCH-ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088663#M732589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: catch..endcatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088664#M732590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we are using some function modules in the program,there may be possibility of some arithemetic erros like dividing by zero or multiplying by some character variable ....and all.&lt;/P&gt;&lt;P&gt;Normally when this type of error occurs and if we dont handle/catch this type of exceptions means system goes to dump without givinvg any warning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid such type of dumps we catch through exceptions.&lt;/P&gt;&lt;P&gt;in our case sy-subrc = 4 ( particularly in this case) means arithemetic errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088664#M732590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: catch..endcatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088665#M732591</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;This catch statement will be used with TRY. any exceptions that will get raise in TRY statement those will be catch in CATCH statement and hence that will not give rise to any DUMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 11:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-endcatch/m-p/3088665#M732591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T11:03:48Z</dc:date>
    </item>
  </channel>
</rss>

