Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

0byte file getting created while passing data using FM FTP_R3_TO_SERVER to ftp server

$
0
0

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

 



Viewing all articles
Browse latest Browse all 8332

Trending Articles



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