ABAP Keyword Documentation → ABAP − Reference → Data Interfaces and Communication Interfaces → RFC - Remote Function Call → RFC Overview
RFC Calls
The following additions of the CALL FUNCTION
statement produce a remote function call:
DESTINATION
for a synchronous RFC (sRFC)
If theDESTINATION
addition is specified without one of the following two additions, the calling program waits until the remotely called function has finished.
STARTING NEW TASK
for an asynchronous RFC (aRFC) and its parallel RFC variety (pRFC)
The additionSTARTING NEW TASK
continues 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.
CALL FUNCTION ... IN BACKGROUND UNIT
for a background RFC (bgRFC).
- CALL FUNCTION ...
IN BACKGROUND TASK (obsolete) for a transactional RFC (tRFC) and its variant queued RFC (qRFC)
The additionIN BACKGROUND
flags the remotely called function to be executed and starts it using the statementCOMMIT WORK
.
Other versions: 7.31 | 7.40 | 7.54
Note
Background RFC (bgRFC) is an enhanced successor of tRFC (and qRFC) and makes them obsolete. It is strongly recommended that bgRFC is used instead of tRFC.
More Information
- For a detailed description of RFC calls, see
CALL FUNCTION
- RFC.
- and RFC documentation on SAP Help Portal.