on 04-23-2014 10:48 AM
Hi Guys,
I have a file to IDoc scenario in which the Sender system places a file on FTP Directory at source side. PI picks up the file, generates a IDoc and take a "FileName" from the name of the source file.
For example, If "Sender A" sends a file "20140404.TXT" then I have take the name like
<IDOC>
<filename>20140404.TXT </filename>
</IDOC>
It would be helpful if some helpful suggestions/approach can be provided for this scenario. Thanks, PM
Hi Peter,
you have to create udf for this.
DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
String name = conf1.get(key1);
return name;
in the sender file adapter check ASMA properties. and select File name.
Regards,
Muni.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There are tons of thread on Dynamic File Name .
Following links would be helpful to you........
http://scn.sap.com/thread/2090348
http://scn.sap.com/thread/448214
BR, Anirban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.