on 11-06-2012 5:37 AM
Hi Experts,
I have a scenario where I need to change my target file name to the required naming convention.
Example: Source file = abc.csv
Target file name should be abc_mmddyyyy.csv ( I only need the date. I do not want time )
I am not using mapping in this scenario. Just moving the file from source to target. Please suggest me a solution how to achieve this.
Thanks,
Nani
easier way is to use operating system command to rename the file after processing...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Nani,
Please go through below links it amy be helpfull for you,
http://155.56.92.22/wiki/pages/viewpage.action?pageId=272171407
http://scn.sap.com/thread/3154451
Regards,
SHRI
hi Nani,
You can use rename command like below for adding current date:Run OS Command after message Processing :
i used in dos prompt to rename the file you can modify
according to your need.
rename abc.csv abc%date:~3,2%%date:~0,2%%date:~6,4%.csv
and it give the output as below
abc11062012.csv
try following command at ur side and check but i am not sure:
as below:
cmd.exe /C "ren %F %F%date:~3,2%%date:~0,2%%date:~6,4%.csv
try with that also:
cmd.exe /C "ren %F %F%%date:~3,2%%date:~0,2%%date:~6,4%.csv
Regards
Gagan
hi,
you can create the filename via ASMA in the adapter module (requires development)
or in a dummy mapping,
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.