Skip to Content
0

SFTP receiver- how to change format of timestamp

Nov 04, 2016 at 02:14 PM

407

avatar image
Former Member

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
Former Member

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

avatar image
Former Member Nov 10, 2016 at 05:36 PM
-1

sorry below is the configuration:


8gnqt.png (7.6 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded

This answer is either incorrect or inadequate. AddTimeStamp is not a valid Local Enterprise Bean and will only result in the message/file generating a Messaging:General Error.

0
avatar image
Former Member 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
Former Member

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
Former Member
Former Member

Can you show us the module configurations?

0
avatar image
Former Member Nov 10, 2016 at 05:35 PM
0

Hello Praveen,

Here it is:

Thanks,

Glory.

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