on 01-13-2008 11:46 AM
Hi Experts,
How can i create an Output file with name FIle_Price+<timestamp>.txt for the input file name File.txt using a File(FTP) Adapter.
I know we can add timestamp using Adapter specific attributes, but how we can add the word Price to the output file name.
Please suggest to achieve it.
Thanks in advance,
MK
Experts need your urgent attention.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
If the Input file name is input_11.txt, then i am able to add the Timestamp in the output file name but how can i add the word 'price' to the file name.
output file name can look like input_11_price<timestamp>.txt
Note: i am not developing any objects in the Repository.
Please suggest.
thank you.
MK
Please suggest further to achieve it, its urgent.
Thank you,
MK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi MK,
Did you try concatenating the pricr field along with the File ? I think it should work.
Thanks and Regards,
Sanjeev.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sanjeev,
thanks for ur reply.
can u please eloborate your answer. And can we make use of option Temporary file name scheme in Processing parameters of File Adapter to achieve the below requirement
If input file name is File11_IN.txt
then output file name should be File11_Price_IN_<Timestamp>.txt
please suggest.
Thank you,
MK
If ur XI is >= SP 14, then see this
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Here in step 3, instead of
String ourSourceFileName = conf.get(key);
use the following
String ourSourceFileName = conf.get(key) + "_Price";
Regards,
Prateek
U may take any field from the payload to represent the filename. In the graphical mapping, just create a UDF and copy this code. Now map the UDF to the required target field. So at this moment ur target structure is holding the filename.
Now perform variable substitution with the payload field as the variable and u ll get the required output
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Regards,
Prateek
Hi Prateek,
the scenario is FIle(FTP) to File(FTP) and the requirement is to move files from(with in same FTP server) the /downlod to /Archive directory. Hence i hav'nt created any data types, message types, mappings.
just did the communication channel configuration to move the files.
please suggest how to implement the UDF.
or can be achieved by using Dyanmic Configuration module :1 *AF_Modules/DynamicConfigurationBean *
thank you,
MK
Hence i hav'nt created any data types, message types, mappings.
I think these requirements should be made clear in the question itself.
or can be achieved by using Dyanmic Configuration module
In ur case as mentioned in last post, the DynamicConfigurationBean will be helpful.
/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean
Regards,
Prateek
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.