Application Development and Automation 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: 
Read only

Controlling Method workprocess from a Calling Program

Former Member
0 Likes
460

Hi,

I have created a custom program, where other than ABAP statements, I have called a Method inside this custom program. My requirement is that I donnot want the Method to execute more than 10 seconds. If this method is taking more than 10 seconds to obtain the output, then the calling program should raise an exception for time out or a message for time out should be displayed, interupting the Method workprocess. How to achieve this scenerio. You help and suggestions are most welcome. Eagerly waiting for a reply.

Regards,

Pulokesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
433

HI:

There are 2 function modules

- SWE_CD_TST_DELAY

- C14Z_WAIT_N_SECONDS

Regards

Shashi

3 REPLIES 3
Read only

franois_henrotte
Active Contributor
0 Likes
433

the only way I see is to call an asynchronous RFC function module with STARTING NEW TASK and to use

WAIT UNTIL log_exp UP TO 10 SECONDS.

the RECEIVE statement is a little tricky but using SAP help you should understand how it works

Read only

Former Member
0 Likes
434

HI:

There are 2 function modules

- SWE_CD_TST_DELAY

- C14Z_WAIT_N_SECONDS

Regards

Shashi

Read only

Former Member
0 Likes
433

Thanks everybody.

Regards,

Pulokesh