Chain interfaces to set file name in sender channel dynamically
I have a requirement to use the Seeburger SFTP adapter to import a file from an external server to an SAP ECC system.
The adapter must be Seeburger as the protocol has to be SFTP, not FTPS as with the File adapter.
Although I can set a wildcard selection, I really want to poll for specific filenames with predetermined naming criteria.
The sender SFTP communication channel doesn't provide any options to specify dynamic attributes but I wonder if I can link several interfaces together, please can you confirm if the following process would work conceptually:
1) SAP ECC program runs and determines the fixed filename that I wish to import (e.g. file_abc123.xml).
2) SAP ECC program calls an outbound proxy with a mapping to set the relevant parameter in dynamic configuration ('http://seeburger.com/xi' is the namepsace, 'dtSubject' is the parameter name for the filename of the SFTP adapter). Besides mapping I think the Seeburger attribute mapper module could also be used to set this value.
3) The outbound proxy is configured on the receiver side to call an SFTP sender channel (with a dummy/blank payload as we're only calling the interface to allow settng of the filename to take place) which links to an inbound service interface on the SAP ECC receiver side.
I don't know whether chaining of service interfaces in this fashion (receiving interface also being a sender) is a viable approach or whether there are any alternatives.
Thanks in advance,