Create Automatic Mail

Notification/ Email Alert for
Process Chain Monitoring

Applies to:
SAP BW 3.X, Business Intelligence 7.0. For more information, visit the EDW homepage.

Summary
This document will give brief introduction on automatic notification of RSPCM. Automatic notification is used
to send the list of „failed‟ & „unknown‟ status process chains in RSPCM to the required e-mail IDs.
Author:

Swati Ramteke

Company: Capgemini, India Pvt. Ltd.
Created on: 29 September 2010

Author Bio
Swati Ramteke is a BI Consultant working with Capgemini, India Pvt. Ltd, earlier she worked
with Patni Computer System Ltd. Swati has got a working experience of over 3 years in SAPBI 7.0, SAP BI 3.5 & SAP ABAP.

SAP COMMUNITY NETWORK
© 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
1

.................................... 5 Step 7 .sap........................... 9 SAP COMMUNITY NETWORK © 2010 SAP AG SDN .................................................................................................................................com | BPX ...........................................................................................................................................................sap................................................................................Create Automatic Mail Notification/ Email Alert for Process Chain Monitoring Table of Contents Automatic Notification in RSPCM ....................................................................... 3 Prerequisites ...............................................................................................com 2 .....................................................................boc........................................................................................................................................................................................................sap...................................... 4 Step 2 ......................................................................................................................................................... 3 Program Used ....................................................................................................... 5 Step 5 .................................................................................................................................... 8 Disclaimer and Liability Notice .................sap................... 5 Step 6 ...................................................................................................................... 3 Transaction used ........................................................................................................com | UAC .......................sdn...................................................... 3 Tables Used ........... 4 Step 1 ......com | BOC ...................................................uac....................................... 7 Related Content ............................................................................................................................................................................. 4 Step 4 ............................... 3 Implementation ........................................................................................................................ 6 Logic of the program ................................................................................................. 4 Step3 ..........................................................bpx......................................................................................................................................................................

SAP COMMUNITY NETWORK © 2010 SAP AG SDN . This setting is done from transaction RZ10.com | UAC . Transaction used Process chain Monitoring RSPCM Job Overview SM37 Process chain maintenance RSPC Edit Profile RZ10 SAPConnect Transmission Request SOST Tables Used Monitor individual process chains RSPC_MONITOR Texts for Chain RSPCCHAINT Cross-Table Log ID / Chain ID RSPCLOGCHAIN Program Used Monitoring of Selected Process Chains (Last Run) RSPC_MONITOR Prerequisites SMTP server should be configured to send mail.sap.Create Automatic Mail Notification/ Email Alert for Process Chain Monitoring Automatic Notification in RSPCM Automatic notification is used to send the list of „failed‟ & „unknown‟ status process chains in RSPCM to the required e-mail IDs.uac.sap. In case of failure mail is send to the support team and necessary action can be taken immediately.boc. Settings for the Profile Parameters Instance profile rdisp/start_icman = true icm/server_port_0 = PROT=HTTP.sap. PORT=**** All these setting have to be done by basis team.com | BOC .sdn.sap.bpx.com 3 . This is very useful for monitoring the process chain.com | BPX .

sap.com | BOC .com | UAC .sap.sdn.uac. SAP COMMUNITY NETWORK © 2010 SAP AG SDN .sap.com 4 . Click on edit document to give Subject line of email and message.bpx. below screen will display. Click on Maintain Recipient List to provide e-mail IDs.Create Automatic Mail Notification/ Email Alert for Process Chain Monitoring Implementation Following are the steps: Step 1 In RSPCM Automatic notification button is as shown below: Step 2 Enter the process variant as RSPC_MONITOR_MAIL and short description as you want.sap.com | BPX . Step3 Once you enter the above details.boc.

com | UAC .com 5 .sdn.uac.com | BOC .sap. select recipient type as Internet address. Mail. Check the check box for expr. SAP COMMUNITY NETWORK © 2010 SAP AG SDN .bpx.sap.sap. Step 6 Click on back and save the variant.Create Automatic Mail Notification/ Email Alert for Process Chain Monitoring Step 4 Edit Document: Fill the details and save.boc.com | BPX .sap. Step 5 Maintain Recipient List: Enter email IDs.

boc. click on schedule.com | UAC . b.com | BPX . SAP COMMUNITY NETWORK © 2010 SAP AG SDN . c. You have option to execute immediately or schedule it as per requirement. In RSPCM click on JOB button.sap.com 6 . We can customize this program as per our need.sdn.sap.Create Automatic Mail Notification/ Email Alert for Process Chain Monitoring Step 7 Now schedule the Job to send mail. Program RSPC_MONITOR send mail for failed and unknown status only. a.uac. To schedule the job.com | BOC .sap.sap. The purpose of this job is to trigger program RSPC_MONITOR which will send mail. Enter Job name and provide other details as required.bpx.

b. All process chain names added in RSPCM are available in table RSPC_MONITOR and other details like log ID. This includes mail subject line.sap.sdn. Append the details of failed process chain from l_s_data to mail document table l_t_mail.sap. mail document and recipient list into internal table l_t_mail. start time and end time are read from RSPCCHAINT & RSPCLOGCHAIN. Function “send”: This form is to send mail. SAP COMMUNITY NETWORK © 2010 SAP AG SDN .sap. Send mail using METHOD cl_rsra_communication=>add_content. c.com 7 .Create Automatic Mail Notification/ Email Alert for Process Chain Monitoring Logic of the program This program mainly executes two forms. METHOD cl_rsra_communication=>get_message is used to get message from mail variant (created using automatic notification of RSPCM step 2). get and send.uac.sap. “if” condition can help to send mail only in case of failure.com | UAC .com | BOC . Function “get”: This form gets RSPCM process chain‟s details into internal table l_s_data.com | BPX .bpx. this form has three parts: a.boc. status. This part can be edited to get mail as per the requirement.

com | UAC .sdn.sap.sdn.http://forums.com/irj/scn/index?rid=/library/uuid/80ffbc22-8c91-2d10-ed84-e246b29e7be5 Automatic Email Alert .jspa?threadID=1507005&tstart=0 For more information.com/thread.sap.sap.sap.sdn.bpx. SAP COMMUNITY NETWORK © 2010 SAP AG SDN .com | BOC . visit the EDW homepage.sap.com 8 .com | BPX .uac.Create Automatic Mail Notification/ Email Alert for Process Chain Monitoring Related Content Process Chain Monitoring RSPCM Overview and Steps to add Notification Mail http://www.sap.boc.

com | UAC .com | BOC .sap. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample.uac. or seek to hold. including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. SAP COMMUNITY NETWORK © 2010 SAP AG SDN .com | BPX .com 9 .sdn. SAP will not be held liable for any damages caused by using or misusing the information. code or methods suggested in this document.bpx. and anyone using these methods does so at his/her own risk.sap.boc.sap. Changes made based on this information are not supported and can be overwritten during an upgrade.sap. You agree that you will not hold.Create Automatic Mail Notification/ Email Alert for Process Chain Monitoring Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. SAP responsible or liable with respect to the content of this document.

Sign up to vote on this title
UsefulNot useful