on 07-22-2009 7:33 PM
Hi Pi gurus,
when i try to get the name of the file from the mapping by using the code above in a UDF i simply get a null in place of the real name of the file.
here the code that i used:
=============================
String SourceFileName = "";
String context ="http"+":" +"/" +"/" + "sap.com/xi/XI/System/File";
try {
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http"+":" + "/" +"/" + "sap.com/xi/XI/System/File","filename");
SourceFileName = conf.get(key);
}
catch(Exception e)
{
SourceFileName = context;
}
return SourceFileName;
=================================
thank you
hey
In the sender File communication channel,did you check the Checkbox.
"Set adapter specific message attrbiutes" and "Filename"
if not,please do that first and test again.
Thanks
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.