<?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: remote function call - catching technical exceptions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230534#M1524792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a need of checking that before FM call. Each RFC function defines two implicit exceptions:&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;COMMUNICATION_FAILURE&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;SYSTEM_FAILURE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both can be added to the list of catched exceptions so you would not raise a dump if for some commucation or other error occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 07:03:40 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2010-09-03T07:03:40Z</dc:date>
    <item>
      <title>remote function call - catching technical exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230532#M1524790</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 need to catch some exceptions in a customer report with a remote function call. Its for the business, presenting them a dump is not acceptable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The remote function itself deliveres application exceptions - thats no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would like to check some things in advance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- is the remote system available?&lt;/P&gt;&lt;P&gt;- is a logon with rfcdest possible?&lt;/P&gt;&lt;P&gt;- does the function module exists?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some things can be checked by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RFC_GET_SYSTEM_INFO&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but at least may be someone has a better way of checking. Especially if the function module is in existance i do not have a glue on how to check that. I hoped that maybe there is a system exception which i can catch via TRY, but i douoldnt find anythin in the online help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 05:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230532#M1524790</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-09-03T05:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: remote function call - catching technical exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230533#M1524791</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;Please check in SE38, some programs begin with SRFC* , maybe something you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 06:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230533#M1524791</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2010-09-03T06:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: remote function call - catching technical exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230534#M1524792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a need of checking that before FM call. Each RFC function defines two implicit exceptions:&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;COMMUNICATION_FAILURE&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;SYSTEM_FAILURE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both can be added to the list of catched exceptions so you would not raise a dump if for some commucation or other error occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 07:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230534#M1524792</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-03T07:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: remote function call - catching technical exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230535#M1524793</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 use the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;    Call Function "ABC" destination "XYZ".&lt;/P&gt;&lt;P&gt;    Catch cx_root.&lt;/P&gt;&lt;P&gt;       raise error.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 07:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230535#M1524793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-03T07:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: remote function call - catching technical exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230536#M1524794</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;before calling your RFC try using fm RFC_VERIFY_DESTINATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;.
  CALL FUNCTION 'RFC_VERIFY_DESTINATION'
    EXPORTING
      destination                = g_dest
    EXCEPTIONS
      internal_failure           = 1
      timeout                    = 2
      dest_communication_failure = 3
      dest_system_failure        = 4
      update_failure             = 5
      no_update_authority        = 6
      OTHERS                     = 7.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
* then call here your RFC
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Sep 3, 2010 10:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 08:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230536#M1524794</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2010-09-03T08:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: remote function call - catching technical exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230537#M1524795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in Addition to the helpful answers: catchable exceptions can be found in the online documentation for a normal call function. I just had a look in the rfc call function, but the normal ones are working fine even with destination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 09:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remote-function-call-catching-technical-exceptions/m-p/7230537#M1524795</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-09-03T09:43:39Z</dc:date>
    </item>
  </channel>
</rss>

