Skip to Content
0

SFTP receiver- how to change format of timestamp

Nov 04, 2016 at 02:14 PM

341

avatar image

Hello All,

I have a scenario in PI where i have to pick file from file folder to SFTP folder.

There is no data change involved so there is no ESR involved.

Now my requirement is to have timestamp attached to the receiver file in the following format HHMMDDhhmmss.

Is there a way I can do it without writing UDF since there is no ESR involved.

P:S I'm on SAP PI7.40 single stack

Thanks,

Glory.

10 |10000 characters needed characters left characters exceeded

Hi Glory, did you find a solution for this? Please suggest, I am facing same issue.

0
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Praveen Gandepalli Nov 04, 2016 at 02:22 PM
0

Hi Glory,

You have two options.

  1. Use ESR objects and write the java mapping to add the time stamp to source file name.
  2. Use the below custom adapter module to change the time stamp. You need to deploy the ear file then only you need to use it in the channel.

DynamicAttributeChangeBean – The no-mapping solution to changing Dynamic Configuration … dynamically!

Regards,

Praveen.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Praveen,

Thanks for the reply!

This module has been deployed already and i was able to change the timestamp format.

But now my filename is not getting displayed.

Filename should be : "Filename_timestamp"

but now i'm getting only the "timestamp" as filename

Any idea what am i missing here?

Thanks,

Glory.

0

Can you show us the module configurations?

0
Glory Chandramohan Nov 10, 2016 at 05:35 PM
0

Hello Praveen,

Here it is:

Thanks,

Glory.

Share
10 |10000 characters needed characters left characters exceeded
Glory Chandramohan Nov 10, 2016 at 05:36 PM
0

sorry below is the configuration:


8gnqt.png (7.6 kB)
Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Dec 10, 2016 at 07:44 AM
0

Hi Glory! Maybe you've missed saving ASMA file name in sender adapter?

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded