<?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: validating data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data/m-p/3085219#M731699</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In ZTABLE declare four fileds as key fields..&lt;/P&gt;&lt;P&gt;den while inserting into ZTABLE it will give sy-subrc 4..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if u cant make four fileds as key in ZTABLE in program u can validate data before insertion..&lt;/P&gt;&lt;P&gt;do a select using the fileds before inserting into ZTABLE&lt;/P&gt;&lt;P&gt;if already one record exists with key fields den dnt do insert give a error message....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2007 10:23:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-05T10:23:40Z</dc:date>
    <item>
      <title>validating data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data/m-p/3085218#M731698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;     question is my selection screen consists of some mandatory fields aong with other fields. mandatory fields r fiscal year,period,company code,Account no.,WBS element.i am populating these fields along with other fields in a field catalog. when i execute the program with the test variant its gives the list display. the data which is displayed in the list is populated in a ztable. when i again run the program with same test data and try to execute it i should give an error message saying "ztable already consist this data u cannot update it again". Message will be triggered only when all the 4 fields (Fiscal year, Period, Company code and WBS element match). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here fiscal year, company code and wbs element fields r parameters where as period is a select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example my ztable consists some records with the data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comp.code         period            fiscalyear         wbselement&lt;/P&gt;&lt;P&gt;                        from  to&lt;/P&gt;&lt;P&gt; 1001                 10    12             2007      T-010139-1001GBR-VS-EN-D   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when i give in the selction screen the following data error message should get triggered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1001                   1      10          2007         T-010139-1001GBR-VS-EN-D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since period 10 record has already been updated in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Message will be triggered only when all 4 conditions are satisfied&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the same way we need to check for all the four fields.&lt;/P&gt;&lt;P&gt;i am getting the logic please help me out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data/m-p/3085218#M731698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: validating data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data/m-p/3085219#M731699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In ZTABLE declare four fileds as key fields..&lt;/P&gt;&lt;P&gt;den while inserting into ZTABLE it will give sy-subrc 4..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if u cant make four fileds as key in ZTABLE in program u can validate data before insertion..&lt;/P&gt;&lt;P&gt;do a select using the fileds before inserting into ZTABLE&lt;/P&gt;&lt;P&gt;if already one record exists with key fields den dnt do insert give a error message....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data/m-p/3085219#M731699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: validating data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data/m-p/3085220#M731700</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;First, check if all four fields are defined has key in your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes, try check with a "select" in your table if informed values just are inserted into your table before to do the insertion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-data/m-p/3085220#M731700</guid>
      <dc:creator>balbino_soaresferreirafil</dc:creator>
      <dc:date>2007-12-05T10:46:24Z</dc:date>
    </item>
  </channel>
</rss>

