<?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: RFC_ERROR_SYSTEM_FAILURE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156747#M1977557</link>
    <description>&lt;P&gt;BEST ANSWER:&lt;/P&gt;&lt;P&gt;use the below exception which will handle everything&lt;/P&gt;&lt;P&gt;error_messge = 1.&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 11:16:25 GMT</pubDate>
    <dc:creator>Santosh21N</dc:creator>
    <dc:date>2020-05-26T11:16:25Z</dc:date>
    <item>
      <title>RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156741#M1977551</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;
  &lt;P&gt;I am using FM "L_TO_CREATE_MULTIPLE" to create TO in my custom FM, i have enabled all the exceptions and using below code to catch all the errors.&lt;/P&gt;
  &lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno INTO lv_msg&lt;BR /&gt; WITH sy-msgv1.&lt;BR /&gt; return-type = sy-msgty.&lt;BR /&gt; return-id = sy-msgid.&lt;BR /&gt; return-number = sy-msgno.&lt;BR /&gt; return-message = lv_msg.&lt;/P&gt;
  &lt;P&gt;But for some of the invalid inputs are not getting captured in this message, instead it goes out of FM and comes on status bar, attached screen shot.&lt;/P&gt;
  &lt;P&gt;In PI system getting the message as below, i want handle this in my FM and send the structure to PI system.&lt;/P&gt;
  &lt;P&gt;&amp;lt;rfc:ZWM_BL_TO_CREATE.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"&amp;gt; &amp;lt;Name&amp;gt;RFC_ERROR_SYSTEM_FAILURE&amp;lt;/Name&amp;gt;&lt;BR /&gt; &amp;lt;Text&amp;gt; Storage bin EWGSSAY in storage type ASY does not exist (check your e&amp;lt;/Text&amp;gt;&lt;BR /&gt; &amp;lt;/rfc:ZWM_BL_TO_CREATE.Exception&amp;gt;&lt;/P&gt;
  &lt;P&gt;Please let me know how to handle this?&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1804677-to-error.jpg"&gt;to-error.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 06:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156741#M1977551</guid>
      <dc:creator>Santosh21N</dc:creator>
      <dc:date>2020-04-29T06:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156742#M1977552</link>
      <description>&lt;P&gt;As it is an RFC, you just have to call it for RFC destination none, the message will not be displayed.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'L_TO_CREATE_MULTIPLE'
  DESTINATION 'NONE'...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2020 06:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156742#M1977552</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-04-29T06:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156743#M1977553</link>
      <description>&lt;P&gt;Excellent.. Its working. thanks a lot..&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 07:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156743#M1977553</guid>
      <dc:creator>Santosh21N</dc:creator>
      <dc:date>2020-04-29T07:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156744#M1977554</link>
      <description>&lt;P&gt;Hi Frederic,&lt;/P&gt;&lt;P&gt;Actually when this FM called from PI system same error is thrown,it works internally and in debugging mode. Kindly advise.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 13:15:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156744#M1977554</guid>
      <dc:creator>Santosh21N</dc:creator>
      <dc:date>2020-04-30T13:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156745#M1977555</link>
      <description>&lt;P&gt;Sorry  Idon't understand, what is the problem from PI ? &lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 13:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156745#M1977555</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-04-30T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156746#M1977556</link>
      <description>&lt;P&gt;When call is made from PI system to my FM its throwing error.&lt;/P&gt;&lt;P&gt;&amp;lt;rfc:Z_BL_TO_CREATE.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"&amp;gt;&lt;BR /&gt;

 &amp;lt;Name&amp;gt;RFC_ERROR_SYSTEM_FAILURE&amp;lt;/Name&amp;gt;&lt;BR /&gt;

 &amp;lt;Text&amp;gt;Message type  is unknown.&amp;lt;/Text&amp;gt;&lt;BR /&gt;

&amp;lt;/rfc:Z_BL_TO_CREATE.Exception&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 13:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156746#M1977556</guid>
      <dc:creator>Santosh21N</dc:creator>
      <dc:date>2020-04-30T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156747#M1977557</link>
      <description>&lt;P&gt;BEST ANSWER:&lt;/P&gt;&lt;P&gt;use the below exception which will handle everything&lt;/P&gt;&lt;P&gt;error_messge = 1.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 11:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156747#M1977557</guid>
      <dc:creator>Santosh21N</dc:creator>
      <dc:date>2020-05-26T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156748#M1977558</link>
      <description>&lt;P&gt;Not agree, you will avoid having exception, but you will not catch the message. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;But for some of the invalid inputs are not getting captured in this message, instead it goes out of FM and comes on status bar, attached screen shot.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 May 2020 05:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156748#M1977558</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-05-27T05:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156749#M1977559</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/496218/santosh.n5.html"&gt;Santosh N&lt;/A&gt; Please post a separate answer, it's not related to what Frederic proposed.&lt;/P&gt;&lt;P&gt;It's not very precise to say that using ERROR_MESSAGE "handles everything". It's more exact to say that it solves your question better than calling L_TO_CREATE_MULTIPLE in sRFC (destination 'NONE' + handling the exception SYSTEM_FAILURE). The special ERROR_MESSAGE exception is explained in the ABAP documentation.&lt;/P&gt;&lt;P&gt;
&lt;A href="https://answers.sap.com/users/153394/frdric.girod.html"&gt;Frederic Girod&lt;/A&gt; you say "not catch the message", but I don't understand what you mean. ERROR_MESSAGE is a special exception which really makes the kernel catch the error message and terminates the function module.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 06:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156749#M1977559</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-27T06:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156750#M1977560</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;, SAP display the message, but you are not able to manage this message. For example if you want to make specific action, if you want to use the message in a log ... &lt;/P&gt;&lt;P&gt;I have exactly this case with RF screen, and I need to focus on the field that generate the error, if I let SAP display the error, I could not do it. So I used the dummy RFC, SAP does not display the error message, but returns the value (SYST). So you could display it as you want. &lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 06:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156750#M1977560</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-05-27T06:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_ERROR_SYSTEM_FAILURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156751#M1977561</link>
      <description>&lt;P&gt;What Santosh did, and that works for him:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'L_TO_CREATE_MULTIPLE'
  ...
  EXCEPTIONS
    error_message = 1
    ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No need of using sRFC 'NONE' in his case.&lt;/P&gt;&lt;P&gt;You say that "SAP display the message". &lt;STRONG&gt;NO if you use &lt;/STRONG&gt;the special exception ERROR_MESSAGE, any MESSAGE ... TYPE 'E' (without RAISING) executed inside the function module and its nested procedures will be implicitly interpreted like MESSAGE ... TYPE 'E' &lt;STRONG&gt;RAISING error_message&lt;/STRONG&gt;. The ABAP documentation says about ERROR_MESSAGE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Messages of the type E and A raise the exception error_message and set sy-subrc to n_error. 
The message class, message type, message number, and the contents of possible placeholders for the 
MESSAGE statement are in the fields sy-msgid, sy-msgno, sy-msgty, and sy-msgv1, ... sy-msgv4. 
In the case of messages of type A, the statement ROLLBACK WORK is also executed explicitly. &lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 May 2020 07:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-error-system-failure/m-p/12156751#M1977561</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-05-27T07:22:45Z</dc:date>
    </item>
  </channel>
</rss>

