cancel
Showing results for 
Search instead for 
Did you mean: 

File Name for Proxy to File

Former Member
0 Kudos

Hi experts,

My Scenario proxy to file(FTP). Currently in my Sender Data Type Proxy one of the field holds the file name to be created at the FTP.

Could anyone help me how to use that field data (name) to create the file(FTP) with that name?

Thank you experts.

regards,

s.saravannan

Accepted Solutions (0)

Answers (3)

Answers (3)

GabrielSagaya
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Experts,

I managed to solved the problem via my search without using the UDF.

I had used variable substitution at the receiver side CC.

Please refer to the link that i followed.

Thank you guys and expert.

http://saptechnical.com/Tutorials/XI/Variable/substitution.htm

Former Member
0 Kudos

http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot

former_member184619
Active Contributor
0 Kudos

Hi,

You can get the same by creating a simple UDF (one argument - fname) and use the following code:

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

String filename = fname;

conf.put(key, filename);

return "true";

Additional parameter, in Receiver communication channel is, provide file name as * and "Set Receiver File Name as Payload Attribute Value".

Regards,

Sachin Dhingra