<?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: How to catch  system exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-system-exception/m-p/7874399#M1594113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;I had the same issue for a RFC Function. I resolved it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   DATA:  msg_text(120).

  CALL FUNCTION 'FM_XXXXXXX'
    DESTINATION l_rfcdest
    TABLES
      .............................
    EXCEPTIONS
      communication_failure = 1  MESSAGE msg_text
      system_failure       = 2   MESSAGE msg_text.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Filippo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2011 06:59:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-04T06:59:42Z</dc:date>
    <item>
      <title>How to catch  system exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-system-exception/m-p/7874398#M1594112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I am calling an FM BAPI_USER_EXISTENCE_CHECK and it throws an exception for specific users. But it was not thrown as&lt;/P&gt;&lt;P&gt;exception parameter in the FM, but system exception occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I catch that exception. What can be the exception name which will catch all kinds of exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am getting the exception like "not allowed to login as a trusted system". I am calling that RFC with trusted RFC connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 06:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-system-exception/m-p/7874398#M1594112</guid>
      <dc:creator>venkat_raman</dc:creator>
      <dc:date>2011-05-04T06:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch  system exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-system-exception/m-p/7874399#M1594113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;I had the same issue for a RFC Function. I resolved it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   DATA:  msg_text(120).

  CALL FUNCTION 'FM_XXXXXXX'
    DESTINATION l_rfcdest
    TABLES
      .............................
    EXCEPTIONS
      communication_failure = 1  MESSAGE msg_text
      system_failure       = 2   MESSAGE msg_text.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Filippo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 06:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-system-exception/m-p/7874399#M1594113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-04T06:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch  system exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-system-exception/m-p/7874400#M1594114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When executing a FM using the RFC interface there are specific system exceptions to manage , check SAP documentation via F1 or at [CALL FUNCTION - DESTINATION parameter_list|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_DESTINATION_PARA.htm]&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    [EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
                [system_failure = ns [MESSAGE smess]]
                [communication_failure = nc [MESSAGE cmess]]
                [OTHERS = n_others]].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 07:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-system-exception/m-p/7874400#M1594114</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-05-04T07:14:24Z</dc:date>
    </item>
  </channel>
</rss>

