cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Sender File adapter Archiving with time stamp !!!

Former Member
0 Kudos

Hello Experts,

Greetings for the day!!

My scenario is file to file pass through with Sender as SFTP adapter and receiver as a FILE adapter. Now my current requirement is as soon as the file gets picked up by SFTP adapter, the file should be archived in folder with time stamp as YYYYMMDD-HHMMSS-mmss(milliseconds) followed by file name ABC.txt. i e in archive folder the file should look like YYYYMMDD-HHMMSS-mmss(milliseconds)_ABC.txt. But unfortunately, the file is being archived with ''1469790725923-ABC.txt"which is not correct. I have provided the following settings in the channel.

Also  SFTP ASMA Settings – Time stamp checked / not-checked makes no difference 😕

The %START property just adds a time stamp in milliseconds.

Would request you to kindly help on the same so that i can proceed further.

Thanks in advance!!!!

Many Thanks,

Best Regards,

Prashanth Bharadwaj Ch.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Prashanth,

try to use %TS variable instead of %START.

Best regards,
Vadym

manoj_khavatkopp
Active Contributor
0 Kudos

Vadym,

Curious to know are these parameter list documented anywhere ?

Because i dont see %TS in the list mentioned in this below SAP document.

Configuring the SFTP Sender Channel - SAP NetWeaver Process Integration, secure connectivity add-on ...

Br,

Manoj

Former Member
0 Kudos

Manoj,

check SAP Note #1876228 as Bence Somlyo has written.

Best regards,

Vadym

0 Kudos

%TS worked perfectly fine for me too. Thanks Vadym.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Vadym,

Thanks for your answer. working absolutely fine

0 Kudos

Dear Prashanth,

Could you check note 1876228 - Add timestamp to filename while archiving on PI/SFTP server -> Solution section.

Best regards,

Bence

former_member186851
Active Contributor
0 Kudos

Try with %TIME