Skip to Content
avatar image
Former Member

Standard Program/Function module to test RFC connection

Hi

Any standard function module to check whether RFC connection is working, before I say I execute something on a remote system apart from Test Connection.

Regards

Monika

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • avatar image
    Former Member
    Apr 29, 2009 at 06:55 AM

    hey i have got one RFC_GET_SYSTEM_INFO

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 29, 2009 at 07:06 AM

    Hello Monika,

    There are standard function module to check the RFC connection is working or not, check these function modules.

    RFC_TRUSTED_CHECK - RFC connection test for trusted systems

    Check other FMs also accoding to your usage.

    CP_LB29_RFC_DEST_CHECK - Checks the existence of a RFC Destination

    HB_RFC_FINAL_CHECK - Checks a configuration against fitlist/rules

    RFC_CHECK - authorization check for a given RFC destination

    TREX_RFC_CONNECT_CHECK_LOCAL - Tests the RFC Connection to a Gateway (local or other)

    TREX_RFC_CONNECTION_CHECK - Tests the RFC Connection to TREX for a list of App Servers

    SDOK_RFCDEST_EXIST_CHECK

    INT_RFC_CHECK_ACCESS

    RFC_CHECK_DESTINATION

    RFC_CHECK_DESTINATION_ID

    Regards,

    Prasanna

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 29, 2009 at 06:38 AM

    >

    > Hi

    >

    > Any standard function module to check whether RFC connection is working, before I say I execute something on a remote system apart from Test Connection.

    >

    > Regards

    > Monika

    There exists a lot of Standard RFC/BAPI which you can use ,but there is no readymade configuration for testing ,you need to configure your entire scenario and do the testing

    I mean you can use Standard FMs and configuration all things as what you all follow in norma sceanrio

    Rajesh

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 29, 2009 at 06:42 AM

    Hi Monika,

    No Standard FM. You have to create. You can check the connection in SM59 itself at Connection Test. There you will find whether it is connecting or Not.

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 13, 2011 at 08:24 AM

    SM59 uses function module RFC_PING, and TH_ERR_GET to get errors after that. You can check it in report RSRFCPIN.

    Daniel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2013 at 03:25 PM

    Call function module "RFC_PING" specifying two exceptions - system_failure and communication_failure.  This will prevent a short dump if the RFC connection has not been defined. Example below:   CALL FUNCTION 'RFC_PING' DESTINATION 'XXX'     EXCEPTIONS       system_failure        = 1       communication_failure = 2.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 07, 2014 at 05:26 AM

    Hi,

    Check the Function group CRFC You should be able to find a suitable FM for your case..


    Regards,

    Shobha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 13, 2014 at 01:30 AM

    Hello Monika,

    Did u identify a solution for this problem?

    If so, can you please share on how you did this programmatically and using which FMs?

    Thanks,

    Gita

    Add comment
    10|10000 characters needed characters exceeded

    • Dear expert,

      As part of automation project , I have used standard functional module for testing whether my RFC is working . The standard functional module was RFC_PING , we need to also automate the authorization test working (CTRL+F4) . We are using all type of RFC in our calls like (3,G,T,H) and we need to automate the authorization test suucessful.


      Please suggest whether we have any standard FM to check the authorization test independednt to any RFC calls (3,G,T,H etc)

      if there are no Standard module , then Please suggest on how to automate this thing .

      Thanks in advance.

      Regards,

      Dipak Kumar