cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger alert in XI from a connected SAP R/3 4.7 system

Former Member
0 Kudos

Hi,

I have an asynchronous scenerio JDBC -> XI -> SAP R/3 interface.

How can I trigger an alert when the interface fails in the SAP system ?

BR,

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

HI,

<i>***How can I trigger an alert when the interface fails in the SAP system ?</i>

If the interface not successful, then it will throw error in XI itself. If it is a application error, you can trigger the alert. From SP14 onwards , you can trigger alert for Adapter Framework also.

If you want to get trigger alert based on the success of your message( for e.g update of master table,etc), then if you want to trigger alert for that, then get the response from the R/3 and based on that trigger an alert.

For more-

http://help.sap.com/saphelp_nw2004s/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm

Hope this helps.

Regards,

Moorthy

Former Member
0 Kudos

Hi Moorthy,

I think I forgot to mention one thing,

I want to do this with out using a BPM..

Is that possible? if so how?

Vijay

Former Member
0 Kudos

Hi Vijay,

you can trigger an alert in the backend using the appropriate function modules of the alert framework. The only requirement is that you connect your R/3 system to the central alert server in this case most likely your XI system.

If you say you have a SAP interface i assume you have created a Proxy? in this case you can call the alert framework from within your proxy processing based on the outcome of your updates. If you use other methods, such as IDocs, you should have a look at the IDoc processing Workflows which would be the standard method to handle IDoc processing errors. However even there you could modify the IDoc inbound processing to use the Alert Framework.

For information on the Alert Framework which is part of SAP BASIS refer to the help: http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/frameset.htm

Details on how to trigger an alert from a function module are listed here: http://help.sap.com/saphelp_nw04/helpdata/en/d0/5e073c8e56f658e10000000a114084/content.htm

Regards

Christine

moorthy
Active Contributor
0 Kudos

Hi,

As i told if your requirement is in the target application side, then you can trigger alert from R/3 side itself. Even there is a function module for this. As mentioned in the earlier reply.

And if you want to trigger an alert without BPM, then you also , you can trigger an alert for these cases-

-Integration Engine level

-Adapter Engine Level ( if SP14 and above)

And it is based on your requirement , where you need to trigger an alert.

Here is a very good link about Alert Management-

http://help.sap.com/saphelp_nw2004s/helpdata/en/bb/f0033c128f4a7de10000000a114084/frameset.htm

Regards,

Moorthy

Answers (1)

Answers (1)

former_member91687
Active Contributor
0 Kudos

Hi Vijaykanth,

You can configure alerts to do this. Michals weblogs on this provides step by step info on how to do this:

https://www.sdn.sap.com/irj/sdn/weblogsblog=/pub/wlg/2328

https://www.sdn.sap.com/irj/sdn/weblogsblog=/pub/wlg/2327

In TCODE ALRTCATDEF, go to Settings->Configuration, here the default option is INTERNAL PROCESSING, choose SMTP FORWARDING AS XML and give the email id so as to enable you to send an email alert whenever an error occurs in XI.

If you are on SP14 and above, activation of end to end monitoring is not needed for Alerting, refer note 870232 for the same.Other note being 913858.

Regards,

Chandra

bhavesh_kantilal
Active Contributor
0 Kudos

hi Vijay,

Just to add some more info on what others have told.

Alerts can be used in XI such that whenever there is an error in your Integration Engine or Adapter Engine, an ALERT is triggered.

This will create the input in ALERTINBOX in RWB. If neeeded, an external mail can also be sent, but SCOT needs to be configured for the same.

Also, to test if your Alert Configuration is working fine, you can use the reprt RSALERTTEST in Se37.

Regards,

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

That some thing I need to do.. is there any documentation about how to go about configuring it?

regards,

Vijay

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Vijay,

First , to create Alerts, Alert Rule, just check this blog,

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step

It will help you in doing your entire Alert Configuration.

Next,from SP14 onwards, activation of end to end monitoring is not needed for Alerting. Refer to this note 870232 for this info.

Next, to test if your Alerts have been defined correctly, go to SE38. In the program , type RSALERTTEST and then click on EXECUTE button ( F8 ). In the next window, it will ask you for your ALERTCATEGORY. Just give the name of your ALERT CATEGORY and click EXECUTE.

If you have configured your alerts correctly, you will receive a message that tells ALERT IS GENERATED and will give the ALERT ID.

Now, go to your Run TIme workbench and then select ALERT INBOX and see if you have got the ALERT message in your ALERT INBOX.

If this is working fine, then the last step, implement the note 913858.

If you are below SP14, also check this blog,

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide

Regards,

Bhavesh

PS do mark points for useful answers

Former Member
0 Kudos

Hi Bhavesh,

Thats a great blog..One lase question.

The blog speaks about using system variables such as message id in the alert message. Can we use out own variables or the fields in the message in the alert message?

ex: I want to send the material number for which a process failed in the mapping.

can this be done? if yes how ?

Vijay

moorthy
Active Contributor
0 Kudos

Hi,

You can get the material number in the Alert, if it is a part of Payload.

Just look at this-

http://help.sap.com/saphelp_nw2004s/helpdata/en/84/e8763c997fda50e10000000a11405a/frameset.htm

Hope this helps,

Regards,

Moorthy

Former Member
0 Kudos

Hi,

The link you gave takes me to the overview screen ).

Guess u have a differend link!!

Regards,

Vijay

moorthy
Active Contributor
0 Kudos

Hi,

Go to Integration Process(ccBPM)from the left Menu->Defining Integration Process->Triggering Alerts in Integration Processes..

Hope you get it..

Regards,

Moorthy

Former Member
0 Kudos

Hi,

I want this to be done without BPM..Is it not possible to send the data from the message payload to Alert without using BPM?

regards,

Vijay

moorthy
Active Contributor
0 Kudos

I don;t think so you can get Material No dynamically, i.e it is not possible without BPM.

/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated

If you want to trigger an alert <b>without using BPM</b>, then you can use only following listed variables

http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm

Hope this will help you,

Regards,

Moorthy

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Like moorthy told, when trying to trigger alerts without a BPM , the only data that can be passed dynamically are those that are available in this link,

http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm

Unfortunately, data from the payload cannot be used in alerts without BPM.

Regards,

Bhavesh