<?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: Re: Exception in Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027848#M1699984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When calling the standard function module use EXCEPTIONS error_message = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Che&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2012 13:57:21 GMT</pubDate>
    <dc:creator>che_eky</dc:creator>
    <dc:date>2012-10-12T13:57:21Z</dc:date>
    <item>
      <title>Re: Exception in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027846#M1699982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an scenario i.e., am creating a Z-function module and in that am making a call to a standard SAP function module ...when I execute my Z function module the standard SAP FM contained in it , produces an error or dump which is not being handled in the standard SAP FM ...so how can I handle this error or dump in my Z function module ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 13:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027846#M1699982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-12T13:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Exception in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027847#M1699983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(FAQ, Basis) Read the documentation of CALL FUNCTION (F1 or &lt;A href="https://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_PARAMETER.htm"&gt;online&lt;/A&gt;) then use the &lt;A href="https://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_PARAMETER.htm#&amp;amp;ABAP_ADDITION_5@5@"&gt;EXCEPTION&lt;/A&gt; clause to catch the raised exceptions, you can then raise your own exception to the caller or manage it in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards;&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: You could also wrap the call in a try/endtry or similar tool to intercept most errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 13:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027847#M1699983</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-12T13:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Exception in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027848#M1699984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When calling the standard function module use EXCEPTIONS error_message = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Che&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 13:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027848#M1699984</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2012-10-12T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Exception in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027849#M1699985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you are referring to a situation where SAP standard FM is throwing an error message without "RAISING" any exception, if yes, I doubt if such an error situation can be handled in the calling program, if I were you I would ensure that i'm using an &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/d1/801f50454211d189710000e8322d00/frameset.htm"&gt;SAP released FM&lt;/A&gt; and would also look for alternate FM's which serve the same purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note it is also possible that SAP might be doing that on purpose, like in the case of update function modules, an "A" message will be triggered if any of the DML operations within the FM fail, it is however not a good practice to use such SAP standard update FM's in custom implementations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 21:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027849#M1699985</guid>
      <dc:creator>rajesh_paruchuru</dc:creator>
      <dc:date>2012-10-12T21:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Exception in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027850#M1699986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghavendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while calling the standard function module use the others = 4 in exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it will not raise any short dump and the sy-subrc value as 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If you are not maintained any exceptions are default case others = 4 then the FM fails then it will not recognize the error then it will&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; gives short dump. The best practice is when ever you are calling any function module maintain as exceptions others = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; then it eradicates the dump even it is standard one also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Don't use the standard messages in the FM. Use the custom messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While you are calling the standard function module from pattern. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc &amp;lt;&amp;gt; 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----&amp;gt; Using some standard messages. Here, write the custom message Bcoz, when the system not recognize the standard message then it will gives the &lt;/P&gt;&lt;P&gt;short dump&lt;/P&gt;&lt;P&gt;&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;I hope,&amp;nbsp; it will helps to you try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 12:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027850#M1699986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-14T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Exception in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027851#M1699987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="j-post-author"&gt; &lt;STRONG&gt;Former Member&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can handle almost everyrhing using the try .. catch statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'Any function'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH CX_ROOT. "Root exception catches everything&lt;/P&gt;&lt;P&gt;*&amp;nbsp; Handle exception here&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this, you will never get a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you CATCH CX_ROOT INTO lo_object you can use predefined methods to find out details about the error, i.e. line number and include where it occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 16:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-exception-in-function-module/m-p/9027851#M1699987</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-10-14T16:33:59Z</dc:date>
    </item>
  </channel>
</rss>

