‎2010 Jun 03 8:17 AM
HI,ALL:
i am kevin,i found this FM ftp_command need another process which is coded in another program,but i found this FM occupys a dialog process other than a background process,even though the program where the FMftp_command-- is is running in background process.
am i correct,guys?
best regard,kevin.
‎2010 Jun 03 9:51 AM
if you refer program :RSFTP002 provided by sap you wll get more idea.
call function 'FTP_CONNECT'
exporting
user = user
password = pwd
host = host
rfc_destination = dest " remote destination
importing
handle = hdl.
if cmd1 ne ' '.
call function 'FTP_COMMAND'
exporting
handle = hdl
command = cmd1
compress = compress
tables
data = result
exceptions
command_error = 1
tcpip_error = 2.
loop at result.
write at / result-line.
endloop.
refresh result.
endif.
Creating RFC Destination for FTP.
Run program: RSFTP005.
The RFC destinations SAPFTP and SAPFTPA will be created automatically.
SAPFTP (for local system)
SAPFTPA (for running in Application server)(This is used for file transfer in background.)