<?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 functions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028497#M1348896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your function 'Z_MM_STOCK' is not remote enabled.first make it remote enabled and then try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2009 09:51:44 GMT</pubDate>
    <dc:creator>former_member188827</dc:creator>
    <dc:date>2009-08-11T09:51:44Z</dc:date>
    <item>
      <title>RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028494#M1348893</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;when i am using rfc_ping like below the sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RFC_PING' DESTINATION dest_asia&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      communication_failure = 1&lt;/P&gt;&lt;P&gt;      system_failure        = 2&lt;/P&gt;&lt;P&gt;      OTHERS                = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, when i am using 'RFC_FUNCTION_SEARCH' to check for function module, it is throwing sy-subrc = 3 when the FM is present in the destination system. please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RFC_FUNCTION_SEARCH' DESTINATION dest_asia&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      funcname          = 'Z_MM_STOCK'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      nothing_specified = 1&lt;/P&gt;&lt;P&gt;      no_function_found = 2&lt;/P&gt;&lt;P&gt;      OTHERS            = 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028494#M1348893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028495#M1348894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that you have not provided tables parameter for importing the result of function module execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding tables parameter and check if problem persist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028495#M1348894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028496#M1348895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI..i dont think the  tables parameter is needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028496#M1348895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028497#M1348896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your function 'Z_MM_STOCK' is not remote enabled.first make it remote enabled and then try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028497#M1348896</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2009-08-11T09:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028498#M1348897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is remote enabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028498#M1348897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028499#M1348898</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 check the RFC connection in tcode: SM59. You can also test the connection through this tcode.&lt;/P&gt;&lt;P&gt;check whether gateway host and gateway service is fulfilled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028499#M1348898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028500#M1348899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there was any problem...the  FM RFC_PING shud throw sy-subrc ne 0..but its 0..i cheked the connections..they r fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028500#M1348899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T09:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028501#M1348900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then try to debug 'RFC_FUNCTION_SEARCH'  to see where the problem lies..Also,check if you have released the FM 'ZMM_STOCK'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 09:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028501#M1348900</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2009-08-11T09:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028502#M1348901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i debugged..the error is showing in the call itslef.. is there anything wrong in the call?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 10:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028502#M1348901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T10:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028503#M1348902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, This Function module has to be called using the Destination keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DATA: lw_rfcfunc TYPE rfcfunc,&lt;/P&gt;&lt;P&gt;                  i_rfcfunc TYPE STANDARD TABLE OF rfcfunc.&lt;/P&gt;&lt;P&gt;      lw_rfcfunc-funcname = 'BAPI_APO_AVAILABILITY_CHECK'.&lt;/P&gt;&lt;P&gt;      APPEND lw_rfcfunc TO i_rfcfunc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'RFC_FUNCTION_SEARCH' DESTINATION p_rfcdes   "System where the FM existence should be checked&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          funcname                = 'BAPI_APO_AVAILABILITY_CHECK'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GROUPNAME               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          functions               = i_rfcfunc&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         nothing_specified       = 1&lt;/P&gt;&lt;P&gt;         no_function_found       = 2&lt;/P&gt;&lt;P&gt;         OTHERS                  = 3&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return sy-subrc = 0 if FM exists, otherwise sy-subrc is 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This RFC Function Module checks, if the FM mentioned is available in the TFDIR Table with PMODE = R (Remote) in the system which is called. If the DEstination keyword is not mentioned, it checks for the entry in the current system table, hence sy-subrc is always 2 in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Janani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: janani chakrapani on Aug 11, 2009 5:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 11:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028503#M1348902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T11:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028504#M1348903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but i get sy-subrc = 3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 13:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028504#M1348903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T13:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028505#M1348904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have u checked if your function module has an entry in the TFDIR table in the destination system when FMODE = 'R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is an entry, then the Function module will work, when executed in a program with the DEstination option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, check if the RFC Destination is reachable by using the Funciton Module &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RFC_PING' DESTINATION p_rfcdes "Destination system where FM/BAPI is available&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        system_failure        = 1&lt;/P&gt;&lt;P&gt;        communication_failure = 2&lt;/P&gt;&lt;P&gt;        OTHERS                = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc is 0 for RFC_PING, then cal RFC_FUNCTION_SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 13:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028505#M1348904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T13:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028506#M1348905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, i checked the table TFDIR and entry is there with FMODE = 'R'.&lt;/P&gt;&lt;P&gt; and have done rfc_ping..it gives sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i havent given  tables parameter..but gave funcname..is that any problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 14:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028506#M1348905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-11T14:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: RFC functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028507#M1348906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See what rc you get with:¨&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: smess type c length 80,
      cmess type c length 80.

CALL FUNCTION 'RFC_FUNCTION_SEARCH' DESTINATION dest_asia
    EXPORTING
      funcname = 'Z_MM_STOCK'
    EXCEPTIONS
      nothing_specified = 1  
      no_function_found = 2
      OTHERS = 3
      system_failure = 4 MESSAGE smess 
      communication_failure = 5 MESSAGE cmess.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also look at the contents of smess and cmess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still get rc = 3, runn the function on the destination machine with the same parameters, and see what results you get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 14:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-functions/m-p/6028507#M1348906</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-08-11T14:48:51Z</dc:date>
    </item>
  </channel>
</rss>

