Skip to Content
0
Former Member
Jun 20, 2009 at 12:14 PM

Rfc - controlled execution.

31 Views

Hi,

I connect to sap system using adaptive rfc in web dynpro to execute certain bapis.(portal , web dynrpo and sap r3 are on three different systems).

All is fine except for one bapi, which we know has a problem and takes around 30 minutes to execute

(I executed this bapi directly in the r3 and confirmed this) for certain input parameters.

When this bapi is invoked from my web dynpro application , the web dispathcer times out after 60 seconds as it did not receive any response from the WAS.No problem with this...

But after this ..all subsequent navigations or requests to the WAS fails with similar connection timeout message and nothing works for the user.

I guess the non performing bapi which was invoked by the user is the cause and is still executing in the backgroud on web dynrpo engine and on the sap r3 and causing futher requests to fail.

My question is: Is there a way I can control the model.execute() in the web dynpro code by specifying a time in secs for example ..so that web dynpro can terminate the execution after waiting for certain time

and report it with an exception or error.

(I guess there should be some way to deal as web dynrpo is single threaded and due to bapi not performing the entire user session goes for a toss)..

Or any other way this can be dealt with.

let me know.

Regards,

Ashok