- Get link
- X
- Other Apps
UDF CODE :
Following code for changing the folderPath of target directory :
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
conf.put(key,folderPath);
Note : Please mention 'ContextObject.Directory' in source Directory in communication channel.
Following code for changing the filename of target file :
DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
conf1.put(key1,fileName);
Comments
Post a Comment