<?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: File length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608683#M1086029</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;There's no limit for the size of the record of a file, the problem is if you want to print the record to video or you want to save the data in a Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to display the file in the video:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: W_RECORD TYPE STRING.

NEW-PAGE LINE-SIZE 1032.

OPEN DATASET &amp;lt;FILE&amp;gt; IN TEXT MODE.
IF SY-SUBRC = 0.
  DO.
    READ DATASET &amp;lt;FILE&amp;gt; TO W_RECORD.
    IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT. ENDIF.
    WRITE / W_RECORD.
  ENDDO.
  CLOSE DATASET &amp;lt;FILE&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to store the record into a table, u can create a table with field having LRAW as type, in this case you need to insert another field (type INT4) where the length is indicated, so this table should have the field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT TYPE MANDT&lt;/P&gt;&lt;P&gt;&amp;lt;KEY&amp;gt;  ???????????? (it should be a counter)&lt;/P&gt;&lt;P&gt;LRAW_LEN TYPE LAW_LINE&lt;/P&gt;&lt;P&gt;LRAW1000 TYPE LRAW1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET &amp;lt;FILE&amp;gt; IN TEXT MODE.
IF SY-SUBRC = 0.
  DO.
    READ DATASET &amp;lt;FILE&amp;gt; TO W_RECORD.
    IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT. ENDIF.
    MOVE SY-INDEX TO ZTABLE-COUNTER.
   LEN = STRLEN( W_RECORD ).
    MOVE: LEN TO ZTABLE-LRAW_LEN.
                W_RECORD TO ZTABLE-LRAW1000.
    INSERT ZTABLE.
  ENDDO.
  CLOSE DATASET &amp;lt;FILE&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way it can store a record having max 1000 chararacters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Oct 23, 2008 3:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2008 13:09:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-23T13:09:29Z</dc:date>
    <item>
      <title>File length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608681#M1086027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  We are facing some file length problem.&lt;/P&gt;&lt;P&gt;  When we are trying to upload the files to application sever using open dataset  it is storing upto 256 characters in a line. How can we extend this?&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 12:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608681#M1086027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: File length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608682#M1086028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually its storing more than 256 characters, you can check by downloading it via tcode cg3y . No special care required.&lt;/P&gt;&lt;P&gt;When using cg3y you have to use BIN mode for transfer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 12:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608682#M1086028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: File length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608683#M1086029</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;There's no limit for the size of the record of a file, the problem is if you want to print the record to video or you want to save the data in a Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to display the file in the video:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: W_RECORD TYPE STRING.

NEW-PAGE LINE-SIZE 1032.

OPEN DATASET &amp;lt;FILE&amp;gt; IN TEXT MODE.
IF SY-SUBRC = 0.
  DO.
    READ DATASET &amp;lt;FILE&amp;gt; TO W_RECORD.
    IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT. ENDIF.
    WRITE / W_RECORD.
  ENDDO.
  CLOSE DATASET &amp;lt;FILE&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to store the record into a table, u can create a table with field having LRAW as type, in this case you need to insert another field (type INT4) where the length is indicated, so this table should have the field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT TYPE MANDT&lt;/P&gt;&lt;P&gt;&amp;lt;KEY&amp;gt;  ???????????? (it should be a counter)&lt;/P&gt;&lt;P&gt;LRAW_LEN TYPE LAW_LINE&lt;/P&gt;&lt;P&gt;LRAW1000 TYPE LRAW1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET &amp;lt;FILE&amp;gt; IN TEXT MODE.
IF SY-SUBRC = 0.
  DO.
    READ DATASET &amp;lt;FILE&amp;gt; TO W_RECORD.
    IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT. ENDIF.
    MOVE SY-INDEX TO ZTABLE-COUNTER.
   LEN = STRLEN( W_RECORD ).
    MOVE: LEN TO ZTABLE-LRAW_LEN.
                W_RECORD TO ZTABLE-LRAW1000.
    INSERT ZTABLE.
  ENDDO.
  CLOSE DATASET &amp;lt;FILE&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way it can store a record having max 1000 chararacters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Oct 23, 2008 3:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 13:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608683#M1086029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T13:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: File length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608684#M1086030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;the above will work ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 13:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608684#M1086030</guid>
      <dc:creator>BH2408</dc:creator>
      <dc:date>2008-10-23T13:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: File length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608685#M1086031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I want to save the data into application sever. Then I will download that data into CSV format.  But the moment I wrote it to the application sever, i could not see whole data except 250 characters.  i.e I could not write the file more than 250 characters into application server file.  How can we extend this length.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 13:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608685#M1086031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T13:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: File length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608686#M1086032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see only 250 characters in Application server.You download the content from application server to presentation server and see the output.&lt;/P&gt;&lt;P&gt;Use this program ZUX2PC1A for downloading data from application server to presentation server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 13:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608686#M1086032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T13:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: File length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608687#M1086033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are not getting the point , You can only see 250 chara by viewing but the program is actually writing more as a proof you can download and see . For download of that i justed cg3y tcode . Hope your got the point .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 13:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608687#M1086033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T13:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: File length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608688#M1086034</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;Just as I said, the problem is not the file, but the writing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible to write string of 255 char by default: so if you try to see your file file by trx AL11, the file will be truncated after 255 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see the whole file you need to create a report like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: W_RECORD TYPE STRING.
 
NEW-PAGE LINE-SIZE 1032.
 
OPEN DATASET &amp;lt;FILE&amp;gt; IN TEXT MODE.
IF SY-SUBRC = 0.
  DO.
    READ DATASET &amp;lt;FILE&amp;gt; TO W_RECORD.
    IF SY-SUBRC  0. EXIT. ENDIF.
    WRITE / W_RECORD.
  ENDDO.
  CLOSE DATASET &amp;lt;FILE&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But remember it can't write line longer than 1032 char&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 14:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-length/m-p/4608688#M1086034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T14:01:17Z</dc:date>
    </item>
  </channel>
</rss>

