on 01-12-2011 10:54 AM
Hi All,
I am doing a Proxy to File Scenario. I have used the dynamic configuration to get the file name from the proxy and put it to the file with as name source name.ACK.
The code used is
DynamicConfiguration conf1 = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
filename = conf1.get(key1);
filename = filename+".ACK";
conf1.put(key1,filename);
return filename;
But i am not getting it when i am using .ACK.Please help
Issue resolved..Thanks abhishek and all..actually this not required filename = conf1.get(key1);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I have used the dynamic configuration to get the file name from the proxy
That does not make sense. When you have a sender proxy, you have no filename, so you cannot read it from dynamic configuration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Yes I am using the input field which will have filename to the target, this working fine but i want add that file name .ACK it is not coming with filename. I think somewhere i am missing in the code. this ACK actually the acknowledgement confirmation saying..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
filename = conf1.get(key1);
Proxy to File scenario....the above statement is not required.
DynamicConfiguration conf1 = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
filename = filename+".ACK"; //filename comes from proxy_field
conf1.put(key1,filename);
return filename;
Are you sure you should be using .ACK as extension of the file?
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if the filename is passed in the proxy then the filename will get generated in the target...
as the file name (i.e source file name ) itself is not passed filename cannot be generated on the fly..
instead of get filename use some string with constant file name or pass the input field which will have filename ..so that target file name will be generated based on that..
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.