Defining Recipients
Use
In SAP Application Interface Framework, you use recipients to define which users are responsible for which data messages. The recipient assignment of a user defines which data messages he will see in the Interface Monitor and for which data messages he will receive alert notifications, for example, emails. Using recipients, you can make sure the data messages reach the right persons in your organization, and only the right persons.
To enable the routing of data messages, you create recipients, assign interfaces to the recipients, and assign the recipients to users or user groups. The creation of recipients and their assignment to interfaces is described here. For information about assigning recipients to users or user groups, see Assigning Users to Recipients.
Features
When you create a recipient, it is not assigned to an interface. For assigning interfaces to your recipients, you can apply the following strategies:
By interface
As a basic strategy, to make sure that no message slips through without anybody being notified, you can set one recipient per interface as the default recipient. If the system cannot find any other recipient that receives a notification, a notification is always sent to the default recipient regardless of the alert settings.
In a simple business scenario, you can assign specific recipients to one or several interfaces. These recipients will receive all messages of the interface(s) according to their alert and monitoring settings.
By Message Categories
You can group log messages in message categories and assign the categories to recipients using an assignment table. You can assign specific recipients who will be notified about a data message if a log message in their category was thrown for this data message. Usually, you map such recipients to users or groups that are responsible for handling specific errors in the business content of the data messages.
For central administration users, who are responsible for monitoring a whole business process and need to have an overview of the entirety of (error) messages, you can add a standard recipient. This recipient will get all messages of the interface regardless of their category. In addition, to track which log messages are thrown but not assigned to any specific recipient, you can create a fallback recipient. The fallback recipient will get only those messages that are not covered by one of the specific recipients.
By Key Field Values
You can route the log messages based on the content of the data messages using an assignment table. You can define the key fields of a single index table as recipient-relevant and create specific recipients for certain values of the key field. If an error message is thrown for a data message containing this key field value the corresponding recipient gets notified. Usually, you assign these recipients to users or groups that are responsible for handling specific errors in the business content of the data messages.
For central administration users, who are responsible for monitoring a whole business process and need to have an overview of the entirety of (error) messages, you can add a standard recipient. This recipient will get all messages of the interface regardless of the key field values. In addition, to track which messages are not assigned to any specific recipient, you can create a fallback recipient. The fallback recipient will get only those messages that are not covered by one of the specific recipients. This way, you can track, for example, if someone entered an incorrect value in your key field or someone introduced a new correct value, for which you need to create a new recipient.
By Message Categories and Key Field Values
You can combine these assignment strategies to implement a complex recipient matrix. In a single assignment table, you can assign message categories and key field values to recipients. You can have specific recipients and fallback recipients on different levels, which is, per category, per field value, and per category/value combination. And you can have standard recipients per category, per field value, and for all messages of the interface.
Activities
Creating Recipients and Specifying Default Recipients
-
In Customizing of SAP Application Interface Framework, create all required recipients under .
-
Specify one default recipient per interface under .
Assigning Recipients to Interfaces
Assign recipients to interfaces under .
Make sure that there is no entry in . If there is an entry, the system uses the assignment table and ignores the setting in Assign Recipients Without Key Fields.
Assigning Recipients to Message Categories
-
In the ABAP dictionary, create a recipient assignment table by copying the template table /AIF/RECA_TMPL.
-
Assign the table to your interface under .
-
In transaction /AIF/MSG_CAT_DEF, create your message categories.
-
In transaction /AIF/MSG_CAT_ASGN, assign messages to your message categories.
-
In your recipient assignment table, enter the message categories, map specific recipients to the categories, and enter a fallback recipient.
Assigning Recipients to Key Fields
-
In the ABAP dictionary, create a single index table by copying the template table /AIF/STD_IDX_TBL and add the required key fields.
-
Assign the single index table to your interface under
-
Add your key fields under and select Relevant for Recipient Determination.
-
If you want to have a key field name in your recipient assignment table that is different from the name in the single index table, enter the different key field name in Field Name in Alert Recipient Assignment Table. If the field names are the same, leave this field empty.
-
In the ABAP dictionary, create a recipient assignment table by copying the template table /AIF/T_ALRT_DEF.
-
Assign the recipient table to your interface under .
-
In your recipient assignment table, add the key fields, map specific recipients to values of the key fields, and enter a fallback recipient.
Assigning Recipients to Message Categories and Key Fields
To combine both strategies, you need to do all the steps described in both sections above. For the combined recipient assignment table, use template /AIF/RECA_TMPL and add your key fields to the table.

