cancel
Showing results for 
Search instead for 
Did you mean: 

File Adapter - pass in target directory as parameter

Former Member
0 Kudos

Hi

I'm currently using a number of File/FTP Communication Channels

all of which talk to the same FTP server

but I have a requirement to send my translated file to specific directories on the FTP Server

Ideally I'd like to have just 1 FTP Comms channel that has parameters for the Target Directory - how can this be done exactly.

I can see in the File/FTP comms channel in advanced tab the ability to provide parameters and the saphelp

is saying I'd need to pass in a directory paramater.... But where do I get to do this - I can think of Receiver or Interface Determination

but I can see nothing there to do this.... what am I missing ?

Accepted Solutions (0)

Answers (3)

Answers (3)

GabrielSagaya
Active Contributor
0 Kudos

in File Receiver CC,

in Variable Substitution

var1=payload:mtsp,1,Name,1

File Name = %var1%.xml

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

former_member187563
Contributor
0 Kudos

hi,

In your Receiver Determination, you can add multiple Receievers and you can also add the condition on which the receiver has to be choosen.

you can refer to:

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

regards,

ujjwal kumar

Former Member
0 Kudos

Use Variable Substitution...

Check this..

/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

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