Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    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

  • Get RSS Feed

5 Answers

  • Jun 20, 2017 at 01:05 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 20, 2017 at 11:55 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 20, 2017 at 12:39 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 30, 2017 at 08:37 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 17, 2017 at 08:50 AM

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

    Add comment
    10|10000 characters needed characters exceeded