cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically pass subject via mail adapter without using mail package

Former Member
0 Kudos

Hi,

We have requirement to pass the Dynamic variable as Mail subject

we can't use Mail Package as we need to capture the data from Dynamic SOAP header Data from incomming channel

Dynamic SOAP Header variable (XHeaderName1) comming from Sender SOAP channel.

Receiver side we need to capture that XHeaderName1 in Mail Adapter channel using ASMA and Variable transport binding so that value of XHeaderName1 should overwrite Subject under General/ Mail Atribute section.

Could you please let me know, how to handle this requirement using module configuration?

Also suggest the correct configuration to use ASMA and Variable transport binding.

Regards

Venky

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can use Variable Transport Binding to assign subject dynamically. Use below udf and configuration in your channel.

UDF:

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key=DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail", "THeaderSUBJECT");

conf.put(key, "Dynamic Mail Subject");

Communication Channel:

Regards,

Praveen

Former Member
0 Kudos

Hi Venky,

Please have a look at the links below. They should help you.

Configuring the Sender SOAP Adapter- https://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm

Configuring the Receiver Mail Adapter-https://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm

Adapter-Specific Message Attributes in the Message Header  -https://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/content.htm

Regards,

Jannus Botha