<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert file format into UTF-8 while generating text file on FTP server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097408#M1183015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have come across the same issue.  Try calling the FTP_COMMAND function module to make it go into ASCII mode before your FTP the file, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: result type table of text with header line.

call function 'FTP_COMMAND'
    exporting
      handle        = hdl
      command       = 'ascii'
    tables
      data          = result
    exceptions
      tcpip_error   = 1
      command_error = 2
      data_error    = 3.

  call function 'FTP_R3_TO_SERVER'
    exporting
      handle         = hdl
      fname          = docid
      character_mode = 'X'
    tables
      text           = gt_your_table .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2009 09:52:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-09T09:52:02Z</dc:date>
    <item>
      <title>Convert file format into UTF-8 while generating text file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097405#M1183012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the requirement to generate text file store it in FTP server and file format should be in UTF-8.&lt;/P&gt;&lt;P&gt;ABAP Development is completed but text file format generate in ANSI which not acceptable by client.For generating text file and store it on FTP server by using standard function module FTP_R3_TO_SERVER ,but in this function module there is no any parameter option like CODEPAGE for file format conversion. Is there any method or any function module to convert file format to UTF-8 and directly transfer or store it on FTP server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;removed_by_moderator&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Jan 28, 2009 12:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 04:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097405#M1183012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T04:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert file format into UTF-8 while generating text file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097406#M1183013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about function module TREX_TEXT_TO_UTF8 from function group TREX_UTIL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 07:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097406#M1183013</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-01-28T07:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert file format into UTF-8 while generating text file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097407#M1183014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Micky for reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I used FM TREX_TEXT_TO_UTF8 ,it convert text file containent into UTF-8 which not readable and text file format is shows in ANSI not in UTF-8 . Is there any other method that text file format type will convert to UTF-8 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097407#M1183014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert file format into UTF-8 while generating text file on FTP server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097408#M1183015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have come across the same issue.  Try calling the FTP_COMMAND function module to make it go into ASCII mode before your FTP the file, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: result type table of text with header line.

call function 'FTP_COMMAND'
    exporting
      handle        = hdl
      command       = 'ascii'
    tables
      data          = result
    exceptions
      tcpip_error   = 1
      command_error = 2
      data_error    = 3.

  call function 'FTP_R3_TO_SERVER'
    exporting
      handle         = hdl
      fname          = docid
      character_mode = 'X'
    tables
      text           = gt_your_table .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 09:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-file-format-into-utf-8-while-generating-text-file-on-ftp-server/m-p/5097408#M1183015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T09:52:02Z</dc:date>
    </item>
  </channel>
</rss>

