<?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: Creating Fix length file help? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825306#M919938</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 guess you are getting blank lines after each line&lt;/P&gt;&lt;P&gt;just comment the code  :&lt;/P&gt;&lt;P&gt;l_line+80 = CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF and it should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A new line is created anyways for every line you append to the itab and then downloaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2008 13:22:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-22T13:22:28Z</dc:date>
    <item>
      <title>Creating Fix length file help?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825304#M919936</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;I need to create a text file that is 80 Characters in length, so spaces must be filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Class Attribute CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I do this it created additonal lines in the file so instead of  5 lines i get 10 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solutions will be appreciated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YTEST7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class CL_ABAP_CHAR_UTILITIES definition load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: L_LINE(133) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF itable_out_text,&lt;/P&gt;&lt;P&gt;            line(1000) TYPE c,&lt;/P&gt;&lt;P&gt;          END OF itable_out_text.&lt;/P&gt;&lt;P&gt;DATA : lt_out_text TYPE STANDARD TABLE OF itable_out_text WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'SYSTEM: ' SY-SYSID&lt;/P&gt;&lt;P&gt;            'USER: ' SY-UNAME&lt;/P&gt;&lt;P&gt;            'CLIENT: ' SY-MANDT&lt;/P&gt;&lt;P&gt;             into L_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_line+80 = CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 5 times.&lt;/P&gt;&lt;P&gt;lt_out_text-line = l_line.&lt;/P&gt;&lt;P&gt;append lt_out_text.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = 'C:\testing.txt'&lt;/P&gt;&lt;P&gt;        filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = lt_out_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: KevC on May 22, 2008 2:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 12:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825304#M919936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T12:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Fix length file help?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825305#M919937</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;Try to decrease the field lenth of internal table from 1000 to less 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check it........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Think may file length may be less than 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By&lt;/P&gt;&lt;P&gt;Gupta&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 13:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825305#M919937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T13:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Fix length file help?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825306#M919938</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 guess you are getting blank lines after each line&lt;/P&gt;&lt;P&gt;just comment the code  :&lt;/P&gt;&lt;P&gt;l_line+80 = CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF and it should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A new line is created anyways for every line you append to the itab and then downloaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 13:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825306#M919938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T13:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Fix length file help?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825307#M919939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When exporting the table to the text file,  Adding CRLF to the end will cause a blank like as the process does that anyway.&lt;/P&gt;&lt;P&gt;The problem is how to force an 80 char Record length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally when reading this type record in, by whatever you are passing this file to, would read one line at at time and the imbedded CRLF would signify the end of the record.  When whatever is reading this in, if the process has the input record defined as 80 bytes,&lt;/P&gt;&lt;P&gt;you should be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only other solution that I can think of is to bury a character in the 80th position and let the reading process ignore or change that character to a space when they read it in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 13:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-fix-length-file-help/m-p/3825307#M919939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T13:27:37Z</dc:date>
    </item>
  </channel>
</rss>

