cancel
Showing results for 
Search instead for 
Did you mean: 

about file names

Former Member
0 Kudos

is it possible to create a file name at receiver side same as sender file name?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (4)

Answers (4)

Former Member
0 Kudos

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

justin_santhanam
Active Contributor
0 Kudos

Swarup,

No need for any mapping. If we select the File Name check box in both the sender and receiver channel, it's more than enough.

raj.

Former Member
0 Kudos

Hi Raj,

I had never tried this way, But if its working successfully then thats good solution. But I think there may be restrictions as per the minimum SP requirment.

I will try for it and will confirm about it.

Thanks

Swarup

justin_santhanam
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks Raj.

Now I am clearified with this confusion. I had interpreted in differnt way. Now its confirm. Just now I have applied it in one of my existing scenario and probably it looks to be working fine.

Thanks

Swarup

Former Member
0 Kudos

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

prateek
Active Contributor
0 Kudos

Yes

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Regards,

Prateek

justin_santhanam
Active Contributor
0 Kudos

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.