Skip to end of metadata
Go to start of metadata

Author: http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.SDNBusinessCard?u=Acdz2ooCJSc%3D* *

Submitted: 05/01/2009
Related Links:

Description

Use Adapter Specific Message Attributes for the target Communication Channel(CC).Check the indicator for filename in the advanced tab of CC

Create a UDF with input as file name and copy/paste this code

/* Using Dynamic Configuration */
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//conf.removeAll();
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
//String filename= conf.get(key);
conf.put(key, fileName);
key= null;


return fileName;

In the above example the UDF has value as cache.The output of this UDF is assigned to the root of the xml document.