<?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 Validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004500#M408441</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;    Iam doing some validations.fileds is plant(WERKS)mateial(MATNR), ZDATBA(date from date),ZDATBI(Date to date),Zmessage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)check whether a material is selected for the given plant.if it doesn't belongs to the selected plant,display error message" Material does not&lt;/P&gt;&lt;P&gt;exist for this plant"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Check whether the message entered already exist for the plant,material,Date &lt;/P&gt;&lt;P&gt;    Combination(Note: All fields in ZMSG table).If it exists display message " A message already exists for the material,plant,date combination"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write the select quires for my requirement.Please help me.It is very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2007 09:29:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-14T09:29:17Z</dc:date>
    <item>
      <title>Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004500#M408441</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;    Iam doing some validations.fileds is plant(WERKS)mateial(MATNR), ZDATBA(date from date),ZDATBI(Date to date),Zmessage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)check whether a material is selected for the given plant.if it doesn't belongs to the selected plant,display error message" Material does not&lt;/P&gt;&lt;P&gt;exist for this plant"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Check whether the message entered already exist for the plant,material,Date &lt;/P&gt;&lt;P&gt;    Combination(Note: All fields in ZMSG table).If it exists display message " A message already exists for the material,plant,date combination"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write the select quires for my requirement.Please help me.It is very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 09:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004500#M408441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T09:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004501#M408442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select singe * from ZMSG where&lt;/P&gt;&lt;P&gt;  zplant = werks and&lt;/P&gt;&lt;P&gt;  zmatnr = matnr and&lt;/P&gt;&lt;P&gt;  zdatba = datba and&lt;/P&gt;&lt;P&gt;  zdatbi = datbi.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; message e000(0) with 'A message already exists'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 09:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004501#M408442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T09:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004502#M408443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 10:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004502#M408443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T10:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004503#M408444</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;let S_plant be the selection option&lt;/P&gt;&lt;P&gt;select matnr werks from DBTAB into itab where werks in S_plant.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;message E001(0) with ' Material Doesn't exist for the given plant'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ZMSG where&lt;/P&gt;&lt;P&gt;zplant = werks and&lt;/P&gt;&lt;P&gt;zmatnr = matnr and&lt;/P&gt;&lt;P&gt;zdatba = datba and&lt;/P&gt;&lt;P&gt;zdatbi = datbi and &lt;/P&gt;&lt;P&gt;zmessage=message.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;message E002(0) with 'A message already exists'.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second select we have to give the message field also in where if it is succesfull means we found the message with our given message then we have to display the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think this will be helpful for u.&lt;/P&gt;&lt;P&gt;Reward points if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Selvaraj Ravi Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 12:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004503#M408444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T12:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004504#M408445</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;   This answers is very help ful to me.I will give reward points to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sairam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2004504#M408445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T05:43:39Z</dc:date>
    </item>
  </channel>
</rss>

