Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC Function Call - System not available

Former Member
0 Likes
1,273

Hello,

in my own program i´m using an RFC function call to get data out of our BW - System like this:

CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA' DESTINATION i_dest
    EXPORTING
      i_query               = i_query
      i_view_id             = i_view_id
      i_t_parameter         = i_t_parameter
    IMPORTING
      e_axis_data           = gt_axis_data
      e_cell_data           = e_cell_data
    EXCEPTIONS
      system_failure        = 1
      communication_failure = 2
      OTHERS                = 3.

This works fine and fast as long the BW System is up and running. If the BW system is for some reason down my program has very bad performance because this RFC function call is trying for about 10 seconds every time.

Is there a way to avoid this long waiting time? A kind of parameter?

If there is no answer after one or two seconds the programm should continue.

Any ideas for this?

Thanks a lot.

Best regards

Manfred

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,193

Hi,

Ram.

8 REPLIES 8
Read only

Amarpreet
Active Participant
0 Likes
1,193
Read only

former_member224404
Active Participant
0 Likes
1,193

Hi Manfred,

I was checking the SAP report RSRFCPIN which is used for SM59 connection test. In this report I found FM RFC_PING which you may use for your purpose. I couldn't test this properly because of authorization restriction in my system.

Thanks,

Mainak

Read only

Former Member
0 Likes
1,193

Hi,

could one of you experts please explain if FM RFC_PING is the right way and if yes how to use it?

Or are there other ideas for my request?

Thanks a lot.

Best regards

Manfred

Read only

0 Likes
1,193

RFC_PING is similar to test RFC connection button in SM59. It will send some data to destination and check if the system is available.

This is the code for that -

call function 'RFC_PING' destination <dest>

exceptions

system_failure = 1

communication_failure = 2.

But is not your FM supposed to handle the exception as well? If the system is not available, similar to RFC_PING, your FM should also return with communication_failure exception

Read only

0 Likes
1,193

Hello Sim,

you are right - the exception communcation failure is raised. But this comes after 10 seconds if the system is not available and not immidiatly. I´m searching for a parameter to change this 10 seconds to 1 second - or for a function module which checks much faster wether the system is available or not.

Kind regards

Manfred

Read only

0 Likes
1,193

I am not sure if there is some number entered while setting up RFC connection to try connection for 10s (I do not have authorization to SM59 in my system)

Maybe you can check with your BASIS team who created the RFC connection or else I think that is the default upper limit to try establish connection with the RFC destination

Read only

0 Likes
1,193

this time should be maintained at the systems profile parameters (Transaction RZ11 - I think it could be gw/timeout) - contact your SAP basis team to check this.

kind regards, hp

Read only

Former Member
0 Likes
1,194

Hi,

Ram.