A definitive guide to replacing obsolete asynchronous RFCs (aRFC) with cl_abap_parallel, cursor chunking, and worker pool throttling in SAP S/4HANA.
For over two decades, SAP ABAP developers relied on CALL FUNCTION ... STARTING NEW TASK to achieve concurrency in high-volume processing (such as billing runs, mass payment runs, and EDI dispatching).
In ABAP Cloud (Language Version: ABAP for Cloud Development):
CALL FUNCTION ... STARTING NEW TASK is strictly prohibited by ATC checks (syntax error in ABAP Cloud).NONE or internal RFC server groups (e.g. parallel_generators) are inaccessible in cloud environments.SAP introduced the Parallel Processing Framework (`cl_abap_parallel`) to provide safe, object-oriented concurrency compliant with Clean Core standards.
| Capability | Legacy aRFC | ABAP Cloud (`cl_abap_parallel`) |
|---|---|---|
| Clean Core Status | Deprecated / Prohibited | Released (Contract C1) |
| Payload Serialization | Flat table parameters via RFC buffers | Type-safe deep object serialization |
| Worker Quota Throttling | Manual SPBT_* function calls |
Built-in iv_max_threads parameter |
| Timeout Handling | Custom polling loop with RECEIVE RESULTS |
Built-in iv_timeout_sec with graceful abort |
| Cloud Safety | Bypasses tenant resource governance | Monitored and throttled by SAP Cloud Kernel |
A resilient concurrent architecture consists of three distinct layers:
OPEN CURSOR ... PACKAGE SIZE to keep memory below 50 MB on the orchestrator node.if_abap_parallel and executes them across background worker processes up to a defined ceiling (typically 4–8 threads).cl_bali_log).Ensure that keys partitioned across workers never touch the same database records or parent numbers. If two workers attempt to modify line items of the same Purchase Order or Sales Document concurrently, SAP enqueue locks will fail, causing transaction rollbacks.
Generate compliant ABAP Cloud worker classes, cursor chunking loops, and Application Job runners with our free interactive architect.
⚡ Launch Parallel Processing Architect