on 12-09-2009 4:29 AM
Hi Experts,
My scenario is File to IDoc.
Once file has been picked up by the file adapter from source directory and it has to archived in other (target) directory with DIFFERENT file name.
By using following dynamic configuration code I have changed the file name, but I couldn't able to place this file with new name in archived folder. Please help me in this regard...
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String MyFileName = "INV.2920.1.CSV_"datetime+ ".xml";+
conf.put(key, MyFileName);
return MyFileName;
if you are using NFS for your scenario..then you can look for the Run Operting System Commands option for acheiving the same using scripts....
if need more details on the scripts then search SDN for the same.
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My scenario is File to IDoc.
Once file has been picked up by the file adapter from source directory and it has to archived in other (target)
directory with DIFFERENT file name.
this logic wont work....FileName cannot be determined Dynamically for the file to be archived.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.