Dear all,
here i am passing an issue wile passing the data from the sap system to the Ftp server. as in the below code when i user the data(2550) the file is getting copied correctly but if i use the data x string type i am facing the issue.
TYPES: BEGIN OF ty_xml_line,
data(2550) TYPE x, or data type xstring
END OF ty_xml_line.
DATA: gt_xml_table TYPE TABLE OF ty_xml_line,
gs_xml_table LIKE LINE OF gt_xml_table.
gs_xml_table-data = request_data. " request_data is coming as a Xstring input from other file.
APPEND gs_xml_table TO gt_xml_table.
CALL FUNCTION 'HTTP_SCRAMBLE'
CALL FUNCTION FTP_CONNECT
CALL FUNCTION FTP_COMMAND
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
handle = w_hdl
fname = wrk_file "file path of destination system
character_mode = 'X'
TABLES
text = gt_xml_table[]
Thanks & Regards
Suresh babu