You can send alerts if errors occur while processing processes or in the background processing for a process chain. Process chain maintenance uses alert management for this purpose.
The alert is sent to the user who scheduled the process chain. You can assign additional recipients by assigning roles or specifying individual users in alert category maintenance (transaction ALRTCATDEF).
The recipient's display program displays the alerts. The display program can be the Universal Worklist (UWL) in the portal, the alert inbox (transaction ALRTINBOX) or an application that calls alerts using API. You can also send alerts by E-Mail, fax or SMS. This is dependent on the configuration.
If you have set the indicator in attribute maintenance for the process chain, an alert is sent by default for each process that has errors.
Before the system can trigger and send alerts, alert categories have to be assigned to the process types. The recipient, texts, priorities, escalation options, and so on can be determined in an alert category. The system determines the alert category as follows:
Alert category BWAC_PROCESS_CHAIN_FRAMEWORK is used for errors in background processing. For this category, fixed alert texts are delivered. These can be sent to the recipients if an alert occurs.
The system searches table RSPC_ALERT_CAT for an entry for the process type (process chain maintenance → Settings → Maintain Alert Categories). You can change the entries in this table. It is locked against changes through SAP deliveries. This means that additional entries that are delivered can be transferred, but the existing entries are not overwritten.
Maintain the table in two ways:
Since this class does not have to be identical to the class that implements the other process chain interfaces for this type, you can also implement alert triggers for SAP process types, without modification.
You can include instances of alerting where the exception DONT_RAISE is triggered.
If you do not enter a customer-specific alert category in the table, the system uses the alert category delivered for this process type.
You can exclude a process type from alerting by selecting No Alert for the process type in table RCPC_ALERT_CAT.
If table RSPC_ALERT_CAT does not contain entries for a process type, the system uses category BWAC_PROCESS_CHAIN_ERROR. This category uses the generic information on the process for the dynamic texts. This is also used when the system sends messages. Unlike sending messages using process chain maintenance, you can create an individual text for each process.