Skip to Content
avatar image
Former Member

SFTP receiver- how to change format of timestamp

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

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

    sorry below is the configuration:

    Add comment
    10|10000 characters needed 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.

  • avatar image
    Former Member
    Nov 04, 2016 at 02:22 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

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

    Hello Praveen,

    Here it is:

    Thanks,

    Glory.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 10, 2016 at 07:44 AM

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

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded