cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Filename on Receiver File Adapter

Former Member
0 Kudos

Hi,

I am running XI 3.0 SP 14.

The scenario is

SAP R/3 (IDOC) > XI (Receiver File Adapter)> FTP Server

There is no mapping on the XI side, we just drop the IDOC XML on to the ftp server.

I would like to configure a dynamic file name on the Receiver File Adapter where if the 'MSATZ' Field

within the E1EPD04 segment of the IDOC is populated then I would like to send a separate

Filename than the one specified on the 'File Name Scheme'.

Has anybody done this or any suggestion how I should go about this please.

Thank you.

Warm Regards,

Ranjan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Ranjan,

Take a look at Michal's Blog

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

and Sravya's Blog

/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12

You can also try a module (java code) of my blog (filename part alone).

/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi

regards,

Felix

MichalKrawczyk
Active Contributor
0 Kudos

Hi Ranjan,

you have to create a dynamicconfiguration key:

as shown in this example:

http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

you might also have a loo at my weblog:

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Regards,

michal

Former Member
0 Kudos

Michal,

You are too fast When I clicked to reply there was no answers. When I clicked post, there was already your answer.

Missed by a split second )

Regards,

Felix

MichalKrawczyk
Active Contributor
0 Kudos

Hi Felix

fastest gun in the west?:)

regards,

michal

Former Member
0 Kudos

Guys,

Really appreciated all the response. Its amazing how good this forum is. I think I have got the materials. I will see what I can do, just for this purpose we upgraded our SP to 14 hoping that it will be an easy task but looks like its not that simple.

Cheers,

Ranjan

MichalKrawczyk
Active Contributor
0 Kudos

Hi

try with creating thie dynamicconfig

it should work in a standard

Regards,

michal

Former Member
0 Kudos

Hi Guys,

When I tried to create the User defined function as below, I got the Null value for the "StreamTransformationConstants.DYNAMIC_CONFIGURATION" object.

My code looks like this,(this is part of the debuging code)

-


Start

public String Create(String a,String b,Container container){

if (container.getTransformationParameters() == null)

return "conf.null";

if (container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION) == null)

return "Dynamic.null";

return b;

{

--End

On the output I get the value "Dynamic.null". I do not know why the object value is Null.

Any suggestion pls.

Thank you.

Warm Regards,

Ranjan