The following additions of the
CALL FUNCTION statement produce a remote function call:
DESTINATIONfor a synchronous RFC (sRFC)
DESTINATIONaddition is specified without one of the following two additions, the calling program waits until the remotely called function has finished.
STARTING NEW TASKfor an aynschronous RFC (aRFC) and its parallel RFC variety (pRFC)
STARTING NEW TASKcontinues the processing of the calling program as soon as the remotely called function has been started, without waiting for the function to end. The results can be handled in callback routines.
- The results are received in callback routines.
IN BACKGROUND UNIT|TASK for a background RFC (bgRFC) or a transactional RFC (tRFC) and its variant queued RFC (qRFC).
IN BACKGROUNDflags the remotely called function to be executed and starts it using the statement
BackgroundRFC (bgRFC) is an enhanced successor of tRFC (and qRFC). At the moment, all variants can still be used. However, it is strongly recommended that bgRFC be used instead of tRFC.
- For a detailed description of RFC calls, see
CALL FUNCTION- RFC.
- and the
SAP NetWeaver documentation in SAP Help Portal.