CALL FUNCTION func IN BACKGROUND UNIT oref
parameter_list.
: Transactional call of a remote-capable function module specified in func via the RFC interface as of release 7.0. oref is an object reference variable, which must point to an object of a class that is implemented by the interface IF_BGRFC_UNIT.
The object contains all the information required for the Remote Function Call: the destination, whether to execute a
tRFC or a
qRFC and, if necessary, the number of queues.
If the same object is used for several calls, all called function modules are executed in one unit.
Conversely, multiple objects of this type can be used in parallel in one internal session, which enables parallel processing.
: Before release 7.0, the parallel processing of multiple function modules was only possible using the
AS SEPARATE UNIT addition to the statement
CALL FUNCTION IN BACKGROUND TASK. This same functionality is provided by the parallel use of multiple objects, which means this addition is longer necessary.
Catchable Exceptions
CX_BGRFC_INVALID_UNIT