<?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 File generation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-generation/m-p/5855566#M1320500</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 have a requirement to generate a file with some data and at end the last line of the file should contain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 1: &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 2-15: 14 spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 16-20: Total count of detail records, right justified and prefixed with zero. That means count from line 3 to file till end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 21-23: 3 spaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 24-33: Total dollar value of detail records. Right justified and zero prefixed. That means total amount from line 3 of our file till end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should display like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;               00050   0058476995&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should be the logic that i need to apply here.If any code snippet, plz share the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2009 07:00:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-22T07:00:14Z</dc:date>
    <item>
      <title>File generation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-generation/m-p/5855566#M1320500</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 have a requirement to generate a file with some data and at end the last line of the file should contain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 1: &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 2-15: 14 spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 16-20: Total count of detail records, right justified and prefixed with zero. That means count from line 3 to file till end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 21-23: 3 spaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character 24-33: Total dollar value of detail records. Right justified and zero prefixed. That means total amount from line 3 of our file till end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should display like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;               00050   0058476995&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should be the logic that i need to apply here.If any code snippet, plz share the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 07:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-generation/m-p/5855566#M1320500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T07:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: File generation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-generation/m-p/5855567#M1320501</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;You need to write CONCATENATE with RESPECTING BLANKS addition to capture the blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use offset to fill the string after that append the string to file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: v_text type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move '&amp;amp;' to v_text+0(1).&lt;/P&gt;&lt;P&gt;  move '   ' to v_text+1(14).  --&amp;gt; give 14 spaces&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  append v_text to file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Velangini Showry Maria Kumar Bandanadham on Jun 22, 2009 9:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 07:03:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-generation/m-p/5855567#M1320501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T07:03:55Z</dc:date>
    </item>
  </channel>
</rss>

