‎2011 Sep 07 7:37 AM
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
‎2011 Sep 07 10:24 AM
‎2011 Sep 07 9:19 AM
try the following like look for TTL(time to live) in the doc
‎2011 Sep 07 9:20 AM
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
‎2011 Sep 07 9:35 AM
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
‎2011 Sep 07 10:02 AM
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
‎2011 Sep 07 10:05 AM
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
‎2011 Sep 07 10:17 AM
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
‎2011 Sep 07 10:24 AM
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
‎2011 Sep 07 10:24 AM