Hi gurus,
As we know we can use GUI_DOWNLOAD to download fiel with specific Code Page,
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = 'E:\TEXT.TXT'
* confirm_overwrite = 'X'
codepage = '8400' "Chinese
CHANGING
data_tab = i_file
EXCEPTIONS
file_write_error = 1
OTHERS = 24.
IF sy-subrc EQ 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
But my question is how to output file into FTP server with specific code page 8400?
call function 'FTP_R3_TO_SERVER'
exporting
handle = p_handle
fname = p_filename
character_mode = 'X'
tables
text = i_file
exceptions
tcpip_error = 1
command_error = 2
data_error = 3
others = 4.