<?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: Transfer binary file from PC to app server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553948#M1267837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use transaction CG3Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want to use same in your program then use fm C13Z_FRONT_END_TO_APPL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2009 16:22:36 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2009-04-16T16:22:36Z</dc:date>
    <item>
      <title>Transfer binary file from PC to app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553947#M1267836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to move a file from the PC to the app server.  It is a binary file.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code and file look ok, but the file is not correct.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function or other technique to move the file?  I'm afraid gui_upload may be doing some kind of conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;            raw(255) TYPE x,&lt;/P&gt;&lt;P&gt;        END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lin TYPE i.&lt;/P&gt;&lt;P&gt;  DATA: l_filename TYPE string.&lt;/P&gt;&lt;P&gt;  DATA: l_filelen TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_filename = 'c:\temp\file.bin'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = l_filename&lt;/P&gt;&lt;P&gt;      filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filelength              = l_filelen&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_target = '/dir/outputfile.bin'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET l_target FOR OUTPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;  DATA: l_pos TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    CLEAR lin.&lt;/P&gt;&lt;P&gt;    lin = XSTRLEN( itab-raw ).&lt;/P&gt;&lt;P&gt;    l_pos = l_pos + lin.&lt;/P&gt;&lt;P&gt;    IF l_pos &amp;gt; l_filelen.&lt;/P&gt;&lt;P&gt;      lin = lin - ( l_pos - l_filelen ).&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    TRANSFER itab-raw TO l_target LENGTH lin.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET l_target.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 16:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553947#M1267836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer binary file from PC to app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553948#M1267837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use transaction CG3Z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want to use same in your program then use fm C13Z_FRONT_END_TO_APPL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 16:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553948#M1267837</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-16T16:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer binary file from PC to app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553949#M1267838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this Tcode CG3Z.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 16:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553949#M1267838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T16:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer binary file from PC to app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553950#M1267839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did u tried giving the filetype as 'ASC'.&lt;/P&gt;&lt;P&gt;Give a try with this.&lt;/P&gt;&lt;P&gt;If that doesn't work then u have the option of CG3Z tcode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 16:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553950#M1267839</guid>
      <dc:creator>anuj_srivastava</dc:creator>
      <dc:date>2009-04-16T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer binary file from PC to app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553951#M1267840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a binary file.  ASC won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback the transaction and function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I used function C13Z_FILE_UPLOAD_BINARY.&lt;/P&gt;&lt;P&gt;I think my code was good.  This function has the same result.  &lt;/P&gt;&lt;P&gt;For some reason the follow on processing was acting differently on this "copied" file.  It looks the same and has the exact same byte count as the original.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to work around my other issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 18:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-binary-file-from-pc-to-app-server/m-p/5553951#M1267840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T18:50:40Z</dc:date>
    </item>
  </channel>
</rss>

