Quantcast
Channel: SCN : Popular Discussions - ABAP Connectivity
Viewing all articles
Browse latest Browse all 898

Transfer data from SAP to FTP server in CSV file format

$
0
0

Hi All,

 

Can I transfer the data from SAP to FTP server in CSV file format. I have gone through the following function modules for it.

 

HTTP_SCRAMBLE  - To scramble the password

FTP_CONNECT       - To connect to the remote system

FTP_COMMAND      - To execute the FTP command

FTP_DISCONNECT  - To close the FTP connection

FTP_R3_TO_SERVER : used to transfer the internal table data as a file to other system in the character mode. 

 

CALL FUNCTION 'FTP_R3_TO_SERVER'

    EXPORTING

      handle         = w_hdl

      fname          = wrk_file          "file path of destination system

      character_mode = 'X'

 

   TABLES

      text           = it_dat

    EXCEPTIONS

      tcpip_error    = 1

      command_error  = 2

      data_error     = 3

      OTHERS         = 4.

 

what is this character_mode? The file will be a text file??

 

Thanks in Advance.

- Neha.


Viewing all articles
Browse latest Browse all 898

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>