Show TOC

Calling Remote Functions BackLocate this document in the navigation structure


The client and the server are determined at the start of an RFC. While a function is being processed on the server, this server can call a function on the client. In other words, the remote function can invoke its own caller (if the caller is itself a function module), or any function module loaded with the caller. The called-back function then runs in the same program context as the original caller.

You can trigger this call-back mechanism by using the special destination name "BACK". If this name is specified in an RFC call on the system acting as the server, the system uses the same RFC connection that was established when the server received the first call. Once an RFC connection is established, it is maintained until it is either explicitly closed or until the calling program terminates. During a call-back, the system will always attempt to use existing RFC connections before establishing a new one.

To perform a call-back, the syntax is:



In the diagram, remote function B of System B invokes remote function A in the calling System A.