Skip to Content
Former Member
Dec 11, 2009 at 09:35 AM

Timeout after <x> seconds for RFC call



we have a search in our (webdynpro abap) application which performs a (synchronous) RFC call to retrieve the remote search result.

Depending on data in the remote system and user search criteria, this can take up to 30 minutes.

Is there an easy way to make the RFC "timeout" after a certain amount of seconds and give an error? Let's say it takes more than 10 seconds, than a exception shall occur which we will show to the user.

I found that I can probably use asynchronous RFC (STARTING NEW TASK, CALLING... ON END OF TASK, WAIT, RECEIVE, ...) to achieve something like this, but the code would have to be changed very much...

any other ideas?