FTP via SAP (ABAP)#

Sap Help | Help2
RSFTP001SAPFTP Version
RSFTP002FTP Kommando ausführen
RSFTP003FTP put / get Test
RSFTP004FTP Copy
RSFTP005SAPFTP Check
RSFTP006FTP Kommandolist
RSFTP007Test FB:FTP_SERVER_TO_R3 / FTP_R3_TO_SERVER
RSFTP008Test FB:FTP_CLIENT_TO_R3 / FTP_R3_TO_CLIENT
RSFTP009Test FTP put mit Verify
RSFTP011FTP Copy

SM59 > TCP/IP > sapftpFrontend FTP
SM59 > TCP/IP > sapftpaApplikation Server FTP

For RFC destination SAPFTPA check if the activation type is "Start on Application Server".
Check if the exe file sapftp is present in the application server in the path /usr/sap/<SYS ID>/SYS/exe/run

You can enable trace setting in the RFC destination and view it with report RSFTP001 or RSRFCTRC.

FTP sporadical connection stuck#

We had unpredictable aborts and stucks in the connection suddently with various connections but generally only when getting files. The network guys were not able to help, but it showed up that changing the FTP connection from "active" mode to "passive" mode helped.

SAP's special command for this is (not PASV):

set passive on

New in HCM EHP6#

According to SAP note 1605054 and EHP Infos and SCN there is a new table used as whitelist for FTP.

t.SAPFTP_SERVERSServers allowed to be used with SAPFTP
You can put a "*" in FTP_SERVER_NAME and allow all servers for the specific client (port is not important).