cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Configuration Issue

Former Member
0 Kudos

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;

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member200962
Active Contributor
0 Kudos
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.