Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FTP_COMMAND

Former Member
0 Likes
344

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.

1 REPLY 1
Read only

JoffyJohn
Active Contributor
0 Likes
309

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.)