cancel
Showing results for 
Search instead for 
Did you mean: 

Standard Program/Function module to test RFC connection

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (8)

Answers (8)

former_member699182
Participant
0 Kudos

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

yarnagula_sudhir
Active Participant
0 Kudos

HI Gita,

Kindly check the following solution.

*RFC Connection Test
DATA : BEGIN OF rfctab OCCURS 0.
        INCLUDE STRUCTURE rfctest.
DATA : END OF rfctab.

DATA : rfc_mess(80).DATA : tx TYPE f, ta TYPE i, te TYPE i.
CLEAR: rfctab, rfc_mess.

PARAMETERS: p_rfc TYPE char50 OBLIGATORY.

CALL FUNCTION 'RFC_PING' DESTINATION p_rfc
  TABLES
    rfctab40              = rfctab
  EXCEPTIONS
    system_failure        = MESSAGE rfc_mess
    communication_failure = MESSAGE rfc_mess
    OTHERS                = 99.

IF sy-subrc = 0 AND rfc_mess IS INITIAL.
  MESSAGE 'RFC Connection Successful' TYPE 'S'.
ELSE.
  MESSAGE 'RFC Connection Failure' TYPE 'E'.
ENDIF.

With Regards,

Sudhir.

dipak_kumar
Explorer
0 Kudos

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

0 Kudos

Hi,

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


Regards,

Shobha

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Daniel

prasannakrishna_mynam
Contributor
0 Kudos

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

Former Member
0 Kudos

hey i have got one RFC_GET_SYSTEM_INFO

jyothi_anagani
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

>

> 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