Async processing

Doing work outside the request that triggered it, with a guarantee that it eventually happens — deferred jobs, retries, and periodic work. Distinct from messaging, which is about telling other systems.

Overview

SAP SHIPSby design

Built in: the transactional event queue, persistent by default, stores a queued call, an inbound message or a scheduled task in the cds.outbox.Messages table inside the business transaction and dispatches it after commit, retries a failure with exponentially increasing delays, and moves it to the dead letter queue after a configurable number of attempts. Outbox, inbox and scheduled tasks are the three patterns on that one table; cds.spawn is the in-memory alternative that persists nothing. Outboxing a service by configuration and the #succeeded and #failed callbacks are Node.js only, the callbacks alpha.

Not covered: At the table. A dead letter stays in cds.outbox.Messages for a person to revive or discard, through a query or a service the application defines; there is no console, no priority and no rate control, and Java has no callbacks yet. That is what the entries here add on top.

THE COMMUNITY ADDS

Artifacts1

1 of 1 artifacts
ArtifactSignals
Packages1
ABAP-PRCFramework for multi-step ABAP processes with monitoring
Signals
Functional boundary

Content5

Group by
Piece, what it offers
Always in Sync — Field-level and event-driven side effects for reactive UIs in RAP
YouTube — SAP Developers playlists, Andre Fischer, Talk
How to Build Application Jobs in SAP Business AI Platform, ABAP environment
YouTube — SAP Developers playlists, Andre Fischer, Talk
Triggering Background Jobs from RAP Actions – A Practical Guide
SAP Community, Arshiya2, Blog
Show 2 more
Cloud-Native with ABAP Cloud – The Transactional Outbox Pattern
SAP Community, Fabian Fellhauer, Blog
ABAP code to wait for the end of "inbound bgRFC type Q" units
SAP Community, Sandra_Rossi, Blog

Seen working2

ArtifactSignals
Samples2
SAP-samples/abap-platform-bgpf-appl-log-events-side-effectsRAP sample with bgPF, business events and side effects
none
SAP-samples/abap-platform-rap-transactional-outbox-with-bgpfTransactional outbox pattern in ABAP Cloud with bgPF
none

Details

Coverage
statecore and community, ABAP
assessed
relationshipnarrow by design
also inCAP, BTP/BAIP
SourceTransactional Event Queues — capirechecked SourceTransactional Event Queues — capirechecked SourceTransactional Event Queues — capirechecked SourceTransactional Event Queues — capirechecked SourceTransactional Event Queues — capirechecked SourceTransactional Event Queues — capirechecked SourceEvent Queues in Node.js — capirechecked SourceEvents and Messaging — capirechecked SourceEvents and Messaging — capirechecked
For your agent
Ref
capability:async-processing
JSON
/capabilities/async-processing.json
MCP
Connecting an agent