<?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: Spaces on internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1420999#M202066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, GUI_DOWNLOAD does not support fixed length files. It will automatically eliminates any trailing spaces. You can control it when downloading to the server side using TRANSFER with the LENGTH option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way around this problem is to have just another field of one character and always default it to 'X' to indicate record end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA BEGIN OF IT_TEST OCCURS O,&lt;/P&gt;&lt;P&gt;FLD(20) TYPE C,&lt;/P&gt;&lt;P&gt;FLD2(20) TYPE C,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;end_of_rec type c,&amp;lt;--&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;END OF IT_TEST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2006 16:57:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-14T16:57:38Z</dc:date>
    <item>
      <title>Spaces on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1420997#M202064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I have an internal table like this.&lt;/P&gt;&lt;P&gt;DATA BEGIN OF IT_TEST OCCURS O,&lt;/P&gt;&lt;P&gt;   FLD(20) TYPE C,&lt;/P&gt;&lt;P&gt;   FLD2(20) TYPE C,&lt;/P&gt;&lt;P&gt;END OF IT_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to download the it_test´s data to a file, but i need that the fld2 with white spaces. When I check the file on notepad the fld has info, but the fld2 doesn´t have blank spaces, how can i fill this field in order to have it on the downloaded file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im filling the internal table like this:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;it_test-fld = 'DATA 1 DATA 1'&lt;/P&gt;&lt;P&gt;WHILE num lt 20.&lt;/P&gt;&lt;P&gt;  CONCATENATE it_test-fld2 ' ' into it_test-fld2.&lt;/P&gt;&lt;P&gt;  add 1 to num.&lt;/P&gt;&lt;P&gt;  ENDWHILE.&lt;/P&gt;&lt;P&gt;APPEND IT_TEST.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I download it with GUI_DOWNLOAD using ASC mode.&lt;/P&gt;&lt;P&gt;Thanks for helpingme, points will be rewarded!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 16:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1420997#M202064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T16:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spaces on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1420998#M202065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;constants: c_20(20) &lt;/P&gt;&lt;P&gt; value '                    '. "place 20 blanks here in the VALUE clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE c_20 to it_test-fld2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 16:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1420998#M202065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T16:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Spaces on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1420999#M202066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, GUI_DOWNLOAD does not support fixed length files. It will automatically eliminates any trailing spaces. You can control it when downloading to the server side using TRANSFER with the LENGTH option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way around this problem is to have just another field of one character and always default it to 'X' to indicate record end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA BEGIN OF IT_TEST OCCURS O,&lt;/P&gt;&lt;P&gt;FLD(20) TYPE C,&lt;/P&gt;&lt;P&gt;FLD2(20) TYPE C,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;end_of_rec type c,&amp;lt;--&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;END OF IT_TEST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 16:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1420999#M202066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T16:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Spaces on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1421000#M202067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants : var(30) value '               '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   it_test-fld2 = var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 16:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1421000#M202067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T16:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Spaces on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1421001#M202068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has your issue been resolved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, please reward points accordingly and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, plz provide more detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 17:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-on-internal-table/m-p/1421001#M202068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T17:34:03Z</dc:date>
    </item>
  </channel>
</rss>

