on 04-04-2012 1:17 PM
Hi Experts,
I created a UDF for dynamic file configuration where it will fetch the file name during runtime and send it to target IDoc field. There is no input to the UDF as it just fetches the file name dynamically. I use the UDF and map it to target IDoc field but I get the below mentioned error:
"the length 0 of the array 'sortedFunctionKeys' is not equal to the number 1 of functions."
The Java Code that I am using is a standard java code which is mentioned below:
try{
DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
// Creating a DynamicConfiguraionKey object
DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
// Accessing the Filename
return (""+conf.get(KEY_FILENAME));
}
catch (Exception e)
{
return "No filename";
}
I am unable to understand the cause of this error and I need to get rid of it so that my mapping works fine.
Please guide me in this regard.
Thanks,
Arkesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.