cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Substitution at communicaiton channel

Former Member
0 Kudos

Hi,

Currently my file schema is

TO%xi_output%.txt

where xi_output refers to transfer order field.

My client wants additionally warehouse number to be mentioned.

should my file schema be like this

TO%xi_whse%%xi_output%.txt

or

TO%xi_whse xi_output%.txt

Please advise me in this regard where xi_whse refers to warehouse number

Regards,

B.Anandh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

see if this hlep:

File Access Parameters

● Specify the Target Directory in which the documents are to be saved.

You can enter variables for the target directory. The variables must be enclosed by % characters.

c:/temp/local/%var1%

If the adapter is to create the target directory if it does not already exist, select Create Target Directory.

If the indicator is not set and the target directory does not already exist, the adapter returns an error.

Specify the File Name Scheme that the system is to use to save the first incoming document.

You can enter variables for the file name scheme. The variables must be enclosed by % characters.

Regards

Vijaya

Former Member
0 Kudos

Hi,

But my question is i have two variable to be used.

so both the variable must be enclosed in %one% %two%

or %one two%

Regards,

B.Anandh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Though I have not tired this, it should be possible.

Use different Variables Names withing % % sign and then given the variable refernce.

Regards,

Bhavesh

Former Member
0 Kudos

HI,

It should be %one% %two%

Thanks,

Tuhin

Answers (1)

Answers (1)

STALANKI
Active Contributor
0 Kudos

check thz

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

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii