Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Setting up high importance mail in receiver mail adapter
 
 http://wiki.sdn.sap.com/wiki/display/XI/Process+Integration+-+Exchange+Infrastructure
Applies to:
 SAP NetWeaver Process Integration 7.10
Summary
We have a client requirement to trigger a mail with the error information. The mail being sent should be marked with high importance for certain interfaces based on criticality.
Author(s):  Ram Pranav Godishala
   
Company:     Wipro Technologies
Created on:    26 Dec 2011
Author(s) Bio : Ram Pranav G is currently working on SAP PI 7.1 at Wipro Technologies. He has also worked on SAP PI 7.0.
 
Table of Contents

We have a client requirement to send mails with high priority to the receiver system so that they can act accordingly. We can achieve this using the Mail receiver

ASMA parameters THeaderPRIORITY, THeaderIMPORTANCE.
We are using the html header parameters Importance, X-Priority for MS Outlook used for the same to achieve this.
In the mapping we need to pass the values for the variable header parameters dynamically as
Importance = high and X-Priority = 1.
This is an example of a code sample: 

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail", "XHeaderName1");
conf.put(key1 ,"high");
DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail", "XHeaderName2");
conf.put(key2 ,"1");
return "";

 

We  shall be passing the html MS Outlook header parameters (Importance, X-Priority) in the variable header list as shown in the screenshot below:


Related Content
References from help.sap.com
Reference: http://help.sap.com/saphelp_nw04/Helpdata/EN/6b/4493404f673028e10000000a1550b0/content.htm

Useful Information

We can send mail with high importance using mail receiver ASMA parameters