cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on Alerts in SAP PO 7.4 single stack.

former_member191435
Contributor
0 Kudos

Hi Folks,

I configured CBMA alert in SAP PO single stack. its working fine for PI alerts and getting mails also. But my actual requirement is I need alerts If any proxy and IDocs are failed in ECC i need alert in my mail box.

For exmple if I am working proxy to file interface. while sending proxy data from ECC if it failed in ECC I need an mail to my mailID.  I followed below urls but didnt getting mail.

Please do the need full.

Accepted Solutions (1)

Accepted Solutions (1)

former_member398373
Participant
0 Kudos

Hi Sreenivas,

This requirement is not possible in PI, it is possible in ABAP. ABAPers need to write code for triggering the mail if if fails  in ECC.

Please find below link it will help for you.

Send mail via SAP ABAP Code - Code Gallery - SCN Wiki

Regards,

Papireddy.

former_member191435
Contributor
0 Kudos

Hi Thanks for your replys.

I followed below links

Component based message alertiong on AS ABAP

CBMA ABAP ALert System.

so how that abap program will work... it is work for both proxy and idoc errors.

former_member398373
Participant
0 Kudos

Hi,


if any thing is failed in PI than component based message alert will work. if any thing failed in ECC it will not work the component based alerts. so abap code will work for proxy i don't know about IDOC's.

Thanks & Regards

Papireddy.

former_member191435
Contributor
0 Kudos

okies thanks papi reddy.... Can any one please let us know about the Idocs...

Answers (2)

Answers (2)

apu_das2
Active Contributor
0 Kudos

Hi Sreenivas,

Getting alerts from ECC for proxy is possible. Configure below steps in your ECC and PI server it will give you alerts in case of error -

1) Create a TCP/IP connection named CENTRALMONITORINGSERVER-XIALERTS in ECC with program ID SXMS_ALERT_ERROR_RECEIVE

3) Create a RFC connection in PI .Points to ECC ( You can reuse your existing IDOC default destination<XI_IDOC_DEFAULT_DESTINATION> as well )

4) Create JCO resource adapter + JCA connection Factory in NWA

    Go to NWA Resource Adapter -> Create one new Resource Adapter- Template will be SAPJRA Template -> Give an application Name -> Next give an JNDI Name -> Maintain below in properties tab

Program ID : SXMS_ALERT_ERROR_RECEIVE

MaxThread Count : <Your own value> Normally this should be 3

Gateway server : PI gateway Server

Gateway service : PI gateway Service

Destination name : XI_IDOC_DEFAULT_DESTINATION

Click Next and provide same JNDI name use have given before

Under Configuration Properties tab put destination XI_IDOC_DEFAULT_DESTINATION

Now you will get alerts for Proxy error from ECC.

Thanks,

Apu

former_member191435
Contributor
0 Kudos

Hi Das,

I already done those settings but didnt getting the alerts

apu_das2
Active Contributor
0 Kudos

Hi,

In your Alert rule did you select ABAP Proxy Run time component and Proxy Error in message statuses.

Also do one connection test in SM59 to check your connection is fine.

Thanks,

Apu

former_member191435
Contributor
0 Kudos

hi das,

In alert rule I select that check box and did connection test in both ecc and PI. but didnt get mail for error message in moni.

former_member186851
Active Contributor
0 Kudos

Hello Sreenivas,

For this requirement you need to configure some logic in ECC.

From PI alerts this is not possible unless it fails in Reciever CC