cancel
Showing results for 
Search instead for 
Did you mean: 

Archive dynamically in CC Sender FTP

former_member230596
Discoverer
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/07/17/send-file-to-two-different-locati...

Thanks

Amit Srivastava

agasthuri_doss
Active Contributor
0 Kudos

Adding to Amit blog....

>>>Is this possible? Is case that it is possible thru an Adapter Module.

Yes..

Cheers

Agasthuri

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

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.

Harish
Active Contributor
0 Kudos

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