on 02-11-2008 3:54 PM
is it possible to create a file name at receiver side same as sender file name?
Yes we can create if you select Adapter-Specific msg attributes in all chk boxes in the sender CC, and select Adapter-Specific msg attributes in first 3chk boxes in the receier CC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Its bit possible to use same file name on sender as well as receiver end with the help of Adapter Specific attributes at Communication channel and the below code is to be used to map the Message type in mapping.
MTSource->UDF->MTReceiver
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Michal had published a blog to use same filename from a sender to a receiver file adapter.
I think the link was already posted in one of the above post.
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
But this will be possible to use from SP14 onwards.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Swarup. Minimum reqmt is as mentioned in the blog SP14.
U need mapping only if u r going to change the file name or let say u want to include the source file name in some of the fields in ur target.
If the source and target file name needs to be same. Then just checkbox is more than enough.
raj.
Yes we can give the same name for both sender file and receiver file. If the sender directory is either same or different thats not a problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ram,
Yes of course u can do it. You need to check the AdapterSpecific Message Attributes File for both sender and receiver channels. That's it.No need of any additional work.
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
9 | |
7 | |
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.