<?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: Copy file on application server with codepage changed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016343#M712864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Atish, Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick answer! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Atish, &lt;/P&gt;&lt;P&gt;Your guide is very helpful and I have downloaded it for further use, however I do not need to make any uploads/downloads from and to PC in the background. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Satish&lt;/P&gt;&lt;P&gt;The OPEN DATASET helped. This works in the background as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have allotted points to both of you as promised. &lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample of the code I used:&lt;/P&gt;&lt;P&gt;OPEN DATASET g_out_file FOR OUTPUT IN TEXT MODE ENCODING UTF-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_file INTO ll_file.&lt;/P&gt;&lt;P&gt;TRANSFER ll_file TO g_out_file.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET g_out_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where g_out_file is the path and file name and lt_file and ll_file are internal tables I retrieve by FM: DX_FILE_READ /type: dxrawdata/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2007 09:27:13 GMT</pubDate>
    <dc:creator>Martin_Kuma</dc:creator>
    <dc:date>2007-11-12T09:27:13Z</dc:date>
    <item>
      <title>Copy file on application server with codepage changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016340#M712861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to copy an existing *.csv file on the application server to a different location as a *.txt file with the code page UTF-8 /8400/ in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;I have a file with the name is: 'new.csv' in the DIR: '/SERVER/NEW'. &lt;/P&gt;&lt;P&gt;I need to convert the file to 'UTF-8' and copy to DIR: '/SERVER/ARCHIVE' with the name: 'archive.txt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get the file via FM: DX_FILE_READ into an internal table. Now I tried to use GUI_UPLOAD, but failed due to the fact the GUI_UPLOAD will just upload a file from PC to an internal table. Additionally I need to run the report in background. So the FG: SFES will not do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give me a hint on this?&lt;/P&gt;&lt;P&gt;I am running in a circle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2007 22:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016340#M712861</guid>
      <dc:creator>Martin_Kuma</dc:creator>
      <dc:date>2007-11-11T22:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file on application server with codepage changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016341#M712862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know any presentation server upload FM's will not work in background.&lt;/P&gt;&lt;P&gt;But there is a workaround. Check below may help you&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2007 23:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016341#M712862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-11T23:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file on application server with codepage changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016342#M712863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; While reading from the directory use OPEN DATASET FOR INPUT and read the data to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you got data in you internal table, move data from internal table to APP SERVER to the necessary directory using OPEN DATASET FOR OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your problem will get resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2007 23:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016342#M712863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-11T23:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copy file on application server with codepage changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016343#M712864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Atish, Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick answer! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Atish, &lt;/P&gt;&lt;P&gt;Your guide is very helpful and I have downloaded it for further use, however I do not need to make any uploads/downloads from and to PC in the background. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Satish&lt;/P&gt;&lt;P&gt;The OPEN DATASET helped. This works in the background as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have allotted points to both of you as promised. &lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample of the code I used:&lt;/P&gt;&lt;P&gt;OPEN DATASET g_out_file FOR OUTPUT IN TEXT MODE ENCODING UTF-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_file INTO ll_file.&lt;/P&gt;&lt;P&gt;TRANSFER ll_file TO g_out_file.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET g_out_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where g_out_file is the path and file name and lt_file and ll_file are internal tables I retrieve by FM: DX_FILE_READ /type: dxrawdata/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 09:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-file-on-application-server-with-codepage-changed/m-p/3016343#M712864</guid>
      <dc:creator>Martin_Kuma</dc:creator>
      <dc:date>2007-11-12T09:27:13Z</dc:date>
    </item>
  </channel>
</rss>

