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)

Image1.jpg

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

Image2.jpg

Image3.jpg

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

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

Image4.jpg

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

Image5.jpg

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

Image6.jpg

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

Image7.jpg

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.

Image8.jpg

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.

Image9.jpg

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)

Image10.jpg

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Erik Bengtson

    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.

    (0) 

Leave a Reply