<?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: Capture errors in standard Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754346#M1675693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error_message = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is documented,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 12:02:26 GMT</pubDate>
    <dc:creator>arseni_gallardo</dc:creator>
    <dc:date>2012-05-07T12:02:26Z</dc:date>
    <item>
      <title>Capture errors in standard Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754345#M1675692</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 am using WS_DELIVERY_UPDATE, but question relevant for any similar FM really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes, this FM will fail deep inside its code and outputs a hard 'E'rror and kills the process.&lt;/P&gt;&lt;P&gt;Previously, for other FM's, I have used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function '...'&lt;/P&gt;&lt;P&gt;IMPORTING...&lt;/P&gt;&lt;P&gt;EXPORTING...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; EXCEPTIONS &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; OTHERS = 99.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to capture these errors. But WS_DELIVERY_UPDATE does not have any EXCEPTIONS (just a PROT table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way of catching the errors so I can log the data in a better way in my own code rather than just crashing out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 11:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754345#M1675692</guid>
      <dc:creator>aidan_mulcahy</dc:creator>
      <dc:date>2012-05-07T11:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Capture errors in standard Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754346#M1675693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error_message = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is documented,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 12:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754346#M1675693</guid>
      <dc:creator>arseni_gallardo</dc:creator>
      <dc:date>2012-05-07T12:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Capture errors in standard Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754347#M1675694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can create Z FM 'ZWS_DELIVERY_UPDATE' by copying existing WS_DELIVERY_UPDATE nad then inside Exceptions tab you can add your own Exceptions via SE37.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 12:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754347#M1675694</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2012-05-07T12:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Capture errors in standard Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754348#M1675695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bahh!!!&lt;/P&gt;&lt;P&gt;Thanks Arseni. Where was it documented? Couldn't find it.&lt;/P&gt;&lt;P&gt;I've always used OTHERS = 99 and that normally works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR_MESSAGE = 1 worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 12:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754348#M1675695</guid>
      <dc:creator>aidan_mulcahy</dc:creator>
      <dc:date>2012-05-07T12:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Capture errors in standard Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754349#M1675696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look here &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/frameset.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling Function Modules in ABAP&lt;/P&gt;&lt;P&gt;To call a function module, use the CALL FUNCTION statement:&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [EXPORTING&amp;nbsp; f&lt;SUB&gt;1&lt;/SUB&gt; = a &lt;SUB&gt;1&lt;/SUB&gt;.... f &lt;SUB&gt;n&lt;/SUB&gt; = a &lt;SUB&gt;n&lt;/SUB&gt;] &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [IMPORTING&amp;nbsp; f&lt;SUB&gt;1&lt;/SUB&gt; = a &lt;SUB&gt;1&lt;/SUB&gt;.... f &lt;SUB&gt;n&lt;/SUB&gt; = a &lt;SUB&gt;n&lt;/SUB&gt;] &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [CHANGING&amp;nbsp;&amp;nbsp; f&lt;SUB&gt;1&lt;/SUB&gt; = a &lt;SUB&gt;1&lt;/SUB&gt;.... f &lt;SUB&gt;n&lt;/SUB&gt; = a &lt;SUB&gt;n&lt;/SUB&gt;] &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TABLES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f&lt;SUB&gt;1&lt;/SUB&gt; = a &lt;SUB&gt;1&lt;/SUB&gt;.... f &lt;SUB&gt;n&lt;/SUB&gt; = a &lt;SUB&gt;n&lt;/SUB&gt;] &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [EXCEPTIONS e&lt;SUB&gt;1&lt;/SUB&gt; = r &lt;SUB&gt;1&lt;/SUB&gt;.... e &lt;SUB&gt;n&lt;/SUB&gt; = r &lt;SUB&gt;n&lt;/SUB&gt; [ERROR_MESSAGE = r &lt;SUB&gt;E&lt;/SUB&gt;] &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [OTHERS = r&lt;SUB&gt;o&lt;/SUB&gt;]].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 13:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-errors-in-standard-function-module/m-p/8754349#M1675696</guid>
      <dc:creator>arseni_gallardo</dc:creator>
      <dc:date>2012-05-07T13:46:47Z</dc:date>
    </item>
  </channel>
</rss>

