Let me provide the complete resolution path addressing all three critical areas:
1. SFTP Host Key Management:
The root cause is improper host key registration. You must obtain the complete SSH public key from your SFTP server (not just the fingerprint shown in your error). From the SFTP server, run:
ssh-keyscan -t rsa treasury.bank.com
This outputs the full public key. In SAP, go to transaction STRUST, select ‘SSL Client (Anonymous)’ node, and import this key as a trusted certificate. The key format must be exactly as captured - any line breaks or formatting changes will cause validation failures.
2. Fiori Communication Arrangement Configuration:
Navigate to ‘Communication Arrangements’ in Fiori Launchpad (or use transaction /IWFND/MAINT_SERVICE). Create/edit your treasury payment arrangement:
- Scenario: SAP_COM_0123 (Treasury Payment Processing)
- Communication System: Must reference an RFC destination of type ‘T’ (TCP/IP), NOT type ‘G’
- Host: treasury.bank.com
- Port: 22
- Authentication: Public Key (reference the certificate from STRUST)
- Communication User: Assign user with business role SAP_BR_TREASURY_ACCOUNTANT
The Communication Arrangement must explicitly link to the SFTP destination registered in table SSFTP_DEST. Verify this mapping using SE16 and check field DEST_NAME matches your RFC destination.
3. AIF Error Diagnostics Resolution:
Your AIF monitoring is correctly identifying the failure point. To get more detailed diagnostics:
- Transaction /AIF/ERR for error monitoring
- Check customizing table /AIF/T_FINF_D for interface-specific settings
- Enable trace level 3 for the treasury payment interface in /AIF/CUST
- Review the detailed technical log which will show the exact SSL handshake failure
After importing the correct host key in STRUST, restart the ICM process (transaction SMICM → Administration → ICM → Restart - Hard) to ensure the trust manager reloads the certificate cache.
Test the configuration:
// In SE37, test function module SFTP_CONNECT
RFC_DESTINATION = 'TREASURY_SFTP_DEST'
HOST = 'treasury.bank.com'
PORT = 22
If this function succeeds, your Fiori treasury batch payment process should work. The key insight is that S/4HANA 1809 requires the complete certificate chain in STRUST, not just fingerprint validation. Many implementations miss this detail because the error message is misleading - it’s not a network timeout, it’s certificate validation failing which causes the connection to abort.
Also verify SAP Note 2847156 is implemented - it fixes a specific bug in 1809 where SFTP host key validation fails intermittently for Fiori Communication Arrangements even when correctly configured.