Blogs

Getting Daily failed message list in XI and sending an Alert Mail with attachement(.CSV file) of that List.
Dhanabal Thangavel 
Business Card
Company: Atos Origin
Posted on Dec. 16, 2009 06:31 AM in ABAP, SAP Process Integration (PI)

Subscribe.Subscribe
Print. Print
Permalink Permalink
Share

Get the everyday’s failed message list of Integration Engine and send as an alert mail with attachment of failed message list as .csv file. Also work item to SAP-inbox with attachment.

SAP-PI is having the facility of alert configuration. It triggers the alert immediately, when message is getting failed.  But one of my requirements is to get the everyday’s failed message list of Integration Engine and send as an alert mail with attachment and also work item to SAP-inbox with attachment.
To archive this I have created a RFC to get the failed message list (also this can be used to get the all the status message like success, scheduled and failed).

Step: 1

Create the Structure in ABAP dictionary.

image

 

Step: 2

Create RFC “ZZIXX_GET_FAILED_XI_MSG_LIST”, with specific import, export and table parameter as follows.

image

Code of the RFC.

We need to pass the following input to this RFC.

  • Date to I_REPORT_DATE, if you don’t provide anything current date will be applied to it.
  • If you want Daily report then pass ‘Y’ to I_HOURLY_REPORT else pass ‘X’ to I_HOURLY_REPORT
  • Status type of the message to I_STATTYPE,  
    •  ‘1’ - successfully Executed message
    • ‘3’ – Scheduled message
    • ‘4’ – Error Message

Step: 3

Create a Report ‘ZZRXX_SEND_FAULT_MSG_ALRT_MAIL’.

Report UI looks like as follows,

You have to give E-mail list and SAP-UserID.

image
  • Email Alert will be sent to your Email recipients
  • Work Item will be sent to you SAP-Inbox of recipient SAP-users

 

Dhanabal Thangavel   Dhanabal Thangavel is a SAP PI and MII consultant, working for Atos Origin.


Comment on this article
Comment on this weblog
Showing messages 1 through 3 of 3.

Titles Only Main Topics Oldest First

  • Attachment problem
    2011-03-10 09:11:09 Naresh Nelapatla Business Card [Reply]

    After sending the mail each line of the internal table is coming in one cell.


    Suppose if i have 4 lines in internal table then first cell of each column is filling with each line.


    Normally each cell should contain one field from internal table.


Showing messages 1 through 3 of 3.