cancel
Showing results for 
Search instead for 
Did you mean: 

File name with Dateand time stamp.

Former Member
0 Kudos

Hi All,

I want to generate a file with a date and time stamp.

For that in File Receiver adaptor i am using option "Add Time Stamp" in File Construction mode. however it is generationg file name as: FileName_20082104_121211_645.txt . In this I don't know what these last three characters "_645" are? And In the File name i only want a file name with datetime stamp . I don't require underscore in between. for eg: FileName_20082104121211.txt (FileName_dateTime.txt)

Can anybody suggest me the way to achive this?

Thanks,

Atul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

645 is part of time stamp

check this link for more info

http://saptechnical.com/Tutorials/XI/Variable/substitution.htm

Shabarish_Nair
Active Contributor
0 Kudos

@FileName_20082104_121211_645

The date time stamp in XI's file adapter will be in that format. This is to avoid over writing of files created simultaneously at the same time. So the last 3 digits is a form of an unique id to distinguish between the same.

In case you want the format as FileName_20082104_121211, use the dynamic configuration and create the file name inside the mapping itself and pass it across.

To get an idea about the same, ref:

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

http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm