Skip to Content
avatar image
Former Member

Dynamically pass subject via mail adapter without using mail package

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 06, 2014 at 06:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 06, 2014 at 07:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded