<?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 file string to Dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-string-to-dataset/m-p/3251974#M776548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data type string always takes lenght from 0-255 = 256 chars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, define str(600) type c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2008 17:32:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-08T17:32:04Z</dc:date>
    <item>
      <title>Transfer file string to Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-string-to-dataset/m-p/3251973#M776547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a program which transfers inbound IDOC file from local directory to the application server.  I stored the file contents to an internal table with a single field type STRING.  The file has a maximum of 541 chars per row.  But when I transferred each row, only the first 256 chars were transferred to the file in the application server.  How will I transfer the whole string?&lt;/P&gt;&lt;P&gt;Below is a snipet of the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gc_fname TYPE authb-filename.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF gt_file OCCURS 1000,&lt;/P&gt;&lt;P&gt;           str TYPE STRING,&lt;/P&gt;&lt;P&gt;           END OF gt_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET gc_fname FOR OUTPUT IN TEXT MODE    &lt;/P&gt;&lt;P&gt;  ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    LOOP AT gt_file.&lt;/P&gt;&lt;P&gt;        TRANSFER gt_file-str TO gc_fname LENGTH 541.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLOSE DATASET gc_fname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 05:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-string-to-dataset/m-p/3251973#M776547</guid>
      <dc:creator>giancarla_aguilar</dc:creator>
      <dc:date>2008-01-08T05:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer file string to Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-string-to-dataset/m-p/3251974#M776548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data type string always takes lenght from 0-255 = 256 chars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, define str(600) type c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 17:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-string-to-dataset/m-p/3251974#M776548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T17:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer file string to Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-string-to-dataset/m-p/3251975#M776549</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;In the application server the lenght of each line is only 256 bytes.&lt;/P&gt;&lt;P&gt;So it can max only 256 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better way is split your data and send only 256 characters each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the only solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 12:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-string-to-dataset/m-p/3251975#M776549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T12:16:15Z</dc:date>
    </item>
  </channel>
</rss>

