Skip to Content
Author's profile photo Former Member

SAP AIF – Determining Alert Recipients based on key fields from Message payload

SAP AIF provides robust error handling mechanism along with Alert Notification where Alerts can be triggered to specific Recipient in case of Application Error. However, sometimes it is required to distribute the alerts to different Recipients based on who sent the message (e.g. If Sender system is ‘SenderSys1’ then Alert should be triggered to “Recipient1”).

SAP AIF Provides key field based Recipient determination for this purpose. This document explains steps to configure key field based recipient determination.

Step1: Define Index table containing the field on which you need to raise alert: Copy /AIF/STD_IDX_TBL into interface specific index table (e.g. Y0001_IDX_TBL). Add required Key Field on which routing needs to be defined (e.g. Sender System)


Step is only required if field on which recipient is determined is not available in AIF’s standard index table /AIF/STD_IDX_TBL.

Step 2: Assign Index table to your interface



Step 3: Define Alert recipient table by copying /AIF/T_ALRT_DEF

This table will be used to identify routing conditions for determining Recipients.


Step 4: Define different Recipients (Error Handling ->Namespace Specific Features ->Define Recipients)


Step 5: Assign different users to Recipients (System Configuration ->Assign Recipeints)


Step 6: Populate the table with different Recipients based on Key Fields value:


Step 7: Use custom Alert recipient table in Error Handling -> Namespace Specific Features ->Configure Alerts. Recipients will be identified based on this table by supplying key fields from Source message.


Assign appropriate alert category to be used.

Step 8: Define key field and assign that as to be used in Alert Recipient Determination in Error Handling -> Interface Specific Features.


After this configuration, if you execute your message and if it fails , Alert will be triggered to specific recipient based on Sender System. This can be changed to any particular fields from Payload (e.g. Company code or Department).

Limitation: Key Field based Alert determination is not allowed when Multi. Selection Type is selected as “Multiple Selection” (i.e. the data messages are selected from the multiple index table)


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Insteresting blog.

      I wonder if instead of using indexes and alert def tables, I could use BRFPLUS to determine receivers. Based on SAP data and raw data I would output the receiver name.

      Author's profile photo Former Member
      Former Member


      Everything is fine, but I need to assign an Alert Category - in other case a dump is coming up.

       I can assign only one Alert Category - so the determination of the recipient is not possible.


      Do you have an idea how to solve this problem?

      Thx in advance