cancel
Showing results for 
Search instead for 
Did you mean: 

FTP filename changes

michel_dekimpe
Participant
0 Kudos

Hello,

In a FILE to FILE scenario we would like to change the name of the file.

let's say filename on the sender side is 'datafile' and we would like it to be 'infodatafile' on the receiver side.

So add the 'info' string to the filename.

Anybody knows if this is possible ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>Anybody knows if this is possible ?

sure - you can change the filename in the mapping - using the dynamic configuration

all in standard

Regards,

Michal Krawczyk

Answers (8)

Answers (8)

Former Member
0 Kudos

Michel,

Option of message id is also available in place of timestamp..

Regards,

Former Member
0 Kudos

Michel,

At the file name scheme at receiver side...Use "Infodatafile" with file create mode plus timestamp..

this will add time stamp at the end of Infodatafile each time when ever file will be created.

this will be dynamic...

Regards,

michel_dekimpe
Participant
0 Kudos

thanks all for the replies

it has to be a bit more dynamically than this

the filename on the sender side can be anything, we just have to add a string (let's say 'info') to the filename on the receiver's side

former_member181962
Active Contributor
0 Kudos

Hi Michel,

Have you seen the blog that I have mentioned in my earlier post?

Regards,

Ravi

Former Member
0 Kudos

Michel,

directly on the file name scheme...no need to use variable substitution for this...

Regards,

Former Member
0 Kudos

Hi Michel,

Please let us know the exact scenario ?

You can simply hard code the file name, if you want to create the file name at receiver side as "infodatafile" only .

and "datafile" at sender side...

Regards,

michel_dekimpe
Participant
0 Kudos

Hi Manisha,

That's what I mean.

Where should I do that in the receiver comm. channel ?

On the tab 'target' there is a field 'file name scheme' ?

Or on the tab advanced there is a flag below 'Variable substitution' ?

Thanks for your help.

Former Member
0 Kudos

Hi,

I guess ur just doing File to File scenario without IR configuartion..in that case ID when u r creating communication channel for File receiver there itself in file name scheme u need to put "infodatafile"

and in sender file communication channel put file name scheme as "datafile"

so file with datafile is picked up and file with infodatafile is created.

Regards,

Manisha

Former Member
0 Kudos

Hi,

U mean tht u will pick file with name "datafile" and same file u will replace with different name at receiver side?

then in receiver communication channel u need to specify "infodatafile".

I don't know whether i have understood whatever u want to say

Regards,

Manisha

michel_dekimpe
Participant
0 Kudos

thanks for your reply, but we don't use a mapping for this

any idea's on how to do this

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can fill in the dynamic configuration in an adapter module also

Regards,

Michal Krawczyk

former_member181962
Active Contributor
0 Kudos

Hi Michel,

Check this Blog:

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

Regards,

Ravi

Former Member
0 Kudos

Hi Michel,

develop a custom adapter module, access the filename by using getMessageProperty, modify the filename as per ur requirement and set the filename back by using setMessageProperty

check the adapter specific parameter and filename in both the sender and receiver CC

regards,

Chandra Shekhar.