cancel
Showing results for 
Search instead for 
Did you mean: 

Dyanmic configuration issue

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Issue resolved..Thanks abhishek and all..actually this not required filename = conf1.get(key1);

stefan_grube
Active Contributor
0 Kudos

> 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.

Former Member
0 Kudos

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..

former_member200962
Active Contributor
0 Kudos
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.

Former Member
0 Kudos

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