cancel
Showing results for 
Search instead for 
Did you mean: 

Flat file name from Sender Side Dynamically into subject of Receiver Mail

Former Member
0 Kudos

Hi All,

I am Using a file to Mail Scenario, My requirement is to get dynamically the file name from flat file of the Sender Side into Subject of Receiver Mail Adapter and attachment of file from the Sender Side. Can anyone help me out.

Thanks in Advance

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member192295
Active Contributor
0 Kudos

Hi,

We can do this requirement in XI/PI. In sender & receiver side communication channel enable Adapter Specific Message Attribute option and execute standard java function. For more information find below links.

/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure

Former Member
0 Kudos

Hi....

You can write udf in the message mapping to get the Dynamic file name and map that to the subject of the receiver mail.

DynamicConfiguration conf = (DynamicConfiguration) param.get(

StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

// read value

String Filename = conf.get(KEY_FILENAME);

Regards,

Leela