<?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: Format the fields in a flatfile in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-the-fields-in-a-flatfile/m-p/2820922#M659779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you don't need a code sample for how to read a file... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For "number / not number" validation and right-justify you can find a sample here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://friendlyabaper.blogspot.com/2006/10/fun-with-numbers.html" target="test_blank"&gt;http://friendlyabaper.blogspot.com/2006/10/fun-with-numbers.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Left-justify" - use SHIFT LEFT DELETING LEADING space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 18:28:56 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2007-09-20T18:28:56Z</dc:date>
    <item>
      <title>Format the fields in a flatfile</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-the-fields-in-a-flatfile/m-p/2820921#M659778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a flatfile which has 7 fields which I need to format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is for every row in the flatfile, I have to check &lt;/P&gt;&lt;P&gt;FOR EVERY ROW in &amp;lt;flatfile&amp;gt;&lt;/P&gt;&lt;P&gt;     IF NUMERIC Field&lt;/P&gt;&lt;P&gt;         Right-justify field value &amp;amp; Pad with leading zeroes to the LEFT.&lt;/P&gt;&lt;P&gt;         WRITE FIELD to &amp;lt;flatfile&amp;gt;&lt;/P&gt;&lt;P&gt;     ELSE IF ALPHANUMERIC FIELD        &lt;/P&gt;&lt;P&gt;         Left-justify field value and Pad leading spaces to the RIGHT.&lt;/P&gt;&lt;P&gt;         WRITE FIELD to &amp;lt;flatfile&amp;gt;&lt;/P&gt;&lt;P&gt;    ENDIF        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Anishur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-the-fields-in-a-flatfile/m-p/2820921#M659778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Format the fields in a flatfile</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-the-fields-in-a-flatfile/m-p/2820922#M659779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you don't need a code sample for how to read a file... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For "number / not number" validation and right-justify you can find a sample here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://friendlyabaper.blogspot.com/2006/10/fun-with-numbers.html" target="test_blank"&gt;http://friendlyabaper.blogspot.com/2006/10/fun-with-numbers.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Left-justify" - use SHIFT LEFT DELETING LEADING space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 18:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-the-fields-in-a-flatfile/m-p/2820922#M659779</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-09-20T18:28:56Z</dc:date>
    </item>
  </channel>
</rss>

