Skip to Content
0

dynamic file name for file to mail by pass scenario

Feb 03, 2017 at 05:34 AM

216

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

6 Answers

Iñaki Vila Feb 03, 2017 at 06:59 AM
0

Hi Sri,

The way can change depending your PI version.

Check his thread

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

Regards.

Share
10 |10000 characters needed characters left characters exceeded
Sri Haritha Feb 03, 2017 at 07:31 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Sri Haritha Feb 03, 2017 at 07:33 AM
0

Hi Vila,

Currently I am using 7.31 version

Thanks and Regards,

Sri

Share
10 |10000 characters needed characters left characters exceeded
Iñaki Vila Feb 03, 2017 at 08:18 AM
0

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,

Share
10 |10000 characters needed characters left characters exceeded
Sri Haritha Feb 06, 2017 at 03:33 AM
0

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?

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 06, 2017 at 11:36 AM
0

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

Show 5 Share
10 |10000 characters needed characters left characters exceeded

Hi Apu!

I have never tried to use java mapping in pass-through scenarios as I'm not sure if I can use dummy interfaces in Operation mapping.

Did you try it? Does it work this way?

Regards, Evgeniy.

0
Former Member
Evgeniy Kolmakov

Yes Evgeniy.

It works absolutely fine and quite common to use when dynamic file name is the requirement in case of pass-through scenario. You just need to create a dummy SI with any dummy parameter and this doesn't matter as nothing will be taken from here but all will be taken as it is in InputStream.

Thanks,

Apu

0

Hi Apu!

Do I need to create dummy interfaces in ESR or just to type any dummy names for sender/receiver service interfaces in Operation mapping?

Regards, Evgeniy.

0
Former Member
Evgeniy Kolmakov

Yes, you need to create dummy ESR. Only putting dummy SI in ID will not work.

Just create a simple DT with one parameter and using this create out and in SI. Simply use this in OM and select your Java mapping.

This will not play any role actually. Your java mapping will handle all.

Thanks,

Apu

0

Yes, I understand now. I use such scenarios from time to time. Just used to think that pass-through scenarios are scenarios which are set up directly in ID without any ESR development.

Regards, Evgeniy.

0