cancel
Showing results for 
Search instead for 
Did you mean: 

Same file name at receiver side

Former Member
0 Kudos

Hi Experts,

I am new to XI and pls correct me if my understanding is wrong???

I have gone through this thread

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

my understanding here is Source file name and Target file name should be same.

If it's the case then why don't you mention the same(source) name for Target filename from ID.

that is, you can mention both (source and target) names are same while doing configuration.

Regards,

YRaj.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks Santhosh,

Now i t's much comfortable...

since i am not working on XI....and i have done the same in my personal PC.

Thanks to all...

Regards,

YRaj.

santhosh_kumarv
Active Contributor
0 Kudos

Yeswanth,

>>But in case u have require filename in payload and wnt to add something to the name before sending it to the receiver side

There are some scenarios where we need to trigger an BPM based upon the filetype.

for eg the Sender CC picks file of type ..

The files may be of type *.txt / *.xml / *.xxx / *.yyy. In such cases we need the filename in the payload so that we can extract the file type i.e *.xxx from it and use it to trigger the corresponding BPM.

This is only an ex implementation, so to get the file name in the payload under the dynamic configuration u have to use the adapter specific message attribute...

Regards

San

there is a Way.

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Pratheek,

>>But in case u have require filename in payload and wnt to add something to the name before sending it to the receiver side.

still couldn't able to understand...

why don't you mention the same (or additions) at receiver side. (if you know the target name already).

Pls correct me if i am wrong??

Regards,

YRaj.

santhosh_kumarv
Active Contributor
0 Kudos

Hi Yeswanth,

>>my understanding here is Source file name and Target file name should be same.

Yes, the <b>target file name should be same as the source file name</b>. But it is not the case that the source file name and the target file name is always same.

1.In the Sender File adapter u specify the file name as *.txt / . that means that your CC will pick up the files in the specified irrespective of the file name.

2. In the Target File adapter u

a.either specify a file name eg. out.txt and add timestap to it to diff between the files

b.Use the variable substution to name the file

c. use the adapter specific message attribute to name the target file as same as the source file name.

If u specify a constant file name in the Sender CC and Reciver CC the channel will always pick the file only with the specified name and also create a target file name which is always a constant so u cant diff between the files.

Regards

San

there is a Way.

prateek
Active Contributor
0 Kudos

Wht u saying could be done if the sender and receiver filenames are fixed.

But in case u have require filename in payload and wnt to add something to the name before sending it to the receiver side, we should avail the option provided in the blog.

Regards,

Prateek

Former Member
0 Kudos

Thanks for your replies...

but, you have to create your target file right??

so, why don't you provide the same name for target.

or else, could you pls more eloborate on this...don't mine!!!

Regards,

YRaj.

Former Member
0 Kudos

yes you can have the same name too

regards,

Vishal

former_member335553
Active Contributor
0 Kudos

Hi

At runtime what ever the filename is , the same is being created at receiver (The line in UDF -


DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","<b>FileName</b>");)

whereas when defined /configured in ID only that particular named file is created which in real time is not feasible .

santhosh_kumarv
Active Contributor
0 Kudos

Hi Yeswanth,

U need to do this only by the adapter specific message property.

>>If it's the case then why don't you mention the same(source) name for Target filename from ID.

that is, you can mention both (source and target) names are same while doing configuration.

In this case the source file name and the target file name is always constant i.e u have to post the file every time with the same name eg. test.txt and the target file name will be always test.txt, but this is not the case in the real time scenario.

this is the reason why we do using the adapter specific message property.

Regards

San

there is a Way.