Skip to Content

dynamic file name for file to mail by pass scenario

Hi Everyone,

Can anyone tell me how to configure filename dynamically in file to mail scenario which is a by pass scenario.???

Regards,

Sri Haritha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Feb 03, 2017 at 06:59 AM

    Hi Sri,

    The way can change depending your PI version.

    Check his thread

    https://archive.sap.com/discussions/thread/3912824

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 03, 2017 at 07:31 AM

    Hi Vila,

    Thanks for sharing the link, I have the requirement to get the file name dynamically without ESR part. Can you please help me out here. I got stucked in completing the requirement.

    Thanks and Regards,

    Sri

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 03, 2017 at 07:33 AM

    Hi Vila,

    Currently I am using 7.31 version

    Thanks and Regards,

    Sri

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 03, 2017 at 08:18 AM

    Hi Sri,

    Eng developed a module bean to generate dynamic file names, therefore not ESR development is needed, i am not sure if this module will work in the mail adapter, you can ask him or to try it directly.

    The blog is

    https://blogs.sap.com/2015/02/05/dynamicattributechangebean-the-no-mapping-solution-to-changing-dynamic-configuration-dynamically/

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 06, 2017 at 03:33 AM

    Hi Vila,

    I got another requirement i.e.,I should get the filename as which I have configured in the sender channel for this file to mail scenario.Could you please help me?

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 06, 2017 at 11:36 AM

    Hi Sri,

    Simply use a Java mapping which will take all data as it is in InputStream and bypass the same in OutputStream as your existing scenario is a passthrough scenario and use Dynamic File Name Configuration here to fulfill your requirement of creating email attachment name same as your incoming file name.

    Thanks,

    Apu

    Add comment
    10|10000 characters needed characters exceeded