<?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 errors in flatfile in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-flatfile/m-p/3871247#M930448</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 an internal table(uploaded the records from flat file) comprising of 7 fields,&lt;/P&gt;&lt;P&gt;all the fields are of type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to find if there are any errors in those records.(don't need to correct them)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: if the field length do not match it is an error record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to find if field length matches or not i used string operation STRLN(f)&lt;/P&gt;&lt;P&gt;f is one of the fields in the internal table of field length 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF STRLN(f) &amp;lt;&amp;gt; 10.&lt;/P&gt;&lt;P&gt;WRITE : / 'ERROR RECORD'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE : / 'CORRECT RECORD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i should not use either call transaction or session method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;incase if the record has anyother errors then how to identify those errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 14:55:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T14:55:21Z</dc:date>
    <item>
      <title>errors in flatfile</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-flatfile/m-p/3871247#M930448</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 an internal table(uploaded the records from flat file) comprising of 7 fields,&lt;/P&gt;&lt;P&gt;all the fields are of type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to find if there are any errors in those records.(don't need to correct them)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: if the field length do not match it is an error record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to find if field length matches or not i used string operation STRLN(f)&lt;/P&gt;&lt;P&gt;f is one of the fields in the internal table of field length 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF STRLN(f) &amp;lt;&amp;gt; 10.&lt;/P&gt;&lt;P&gt;WRITE : / 'ERROR RECORD'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE : / 'CORRECT RECORD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i should not use either call transaction or session method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;incase if the record has anyother errors then how to identify those errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 14:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-flatfile/m-p/3871247#M930448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T14:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: errors in flatfile</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-flatfile/m-p/3871248#M930449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Saritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you want to find out length of the field you can even use this one&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DESCRIBE FIELD FLD length len_i
IF len_i  gt 10.
WRITE : / 'ERROR RECORD'.
ELSE.
WRITE : / 'CORRECT RECORD'.
&lt;/CODE&gt;&lt;/PRE&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>Mon, 12 May 2008 14:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-flatfile/m-p/3871248#M930449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T14:59:22Z</dc:date>
    </item>
  </channel>
</rss>

