Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
shariqueali2
Active Contributor
0 Kudos
778
There may be numerous ways to get unique file name in case of multi-mapping for 1..n scenario.

 

 

The way I did it was using %TIME parameter in Filename .

 

The %TIME parameter specifies time in milliseconds.

 





 

Here the last 13 characters i.e. 1507752503785 is time specified in milliseconds which when converted to date becomes 

 



 

 

Although SAP help has specified it to be used in Archiving section, but all these parameters do work for the main filename too..

 



 

 

Regards

Hope it will save you some time... 😉
5 Comments
former_member190293
Active Contributor
0 Kudos
Hi Fariha!

And why simply not to use "Add TimeStamp to file name" option in adapter's properties?

Regards, Evgeniy.
shariqueali2
Active Contributor
0 Kudos
There was a filelength restriction due to which I had to truncate the uniqueness .
shariqueali2
Active Contributor
0 Kudos
Also to add you could see  we have other parameters that can be used too , like %SEQNUM giving unique sequential number to each file during multimapping,
former_member190293
Active Contributor
0 Kudos
Hi Fariha!

As far as I remember, %SEQNUM will work if B2B Add-on is installed.

Regards, Evgeniy.
shariqueali2
Active Contributor
0 Kudos
Too Late to reply , but yes thanks for pointing that . We do have a B2B add on.

This, too, did not help as few files were overwritten due to same timestamp and I ended up writing an adapter module instead as here each message had there own XI header.

Regards
Labels in this area