Eliminate dialog runtime timeouts and batch job scheduling lag in SAP S/4HANA. Architect persistent, real-time background workers using ABAP Daemons (cl_abap_daemon) and Push Channel Protocol (PCP).
Complete blueprints for ABAP Daemons, Application Jobs, and RAP architecture in The SAP Clean Core & ABAP Cloud Handbook.
In traditional SAP development, background workloads rely on batch jobs (SM36/SM37). While suitable for nocturnal mass processing, batch jobs have significant drawbacks for modern real-time architectures:
STARTING NEW TASK) from user sessions is vulnerable to dialog work process timeout limits.ABAP Daemons (introduced in modern SAP NetWeaver and standard in ABAP Cloud) are event-driven, persistent processes executing in specialized non-dialog background sessions:
cl_abap_daemon_ext_base.on_error).To deliver instructions to a running daemon, callers use if_ac_message_type_pcp. Unlike plain strings, PCP messages provide structured key-value headers and typed payloads:
DATA(lo_msg) = cl_ac_message_type_pcp_factory=>create_message( ).
lo_msg->set_field( i_name = 'EVENT_TYPE' i_value = 'ORDER_CREATED' ).
lo_msg->set_text( '{"orderId": "1002931"}' ).
cl_abap_daemon_client_manager=>send(
i_class_name = 'ZCL_EVENT_DAEMON'
i_name = 'INSTANCE_01'
i_message = lo_msg
).
ABAP Daemons serve three primary architectural patterns in Clean Core landscapes:
Get complete blueprints for ABAP Daemons, background workers, and Clean Core architecture in The SAP Enterprise Architecture Suite.