<?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: Field validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398022#M192638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  first using GUI_UPLOAD store the data in internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; then loop at internal table and validate each field against the check table of that field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.

    select single field from checktable where field = itab-field.
      if sy-subrc eq 0.
          field correct.
      endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2006 09:24:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-21T09:24:15Z</dc:date>
    <item>
      <title>Field validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398018#M192634</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 am getting confused that how to validate the Sales Order  fields data which are stored in flat file from client side and equal to sap table data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to compare and validate the fields &amp;amp; data.&lt;/P&gt;&lt;P&gt;i am new to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone can u Please send me coding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 09:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398018#M192634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T09:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398019#M192635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload that file into SAP with FM 'GUI_UPLOAD' (to internal table) Than compare that internal table with sap table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, JAcek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 09:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398019#M192635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T09:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398020#M192636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload the Flat file data to an internal table Itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;select single * from vbak where vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR MESSAGE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 09:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398020#M192636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T09:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398021#M192637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Map the flay file fields to SAP fields. &lt;/P&gt;&lt;P&gt;2. Find the check table for the SAP fields (for sales order u can check with VBAK table....there check the data elemnts of fields and check tables.....u will know which table to use for validation)&lt;/P&gt;&lt;P&gt;3. Once u find the check table, pass the field value n check if the value is present in the table (select up2 1 rows or sleect single).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aarthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 09:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398021#M192637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398022#M192638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  first using GUI_UPLOAD store the data in internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; then loop at internal table and validate each field against the check table of that field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.

    select single field from checktable where field = itab-field.
      if sy-subrc eq 0.
          field correct.
      endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 09:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398022#M192638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T09:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398023#M192639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upload that file into SAP with  'GUI_UPLOAD' (to internal table). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the check table for the SAP fields (for sales order u can check with VBAK table....there check the data elemnts of fields and check tables.....u will know which table to use for validation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than compare that internal table with sap table.&lt;/P&gt;&lt;P&gt;&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;loop at itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    select single field from checktable where field = itab-field.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;          Message i000(su) with '  information exist in the checktable   '.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;         Message e000(su) with '  information no exist in the checktable   '.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 17:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/1398023#M192639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T17:14:12Z</dc:date>
    </item>
  </channel>
</rss>

