SAP PARALLEL RFC ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Parallel asynchronous RFC
This example demonstrates parallel asynchronous RFC processing.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
Parallel asynchronous processing of the function module RFC_SYSTEM_INFO using asynchronous remote function calls. Ten calls with different task IDsname are made, which each run in a separate work process. The callback routine callbback_meth counts the completed function modules and receives information about the target system.
The addition GROUP DEFAULT is used to distribute the execution among all application servers for the current system. If no further work process is available after at least one successful call, the system interrupts execution of the program until all function modules that have already been started have been completed. This interruption is limited to a maximum of five seconds.
After starting all function modules, the system waits until all callback routines have been executed. Then it outputs the internal table task_list it has filled. The output shows the sequence in which the individual tasks were completed and the application server each one was executed on.