Skip to Content
0
Former Member
Dec 09, 2009 at 04:29 AM

Dynamic Configuration Issue

24 Views

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;