SAP ABAP CONNECT TO FTP WITH PORT NE 21, sap note 633391

有个需求把生成的数据文件抛到FTP上,可这个FTP的端口port不是标准的21,用SAP的测试程序连不上。
找了一下,发现SAP有个NOTE,就是FTP服务器地址后面跟个空格然后再加上端口号就可以了。
比如:192.1.12.123 1234,1234就是端口号
如果是标准的FTP端口21,那就直接host地址就OK了

之前尝试过后面加冒号和端口号,结果不行,SAP偏要弄个和大家常识不一样的方法来处理。无语啊。

633391  - SAPFTP: Server port != 21
Symptom

SAPFTP should transfer data using another port than port 21.


Other Terms

SAPFTP, port 21


Reason and Prerequisites

This note provides information.


Solution

You can use a blank character to specify the port number separately after the host name.

Example 1: Report RSFTP002, parameter host: 'ftp_server 22'.

Example 2: Function module FTP_CONNECT, import parameter host: 'ftp_server 22'.
请使用浏览器的分享功能分享到微信等