Parallel processing

Splitting one run's work across several work processes so that it finishes sooner, and collecting what each part returned before the run goes on. Async processing is the neighbouring concern: work deferred past the request with a guarantee that it eventually happens, where parallel processing is throughput inside a run that waits for its results.

Overview

SAP SHIPS

CALL FUNCTION STARTING NEW TASK with DESTINATION IN GROUP runs remote-enabled function modules in parallel on a group of application servers, and RECEIVE RESULTS reads back each call's output. In ABAP for Cloud Development the released class CL_ABAP_PARALLEL runs instances of a class that implements IF_ABAP_PARALLEL.

Not covered: At the single call. On the classic path each unit of work is a remote-enabled function module with its own task ID and callback, and the calling program decides how the work is split and collects the results itself.

How the core statements and the community wrappers came to be present side by side has not been assessed. SAP's SPTA framework is named in the zconcurrency_api README and was not checked on an SAP page.

THE COMMUNITY ADDS

Wrappers that take a class, a report or a method instead of a function module and hand the results back to the caller, running over aRFC, SPTA or batch jobs, several of them shaped after Java threads or JavaScript promises.

Artifacts6

6 of 6 artifacts
ArtifactSignals
Packages6
abapify/promisePromise and async/await implementation for ABAP
Signals
Quiet
ABAPParallelizationServiceFramework for running ABAP work units in parallel tasks
Signals
Quiet+1
COROUTINES4ABAPCoroutine framework for ABAP with awaitable results
Signals
Quiet
RFC_TOOLSA wrapper class for calling asynchronous RFC function modules in parallel from ABAP, one instance per parallel task.
Signals
Quiet
zconcurrency_apiParallel task library for ABAP over the SPTA framework
Signals
none
zthreadThreading library for ABAP modelled on Java's Thread and Runnable
Signals
Quiet

Content1

Group by
Piece, what it offers
ABAP's Parallel Processing Frameworks: Practical Guide to Performance Tuning of Mass Data Processing
SAP Community, marc_steinert, Blog

Details

Coverage
statecore and community, ABAP
assessed
relationshipunassessed
For your agent
Ref
capability:parallel-processing
JSON
/capabilities/parallel-processing.json
MCP
Connecting an agent