cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically change FTP server address

Former Member
0 Kudos

I am building an interface where I am planning to use single FTP communication channel to send files to multiple FTP servers. For this, I wanted to change FTP channel parameters dynamically using variable substituion, Seems we cannot change FTP server IP address using variable substitution. Would that be achievable thorough adapter module or it there any other way which we can use. Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

If i were u then i would have neither opted AM (just because u want to exchange messages to multiple FTP servers) nor script (becoz of error handling, in addition to that ur E2E call will not be failed in case script throws any error).

So sometime it's better to keep things simple, but the choice is urs.

Thanks

Amit Srivastava

Former Member
0 Kudos

Thanks everyone for your reply ,, I understand that this might get complicated using adapter Module but I wanted a solution similar to SAP standard partner management tool (which is not available in previous versions of PI) using this I wanted to use a generic interface in PI to create files for receiver system which the user will maintain in some table and I will read these receiver list and create files for them dynamically without any additional development in PI, I was right now trying only for file adapters where using variable substitution I could achieve it for NFS but I got stuck when it came to FTP. Do you think any better solution available for this.

former_member184720
Active Contributor
0 Kudos

Hi Amol - AFAIK- No. NFS works because the destination system is fixed and you are just changing the directory using variable substitution / DC

If the destination connection details are frequently get changed then the only option i see here is writing a script.

Place the files on NFS and using the script send them to different locations.

iaki_vila
Active Contributor
0 Kudos

Hi Amol,

If you want to send to different FTP locations you would need to do an adapter development. You can follow Amit Srivastava's blog for this purpose.


Regards.

Former Member
0 Kudos

Hi,

As above said you can achieve your requirement using Custom module .You can also achieve using unix script.

For either of the above cases you need to do thorough testing from your end .Otherwise you will end up with unwanted issues in Production environment which is not desirable.In both above cases instead of using standard adapter you are using java code/script to connect to target system ;you are not using standard PI adapter to connect.

For your requirement i recommend you not to go for either Java code/module as you don't have parameter to set target system host name/IP address dynamically.

Regards

Venkat