Calling Requirements for Asynchronous RFCs

When you call a remote function with the optional suffix STARTING NEW TASK, the system starts the function in a new session. Rather than waiting for the remote call to be completed, the user can resume processing as soon as the function module has been started in the target system.

The remotely called function module can, for example, display a new screen using CALL SCREEN, allowing the user to enter a dialog that connects him or her directly to the remote system:

Client System

CALL FUNCTION Remotefunction

   STARTING NEW TASK Taskname

   DESTINATION Dest

 

Server System

FUNCTION Remotefunction.

   CALL SCREEN 100.

ENDFUNCTION.

If you do not specify a destination, the asynchronous RFC mechanism starts a new session within the calling system.

You must not use IMPORTING when calling aRFCs.

Receiving Results from an Asynchronous RFC