<?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 errors in function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557102#M582828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to handle errore in function modlues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 14:15:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T14:15:28Z</dc:date>
    <item>
      <title>errors in function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557102#M582828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to handle errore in function modlues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 14:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557102#M582828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: errors in function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557103#M582829</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 use the Exceptions to handle the errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two ABAP statements for raising exceptions. They can only be used in function modules:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAISE &amp;lt;except&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE..... RAISING &amp;lt;except&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The effect of these statements depends on whether the calling program handles the exception or not. If the name &amp;lt;except&amp;gt; of the exception or OTHERS occurs in the EXCEPTIONS addition of the CALL FUNCTION statement, the exception is handled by the calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the calling program does not handle the exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RAISE statement terminates the program and switches to debugging mode. &lt;/P&gt;&lt;P&gt;The MESSAGE ..... RAISING statement display the specified message. How the processing continues depends on the message type. &lt;/P&gt;&lt;P&gt;If the calling program handles the exception, both statements return control to the program. No values are transferred. The MESSAGE ..... RAISING statement does not display a message. Instead, it fills the system fields SY-MSGID, SY-MSGTY, SY-MSGNO, and SY-MSGV1 to SY-MSGV4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 14:17:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557103#M582829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T14:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: errors in function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557104#M582830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can define exception and throw the exception with the command 'RAISE'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 14:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557104#M582830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: errors in function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557105#M582831</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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here is an exemple.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION FM_EXEMPLE.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      TI_EX STRUCTURE  ZRTEROU OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      NOT_FOUND&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF TI_EX[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    RAISE not_found.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The Calling.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FM_EXEMPLE'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          ti_ex     = &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          not_found = 1&lt;/P&gt;&lt;P&gt;          OTHERS    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-subrc.&lt;/P&gt;&lt;P&gt;  WHEN 1.&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;  WHEN 2.&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 15:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-function-modules/m-p/2557105#M582831</guid>
      <dc:creator>marcelo_ramos1</dc:creator>
      <dc:date>2007-07-20T15:42:50Z</dc:date>
    </item>
  </channel>
</rss>

