<?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: Space Fill in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237889#M1011775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that in my open dataset routine I was calculating the record length and only transfering filled lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Old Code&lt;/P&gt;&lt;P&gt;open dataset .....&lt;/P&gt;&lt;P&gt;    v_strlen = strlen( wa_rev ).&lt;/P&gt;&lt;P&gt;    transfer wa_rec to v_serfile length v_strlen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Code&lt;/P&gt;&lt;P&gt;open dataset&lt;/P&gt;&lt;P&gt;   TRANSFER wa_rec TO v_serfile LENGTH 2500.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 20:40:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-14T20:40:08Z</dc:date>
    <item>
      <title>Space Fill</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237886#M1011772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I have a simple table which I am writing to a flat file the table has a single field record structure that is 300 long, my data occupies the beginning of the record. I need to fill each record to 300 long though no matter what, filling the empty space at the end with spaces so that each record is 300 long no matter of the variable content in the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 20:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237886#M1011772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T20:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Space Fill</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237887#M1011773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some thing like this you cna do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: text(300).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;text+0(300)&lt;/STRONG&gt; = 'this is test'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 20:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237887#M1011773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T20:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Space Fill</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237888#M1011774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if you move the contents of the table directly, you will still have the entire length with space in the file. Just dont use Concatenate as it will remove the spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Open dataset  ........
 
Loop at itab.
   Transfer itab TO dataset.
Endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 20:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237888#M1011774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T20:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Space Fill</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237889#M1011775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that in my open dataset routine I was calculating the record length and only transfering filled lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Old Code&lt;/P&gt;&lt;P&gt;open dataset .....&lt;/P&gt;&lt;P&gt;    v_strlen = strlen( wa_rev ).&lt;/P&gt;&lt;P&gt;    transfer wa_rec to v_serfile length v_strlen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Code&lt;/P&gt;&lt;P&gt;open dataset&lt;/P&gt;&lt;P&gt;   TRANSFER wa_rec TO v_serfile LENGTH 2500.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 20:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/space-fill/m-p/4237889#M1011775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T20:40:08Z</dc:date>
    </item>
  </channel>
</rss>

