<?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 Destination Catch Exceptions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-destination-catch-exceptions/m-p/5452356#M1249703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this way with your RFC function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RFC_WRITE_FILE'
    DESTINATION FP_P_DEST
    EXPORTING
      FILE                  = L_V_NAME
      FORMAT                = L_C_BIN
      SIZE                  = L_V_SIZE
      LANGUAGE              = SY-LANGU
    IMPORTING
      SIZE                  = L_V_SIZE
    TABLES
      FILEDATA              = L_IT_FILE
    EXCEPTIONS
      SYSTEM_FAILURE        = 1  MESSAGE L_V_RFC_MESS
      COMMUNICATION_FAILURE = 2  MESSAGE L_V_RFC_MESS
      ILLEGALNAME           = 3
      OTHERS                = 6.

  CASE SY-SUBRC.
    WHEN 0.

    WHEN 1.

    WHEN 2.

    WHEN 3.

    WHEN 6.

  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SY-SUBRC value can be captured this way. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Mar 24, 2009 4:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2009 15:13:56 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-03-24T15:13:56Z</dc:date>
    <item>
      <title>RFC Destination Catch Exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-destination-catch-exceptions/m-p/5452355#M1249702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a program with call to RFC destination 'XI' , i want to know if it is possible catch exceptions when in the other system (XI) a fault occurs, for example, the database table in which I want to insert the data is not created. Now, if this happens a dump occurs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks very much,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 14:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-destination-catch-exceptions/m-p/5452355#M1249702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: RFC Destination Catch Exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-destination-catch-exceptions/m-p/5452356#M1249703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this way with your RFC function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RFC_WRITE_FILE'
    DESTINATION FP_P_DEST
    EXPORTING
      FILE                  = L_V_NAME
      FORMAT                = L_C_BIN
      SIZE                  = L_V_SIZE
      LANGUAGE              = SY-LANGU
    IMPORTING
      SIZE                  = L_V_SIZE
    TABLES
      FILEDATA              = L_IT_FILE
    EXCEPTIONS
      SYSTEM_FAILURE        = 1  MESSAGE L_V_RFC_MESS
      COMMUNICATION_FAILURE = 2  MESSAGE L_V_RFC_MESS
      ILLEGALNAME           = 3
      OTHERS                = 6.

  CASE SY-SUBRC.
    WHEN 0.

    WHEN 1.

    WHEN 2.

    WHEN 3.

    WHEN 6.

  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SY-SUBRC value can be captured this way. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Mar 24, 2009 4:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 15:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-destination-catch-exceptions/m-p/5452356#M1249703</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-03-24T15:13:56Z</dc:date>
    </item>
  </channel>
</rss>

