Application Development 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: 

Timeout after <x> seconds for RFC call

Former Member
0 Kudos

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

1 REPLY 1

former_member217544
Active Contributor
0 Kudos

Hi,

There is a class named CL_GUI_TIMER which is used for thsi kind of functionalities

Check if these links helps you:

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID1566140850DB10378994137114348003End...

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID1566140850DB10378994137114348003End...

Regards,

Swarna Munukoti