Skip to Content
0

dynamic insertion of User/Password to SFTP adapter: POSSIBLE?

Jun 20, 2017 at 08:21 AM

139

avatar image

Hi gurus

I have a requirement where i am picking files from multiple directories and i have to maintain a value mapping in ID to determine server IP as well filepath based on region code and put it in sftp receiver adapter.

directories and regions are more than 40.(earlier it was only 14 and we were having that many sftp receiver adapters to put file to directories) but we are palnning to use only one receiver adapter now and provide data dynamically.

but problem is every sftp receiver has different user/password and i have to supply user name and password to different directories dynamically as well.

is this possible?

10 |10000 characters needed characters left characters exceeded

I'm very interested in the answer to this question. As the fields you're interested in are not part of ASMA for the SFTP adapter, the only way I could think of is by somehow overwriting standard comm channel parameters in an adapter module but I know too little about adapter module development to judge if that's even possible or if the callSapAdapter module would always take over the defaults.

Apart from my professional curiosity, I'm not very much in favor of what you're trying to do, mainly because of two reasons that I hope you have thought about already.

1) You are losing the secure credential store - I assume you would store the password in some for of fix values or value mapping table?

2) Message traceability will suffer - it will be hard to determine to which endpoint a particular message has flown if that endpoint is assigned dynamically at runtime by means of allocating a communication channel parameter only rather than a real receiver component.

Regards,
Patrick

1
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Evgeniy Kolmakov Jun 20, 2017 at 01:05 PM
1

Hi Neha!

The best approach is to use one user id/password for all ftp connections. Do you have more than 40 different FTP servers or just one server with multiple directories?

Also you can put your file to some PI's folder with some identifier pointing to actual receiver and use OS script after message processing to put the file to FTP server.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded
Apu Das Jun 20, 2017 at 11:55 AM
0

I guess, it is not possible with standard call sap adapter module.

But, I will wait for some others to reply on this.

Thanks,

Apu

Share
10 |10000 characters needed characters left characters exceeded
Manoj K Jun 20, 2017 at 12:39 PM
0

Neha,

There is no standard approach, you may refer Custom module as mentioned in below blog or Directory API if you are good at it.

https://blogs.sap.com/2013/07/17/send-file-to-two-different-locations-using-adapter-module/

Br,

Manoj

Share
10 |10000 characters needed characters left characters exceeded
RathnaKishore Ganta Jun 30, 2017 at 08:37 PM
0

Definetly there is no easy approach to handle it , i would agree with Evgeniy Kolmakov

Share
10 |10000 characters needed characters left characters exceeded
Naina R Jul 17, 2017 at 08:50 AM
0

we are going to do as many ftp channels now...closing the thread

Share
10 |10000 characters needed characters left characters exceeded