on 05-08-2014 11:21 AM
Hi Everyone,
We are using SFTP asa sender adapter.In the sender side,we have to pick the different files from one folder.How is it possible using SFTP.
I have checked the links but they mentiond the file names starts with the same name.
Example:
Folder name: ABCD
File names : Dummy1.txt
Hello2.txt
Fine31.txt.
Can anyone throw some light on this ??
Hi Sahiti,
In addition to Mark, the regular expression to do an * in the SFTP channel is .*\, for example, Fine.*\.txt to get Fine31.txt or Fine1.txt or FineHello.txt, etc
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your reply.But we are using PI7.31,we could not able to see the Exclusivemask and message protocol(SSH),we have filelist and Message protocol as File.Please provide your valuable inputs for below queries:
1.I need to exclude some file like Fine312,i don't want to pick that file.How can i do that using SFTP??
2.After picking the file, i have to place the file at some path by concating one field(I know i can do that using variable substitution).But how is this possible as my filename have different names.
Ex:
Source file:
Dummy1.txt
Hello2.txt
Fine31.txt.
Fine312.txt
Target File:
Dummy1_PONumber.txt
Hello2_PONumber.txt
Fine31_PONumber.txt.
Please provide your valuable inputs.
Hi ,
you can use the dynamic configuration . check the below link.
http://saptechnical.com/Tips/XI/ASMA/Index.htm
http://www.saptechnical.com/Tutorials/XI/Adapterspecific/Attributes.htm
Regards
srinivas
I think if you you select additional files option then files wil get processed as attachment but not the main payload.
Why don't you write a regular expression to exclude the required files? like for the above case
(?!Fine312).*\.txt should work for you.. It'll pick all .txt files except Fine312..
Regarding the file name.. you can make use of the Dynamic configuration
Hi,
You can use file name as * or *.*
Regards
srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.