on 12-16-2014 9:39 AM
Hi!
Is there a way to write a file to a folder, and when it is done move the file to another folder? I know it's possible to use the "write temporary file" feature but my client want the file to be moved.
How can I do this the most simple way in the SFTP adapter?
Hi,
You can use the option "Archive File on PI server"
Along with this use the "command line - run command line after message processing" to write a script in processing tab to delete the files.
Let me know if it helps.
Thanks,
Sudhansu
Message was edited by: Sudhansukumar Behera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One more point. Please check the compatibility matrix for SFTP adapter as per note: 1695563 and 1690557.
This could be an issue why you are not able to see "run operating system commands"
Thanks,
Sudhansu
Refer to my reply in the below thread -
http://scn.sap.com/thread/3632656
AFAIK - this feature is provided as part of SP01 secure connectivity add-on.
You should also download the ESR content from Service market palce for your SP level and import into Repository.
You can download it from market place path ->
Support Packages and Patches - P" PI SFTP PGP ADDON" PI SFTP PGP ADDON 1.0
Hi!
Thanks for reply. I can only see "run operating system commands" at FTP adapter, not SFTP 😕
Anyone know why?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There may be different approaches:
1. Write OS command after processing as Rudra suggested
2. You can use another file to file scenario without ESR and just move the file. The sender channel will be in Delete Processing mode.
2nd approach is useful if you want to move the file into different server and 1st approach is preferable if you want to move into another folder in same server.
Suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan.
Assuming the file is at Receiver SFTP that you want to move...you can create 1 more flow using Standard approach as follows:
SFTP ---> File (SFTP) and do a pass through File Transfer to required location
(Configure Interval (msec) for modification check option in Sender SFTP CC)
Regards,
Azhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
you can use
Please check if might help you.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.