Skip to Content
0
Former Member
Dec 30, 2008 at 04:32 AM

Dynamic File Name - UDF

3388 Views

Hi Master,

I written the UDF for Getting the Dynamic File name.

DynamicConfiguration conf = (DynamicConfiguration) container.getParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

// Retrieve the filename

String FileName = conf.get(key);

This is working ok - but I want to return these values so I can be used in mapping.

when I try to add the statement return FileName; , the compiler then complains with the following error:

cannot return a value from method whose result type is void return FileName;

Please help me,

Thanks,

Anu