Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from abbu_sap on Apr 19 at 6:28 AM *CALL FUNCTION 'HTTP_SCRAMBLE' * EXPORTING * SOURCE = 'P@ssw0rd@123' * sourcelen = 12 * key = 26101957 * IMPORTING * destination = pwd. * * CALL FUNCTION 'FTP_CONNECT' * EXPORTING * user = 'RND-BANG' * password = pwd * host = '192.168.1.30' * rfc_destination = 'SAPFTPA' * IMPORTING * handle = hdl * EXCEPTIONS * not_connected = 1 * OTHERS = 2. * IF sy-subrc <> 0. * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. * ENDIF. * * * CALL FUNCTION 'FTP_COMMAND' * EXPORTING * handle = hdl * command = 'cd RND-BANG' * TABLES * data = ftp_data * EXCEPTIONS * tcpip_error = 1 * command_error = 2 * data_error = 3 * OTHERS = 4. * IF sy-subrc <> 0. * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. * ENDIF. * * CALL FUNCTION 'FTP_COMMAND' * EXPORTING * handle = hdl * command = 'cd Leads' * TABLES * data = ftp_data * EXCEPTIONS * tcpip_error = 1 * command_error = 2 * data_error = 3 * OTHERS = 4. * IF sy-subrc <> 0. * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. * ENDIF. * * CALL FUNCTION 'FTP_COMMAND' * EXPORTING * handle = hdl * command = 'ascii' * TABLES * data = ftp_data * EXCEPTIONS * tcpip_error = 1 * command_error = 2 * data_error = 3 * OTHERS = 4. * IF sy-subrc <> 0. * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. * ENDIF. * * CALL FUNCTION 'FTP_COMMAND' * EXPORTING * handle = hdl * command = 'dir' * TABLES * data = ftp_data1 * EXCEPTIONS * tcpip_error = 1 * command_error = 2 * data_error = 3 * OTHERS = 4. * IF sy-subrc <> 0. * MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. * ENDIF. *
| | | ---------------Original Message--------------- From: R. N. Wilhite Sent: Thursday, April 18, 2013 3:10 PM Subject: Secure FTP from ABAP My impression is that CALL FUNCTION 'FTP_CONNECT' Uses secure FTP, but I could be wrong. Neal | | Reply to this email to post your response. __.____._ | _.____.__ |