12-11-2009 9:35 AM
Hi,
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?
Thanks
Bruno
12-11-2009 9:45 AM
Hi,
There is a class named CL_GUI_TIMER which is used for thsi kind of functionalities
Check if these links helps you:
Regards,
Swarna Munukoti