<?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 system error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836284#M1317286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 
       CALL FUNCTION 'Z_HR_RFC_GEI_ENVIARLIQUIDACION' 
IN BACKGROUND TASK                                  "Add this while pushing data to XI
DESTINATION 'RFC_XIADAPTER_GEI'
         EXPORTING
           reinr          = p_tripnr_sap
           pernr          = trip_header-pernr
           landx          = p_trip_landx
           datv1          = p_datini 
           datb1          = p_datfin
           uname          = p_uname
           auto           = '1'
         IMPORTING
           codgei         = p_codgei
           desgei         = p_desgei
           RESULT         = p_result
         TABLES
           expenses       = t_lineas
           ordenes        = t_ordenes
         EXCEPTIONS
           system_failure = 1
           OTHERS         = 2.
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 11:21:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-23T11:21:31Z</dc:date>
    <item>
      <title>RFC system error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836283#M1317285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm calling a RFC function in an XI system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'Z_HR_RFC_GEI_ENVIARLIQUIDACION' DESTINATION 'RFC_XIADAPTER_GEI'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          reinr          = p_tripnr_sap&lt;/P&gt;&lt;P&gt;          pernr          = trip_header-pernr&lt;/P&gt;&lt;P&gt;          landx          = p_trip_landx&lt;/P&gt;&lt;P&gt;          datv1          = p_datini &lt;/P&gt;&lt;P&gt;          datb1          = p_datfin&lt;/P&gt;&lt;P&gt;          uname          = p_uname&lt;/P&gt;&lt;P&gt;          auto           = '1'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          codgei         = p_codgei&lt;/P&gt;&lt;P&gt;          desgei         = p_desgei&lt;/P&gt;&lt;P&gt;          RESULT         = p_result&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          expenses       = t_lineas&lt;/P&gt;&lt;P&gt;          ordenes        = t_ordenes&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          system_failure = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I get sy-subrc = 1. The curious thing is that &lt;STRONG&gt;when I send wrong data (an empty table of expenses, for example) y correctly get the error (no expenses lines) from the remote system and sy-subrc returns 0&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can the problem be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836283#M1317285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: RFC system error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836284#M1317286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 
       CALL FUNCTION 'Z_HR_RFC_GEI_ENVIARLIQUIDACION' 
IN BACKGROUND TASK                                  "Add this while pushing data to XI
DESTINATION 'RFC_XIADAPTER_GEI'
         EXPORTING
           reinr          = p_tripnr_sap
           pernr          = trip_header-pernr
           landx          = p_trip_landx
           datv1          = p_datini 
           datb1          = p_datfin
           uname          = p_uname
           auto           = '1'
         IMPORTING
           codgei         = p_codgei
           desgei         = p_desgei
           RESULT         = p_result
         TABLES
           expenses       = t_lineas
           ordenes        = t_ordenes
         EXCEPTIONS
           system_failure = 1
           OTHERS         = 2.
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:21:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836284#M1317286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: RFC system error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836285#M1317287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does avoid the connection error, but somehow makes the function fail to retrieve the results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function has to perform some tasks and then return the obtained code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the connection error is due to another error, in the remote system. Maybe the remote function gets stuck and since there is no response in time I'm getting the connection error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the RFC function as a background task, how do I know whether there has been some problem or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 07:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836285#M1317287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T07:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: RFC system error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836286#M1317288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is because of the error in the connector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you execute the FM, It will trigger some service in the connector. When the exception come from the sequence of services or service of the connector, you will get SY-SUBRC = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid the runtime error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If sy-subrc = 1.
MESSAGE E002 WITH 'Internal error in Connector'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 07:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836286#M1317288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T07:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: RFC system error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836287#M1317289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can't be just a connection error. When I call the function with wrong data the remote system does return the adequate error code and message, so the connection is taking place and the remote function is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem may be that when correct data are sent the remote process takes too long for the connection to remain open or maybe that an error occurs, but the process gets stuck instead of returning the error via the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first case, I guess calliing the function as a background task should be Ok for the remote process to end correctly, but I won't be able to retrieve the data I need to continue my own process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 08:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836287#M1317289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T08:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: RFC system error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836288#M1317290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally the remote function will be changed. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 09:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-system-error/m-p/5836288#M1317290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T09:48:07Z</dc:date>
    </item>
  </channel>
</rss>

