cancel
Showing results for 
Search instead for 
Did you mean: 

how to raise alerts during mapping failure

former_member238007
Contributor
0 Kudos

HI..

In a simple xml -- xml scenario. if the sturcture is wrong then a mapping exception will raise, so

when ever a mapping exception or any error occured i need to raise an alert and that file needs to

be moved to archive directory. how this type of scenarios can be handled..

regards

Kishore

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi!

I hope this thread will be useful to you.

[;

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00e97ba2-85ce-2b10-20bc-bc05cd172154]

Regards::

Amar Srinivas Eli

Former Member
0 Kudos

hi,

usually, when u get the Exception in Mapping, Moni will show Message mapping transformation error. if u want to get the proper error in moni go thru this blog

apply this UDF in u r scenario, get the proper Exception and configure Alert monitoring in the normal way. u will get the proper message in the Alert inbox.

for Archieving, while doing u r scenario branch u r reciever determination to other communication channel (ex: FILE), so u r input file will be archeived properly .according to messageID that is there in the Alert Inbox u can get the Pay load which causes the error and track the input message.

Thanks,

Madhav

Note:Points If useful

former_member183906
Active Contributor
0 Kudos

U can trigger the alert in UDF

throw new RuntimeException("This occurred to trigger an alert");

Also Please see the below links

Triggering XI Alerts from a User Defined Function -

Alerts with variables from the messages payload (XI) - UPDATED -

- Alert Configuration

- Trouble shoot alert config

Here is the blog for Alerts from UDF

Alerts can be configured in ALRTCATDEF transaction to raise alerts for errors of mapping category.

Cheers..

Former Member
0 Kudos

Hi

how to raise alerts during mapping failure

Alert can be triggered in different ways.

1) Triggering by Calling a Function Module Directly.

2) Triggering by Calling a Function Module in the Workplace Plug-In.

3) Triggering with an Event Linkage.

4) Triggering with the Post Processing Framework (PPF) or Message Control (MC)

5) Triggering from a Workflow.

6) Triggering from CCMS with autoreaction.

7) Triggering from BPM.

Defining Alert Categories

During alert category definition, you specify the alert text, expiry time, escalation, and all other conditions related to the sending of this kind of alert.

1. Ensure that you are in change mode in the alert category definition environment (transaction ALRTCATDEF).

2. Choose Create Alert Category.

3. In the Alert Category column, enter a technical key. Choose a key that describes the situation that triggers the alert, such as CUSTCANC for a category responding to a customer cancellation. This key is language-independent and identifies the alert category. The standard namespace convention applies to the key, this means keys Z* und Y* belong to the customer name space.

4. On the Properties tab page:

...

a. In the Description field, enter a description for the alert category. Choose a description that is informative with respect to the content of the alert category. The description is language-dependent.

b. If required, you can select a classification in the Classification field. If you do not choose a specific classification, the category is stored in the classification folder Unclassified. For more information on classifications, see Alert Classification.

c. In the Max. No. of Dels field, specify a maximum number of times that an alert of this category is to be delivered if it is not confirmed. This refers to delivery using a communication channel other than to the recipientu2019s display program (UWL, application-specific program, or alert inbox).

d. Select Dynamic Text if the texts of the alert category cannot be defined at this stage. This refers to situations in which the texts are not known until runtime, for example when CCMS Alerts are forwarded to ALM.

No translation can be performed for alerts with dynamic text. System messages can be entered manually in several languages.

e. In the Expiry Time in Min. field, you can enter a life span for alerts of this category if the alerts will no longer be relevant after a specific period of time. If the expiry time elapses, the alert is removed from the alert inbox and is no longer delivered using any other channel.

Expiry times can be derived from various sources. Priority is given first to the data provided by the triggering application, second to the BAdI ALERT_EXP_DATE, and third to this field in the alert category definition. If none is found in any of these sources, the default expiry of 31.12.2099 applies.

f. If you wish to specify an escalation recipient, select Escalation Active and enter the escalation recipient. Also specify a tolerance time in minutes. When escalation is active for an alert category, an alert is escalated if none of the alert recipients has confirmed the alert after this tolerance time. The escalation recipient is also informed that he or she has received the alert because of an escalation.

The escalation functionality is based on the administrator report RSALERTPROC. This report has to be scheduled as a regular job. For information on this report.

5. On the Container tab page, define any variables that you may want to use in the short text or long text. You can also define other application-specific variables, such as company code or material number. These variables are then replaced at runtime with values from the application. For more information, .

6. On the Short and Long Text tab page, enter texts for the alert category. You can include text variables referring to elements of the alert container or system symbols. In the case of a container element, the variable must be defined in the alert container. The entry in the text must be in the form &<ElementName>&.

The title is used as mail title, fax subject, and alert title in the inbox. The long text is used as mail/fax body and the long text view in the inbox. The short text is used for pager and SMS.

7. On the Optional Subsequent Activities tab page, you can enter URLs for subsequent activities. If you trigger your alerts by calling a function module, you can also specify dynamic subsequent activities. For more information, see Triggering by Calling a Function Module Directly in Triggering Alerts.

8. Save your entries.

You create an alert category to use in alert rules.

Alert Notification Step-by-Step

http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm

Defining Alert Classifications

http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm

Triggering Alerts

http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm

Setting up alerts

Alert Management

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e04141e8-0f11-2a10-adaa-9d97b062...

hope this help's you

Regard's

Chetan Ahuja