on 06-13-2008 7:12 PM
Hi ,
Is there any possibility that I can use the Dynamic configuration instead of variable substitution for changing the ftp folder location.....?
FLAG is a element in my document.
if FLAG = D route the file to below ftp path
/fmes/PM/S31/in/daily
if FLAG = M route the file to below ftp path
/fmes/PM/S31/in/month
Similliar to code as below, which is used for the FileName...
_______
Map map= container.getTransformationParameters();
//This is for generating the file Name Dynamically
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey keyFileName = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileDirectory");
conf.put(keyFileName, strFileName);
____________
Hi,
Follow this links it can helpful to you
/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
/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes it should work. Instead of giving the keyword "FileName" use "Directory" in your code.
Then in communication channel use variable substitution as similar to below link,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Pls Reward points if find useful
Thanks
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.