Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 23, 2009 at 03:52 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 23, 2009 at 05:36 AM

    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.

    Same filename from a sender to receiver :: DO we really need UDF ?

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

    Add comment
    10|10000 characters needed characters exceeded