on 11-11-2013 5:53 PM
Hi Experts,
On a Sender File Adapter CC, on Processing Tab File, section Processing Mode, when I select the Archive option and archive path field is available. As expected I set a path and the file is saved in that path.
I need to modify the archive path field dynamically, with message data.
Is this possible? Is case that it is possible thru an Adapter Module. Can someone show me an example or share a link that shows how to access and modify that field dynamically?
Thanks for your help.
Hello,
>>Is this possible? Is case that it is possible thru an Adapter Module.
U can refer below AM code and alter it as per ur req.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Victor,
You have another possibility with a java mapping doing the archive job. If you need a ftp archive directory you can check Former Member's blog http://scn.sap.com/blogs/praveen.sutra/2012/09/10/java-mapping-code-to-connect-to-ftp-location-and-p... . If the path is available via NFS, you can find some examples to move files like this http://www.mkyong.com/java/how-to-move-file-to-another-directory-in-java/, you would only need to adapt it to PI java mapping interface.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Victor,
With standard adapter configuration you can not determine the archive path dynamically, but you can achive this through adapter module. You can write the adapter module code and based on condition you can archive the file in different location (based on logic).
Regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.