cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic directory for Sender SFTP adapter

monicabhosale
Active Participant
0 Kudos

Hi All,

  Hope everybody is doing fine.

  I need urgent help for below requirement for SFTP adapter ,client requirement is

  We have deployed the SAP security Add ons (PGP-SFTP) for one of the requirements in our PI system (PI 7.11 SPS 11).

  The SFTP adapter is configured to read files from the source system.As per the guidelines from the source system , we need to determine the source directory dynamically and then poll the files.

The source folder structure looks something like this :

\Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface1

\Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface2

That is we need to pick up the file every day from a new folder, say, for 24th July 2013 - \Archive\FROM_System\2013\07\24\Interface1

25 July - \Archive\FROM_System\2013\07\25\Interface2

Will the PI SFTP adapter support this kind of requirement? As this is sftp sender adapter Operating system level command option is also not available.

Do we have any standard module/Bean to dynamically change directory name in the sender SFTP adapter?

i will really appreciate your quick help.

Thanks

Monica

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Monica,

Did you check the Dynamic Configuration possibility (SetAdapterSpecificMessageAttributes) of the FTP adapter?

http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

Best Regards

H.

monicabhosale
Active Participant
0 Kudos

Hi Harald,

  Thanks for quick reply but this is sender SFTP adapter thisSetAdapterSpecificMessageAttributes will work?? as we need dynamic directory before mapping of before we fetch d file.

Monica

Former Member
0 Kudos

Hi Monica,

Yes it should work. Did you check this thread:

http://scn.sap.com/thread/3376137

Also refer to the following documentation link for the SFTP sender adapter (scroll down to the adapter specific message attributes):

http://help.sap.com/saphelp_nwposc/helpdata/en/2e/99f0fb5a9e45b3b148c90e87fafcd1/content.htm?framese...

Best Regards

Harald