cancel
Showing results for 
Search instead for 
Did you mean: 

File scenario

former_member270496
Participant
0 Kudos

Hi Experts,

Please help me to get a clear view on the below matter:

>In a file scenario, want to send file with name as name_1,name_2  so as to maintain uniqueness. how to attain?

Regards,

Rasmiraj Tripathy.

Accepted Solutions (1)

Accepted Solutions (1)

Dimitri
Active Contributor
0 Kudos

Enables adapter-specific message attributes in the sender and receiver adapter and indicate Filename.

At the receiver side, you can use %fileName% as a variable for the target file. In that way, the name will not be changed during processing.

former_member270496
Participant
0 Kudos

Hi Dimitri,

Thanks for the reponse.Please,send me a link of example scenario as avbove for reference.

Muniyappan
Active Contributor
0 Kudos

Dear Rasmiraj,

if you want unique file name in the receiver name then you can can set  "Add Time Stamp" in the file processing parameter. so for same file name you will get different file names in the target.

Configuring the Receiver File Adapter - Advanced Adapter Engine - SAP Library

or your business requirement is to produce the file name like name_1,name_2,etc

then for NFS transport protocol you can use Add counter as mentioned in the above link. but it has some drawback.

check below links for more info.

http://scn.sap.com/people/rajasekhar.reddy14/blog/2012/02/15/how-to-maintain-counter-sequence-to-fil...

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/02/17/sequence-numbers-and-counters-stu...

Regards,

Muniyappan.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rasmi,

As per your statement, You should be concatenating name_1, name_2 in file name to make it unique.

Use variable substitution as mentioned in the blog.

http://scn.sap.com/people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi...

Regards,

Pranav