2008 Mar 11 12:22 PM
Dear ABAPers,
I want to Upload the data from Given FTP Server into SAP.could you please send me the Sample code.
Regards,
Ashok.
2008 Mar 11 12:26 PM
Hi Ashok,
Please try FTP FM's
FTP_COMMAND Execute a command on the FTP server
FTP_CONNECT Open a connection (and log in) to an FTP server
FTP_DISCONNECT Close the connection (and log off) the FTP server
Regards,
Venkat
Dear ABAPers,
I want to Upload the data from Given FTP Server into SAP.could you please send me the Sample code.
Regards,
Ashok.
2008 Mar 11 12:26 PM
Hi Ashok,
Please try FTP FM's
FTP_COMMAND Execute a command on the FTP server
FTP_CONNECT Open a connection (and log in) to an FTP server
FTP_DISCONNECT Close the connection (and log off) the FTP server
Regards,
Venkat
2008 Mar 11 12:27 PM
Use the following FM's ...
CALL FUNCTION 'FTP_CONNECT'
CALL FUNCTION 'FTP_COMMAND'
CALL FUNCTION 'FTP_DISCONNECT'
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = user
password = password
host = host
rfc_destination = rfc_destination
IMPORTING
handle = wa_handle
EXCEPTIONS
not_connected = 1
OTHERS = 2.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = wa_handle
command = 'ASCII'
TABLES
data = result_itab
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
handle = wa_handle
EXCEPTIONS
OTHERS = 1.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |