ABAP - Keyword Documentation →  ABAP - Reference →  Data Interfaces and Communication Interfaces →  RFC - Remote Function Call →  CALL FUNCTION - RFC → 

CALL FUNCTION - IN BACKGROUND UNIT

Quick Reference

Syntax

CALL FUNCTION func IN BACKGROUND UNIT oref
                   parameter_list.

Effect

Background Remote Function Call (bgRFC) of a remote-enabled function module specified in func using the RFC interface. Here, oref is an object reference variable pointing to an object whose class implements the interface IF_BGRFC_UNIT.

The object contains all the information required for the remote function call, including the destination, whether to execute a transactional or queued call and, if required, the quantity of queues. If the same object is used for multiple 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.

Parallel processing is executed if queues or destinations in the used objects have different names. If, in successive calls, different objects are used for which the same queues and destinations are specified, they are processed in the same queue one after the other.

Note

Background RFC (bgRFC) is the enhanced successor technology of transactional RFC (tRFC) and makes this technology obsolete. It is strongly recommended that bgRFC is used instead of tRFC.

More Information

For more detailed information about bgRFC, see the

RFC documentation on SAP Help Portal.

Notes

Exceptions

Handleable Exceptions

CX_BGRFC_INVALID_UNIT



Continue
CALL FUNCTION - IN BACKGROUND parameter_list