on 04-29-2009 7:34 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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 = 1 MESSAGE rfc_mess
communication_failure = 2 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.
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
Hi,
Check the Function group CRFC You should be able to find a suitable FM for your case..
Regards,
Shobha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SM59 uses function module RFC_PING, and TH_ERR_GET to get errors after that. You can check it in report RSRFCPIN.
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey i have got one RFC_GET_SYSTEM_INFO
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.