<?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 detect function module is exist in remote system without ABAP dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963984#M1338089</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;There is no standard way of doing it but workaround for this problem would be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create Z function module Z_GET_RFC_FUNCTION_LIST.You may choose name as you like.&lt;/P&gt;&lt;P&gt;2. In this function module you can write select statament for selecting data from table TFDIR.&lt;/P&gt;&lt;P&gt;3. Select statement will select FUNCNAME and FMODE from TFDIR table.&lt;/P&gt;&lt;P&gt;4. Retrun list of all the required function module using tables parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you need to deploy this function module on all the SAP system in landscape so that&lt;/P&gt;&lt;P&gt;before every remote call you can check if that function module exist in remote system using Z function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&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>Fri, 21 Aug 2009 06:43:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-21T06:43:50Z</dc:date>
    <item>
      <title>how to detect function module is exist in remote system without ABAP dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963982#M1338087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Please advise is there any way to verify a function module is exist in remote system whithout ABAP dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the following method we can have ABAP dump if the specified FM is not yet available on the destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_xxx_xxxx' DESTINATION rfcdestination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 06:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963982#M1338087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T06:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to detect function module is exist in remote system without ABAP dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963983#M1338088</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; The FM you have provided CALL FUNCTION 'Z_xxx_xxxx' DESTINATION rfcdestination, is a custom function module which would be available in your project, if you want to avoid dump by calling the same FM, you can modify the FM by creating a exception and throwing this exception instead of dump if the FM does not exist in remote system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 06:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963983#M1338088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T06:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to detect function module is exist in remote system without ABAP dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963984#M1338089</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;There is no standard way of doing it but workaround for this problem would be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create Z function module Z_GET_RFC_FUNCTION_LIST.You may choose name as you like.&lt;/P&gt;&lt;P&gt;2. In this function module you can write select statament for selecting data from table TFDIR.&lt;/P&gt;&lt;P&gt;3. Select statement will select FUNCNAME and FMODE from TFDIR table.&lt;/P&gt;&lt;P&gt;4. Retrun list of all the required function module using tables parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you need to deploy this function module on all the SAP system in landscape so that&lt;/P&gt;&lt;P&gt;before every remote call you can check if that function module exist in remote system using Z function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&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>Fri, 21 Aug 2009 06:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963984#M1338089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to detect function module is exist in remote system without ABAP dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963985#M1338090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I handled this situation is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I created a Static Public Method called CHECK_FUNC_EXIST in one of the existing Z utility Class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method check_func_exist.

  data: lv_rfcdest type rfcdest.

  if iv_rfcdest is not initial.
    lv_rfcdest = iv_rfcdest.
  else.
    lv_rfcdest = co_none.       "----&amp;gt; 'NONE'
  endif.

  call function 'FUNCTION_EXISTS'          "&amp;lt;------- Note that this FM is also Remote Enabled
    destination lv_rfcdest
    exporting
      funcname           = iv_func_name
    exceptions
      function_not_exist = 1
      others             = 2.

  check sy-subrc = 0.
  rv_exist = lcl_gc=&amp;gt;gc_true.       "-----&amp;gt; 'X'

endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then, before calling the Remote Function in my application (within another Method) , I used the above Method first to validate before the actual remote function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method derive_fbt_year_period.

  data: lv_crmrfcdest type rfcdest.

* get the CRM RFC destination name
  lv_crmrfcdest = get_crm_rfc_dest( ).   

* check the function module exists in the remote system
  if check_func_exist(                                              "&amp;lt;----- The Method above
        iv_func_name = co_fbt_rfc_func_name
        iv_rfcdest   = lv_crmrfcdest ) is initial.
    message e104(zf_enhancements) with iv_transaction_date
      raising fbt_year_not_found.
  endif.

* call the remote function to get the FBT year, Date From, Date To
  call function co_fbt_rfc_func_name
    destination lv_crmrfcdest
    exporting
      iv_date      = iv_transaction_date
    importing
      ev_fbt_year  = ev_fbt_gjahr
      ev_date_from = ev_date_from
      ev_date_to   = ev_date_to
      ev_days_held = ev_days_held
    exceptions
      not_found    = 1
      others       = 2.

  if sy-subrc &amp;lt;&amp;gt; 0.
    message e104(zf_enhancements) with iv_transaction_date
      raising fbt_year_not_found.
  endif.

  check ev_fbt_monat is requested.

* using the "Date From" imported from the RFC, derive the FBT period
  ev_fbt_monat = derive_fbt_period( iv_transaction_date = iv_transaction_date
                                    iv_date_from        = ev_date_from ).

endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping you could use this or a similar approach to solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 07:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963985#M1338090</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2009-08-21T07:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to detect function module is exist in remote system without ABAP dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963986#M1338091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for the idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 07:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-detect-function-module-is-exist-in-remote-system-without-abap-dump/m-p/5963986#M1338091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T07:28:39Z</dc:date>
    </item>
  </channel>
</rss>

