on 09-22-2007 11:05 PM
Hi All,
I am trying to use dynamic attribute file name using UDF in message mapping:
<i>String filename = null;
filename = "Yahoo";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://seeburger.com/xi/common" , "dtSubject");
conf.put(key1,filename);
return "";</i>
But its just giving me the name on the receiver side as in the sender side.
I have checked FileName in Dynamic attributes in the reciever adapter.
Regards,
XIer
your return statement looks like <i>return "";</i>
Return the filename that you have assigned inside the UDF and can be achieved by
conf.put(key1,filename);
<b>return filename;</b>
Do refer this blog as well
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Modify your code
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.