<?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 Regarding Table Validation Logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004716#M709993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing some Table validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;A/C Number    ValidFrom   Text   ValidTo     Code&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is : No overlapping entries if the month of the new from date is greater than the month of the existing from date are allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had written some logic to handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when user enter like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000001           02.11.2007       test1   10.11.2007    ab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000002           11.11.2007       test2    20.11.2007   cd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above 2 are valid entries because no overlapping here.&lt;/P&gt;&lt;P&gt;Ofcourse my logic working perfectly for this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But suppose if the user changes the Todate of 1st entry as follws:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000001           02.11.2007       test1   &amp;lt;b&amp;gt;12.11.2007&amp;lt;/b&amp;gt;    ab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000002           11.11.2007       test2    20.11.2007   cd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case it's has to give a error message because these are overlapping here.&lt;/P&gt;&lt;P&gt;Here my logic is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please suggest me the logic to handle this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Points are assured for useful answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2007 04:58:54 GMT</pubDate>
    <dc:creator>sreeramkumar_madisetty</dc:creator>
    <dc:date>2007-11-02T04:58:54Z</dc:date>
    <item>
      <title>Regarding Table Validation Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004716#M709993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing some Table validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;A/C Number    ValidFrom   Text   ValidTo     Code&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is : No overlapping entries if the month of the new from date is greater than the month of the existing from date are allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had written some logic to handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when user enter like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000001           02.11.2007       test1   10.11.2007    ab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000002           11.11.2007       test2    20.11.2007   cd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above 2 are valid entries because no overlapping here.&lt;/P&gt;&lt;P&gt;Ofcourse my logic working perfectly for this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But suppose if the user changes the Todate of 1st entry as follws:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000001           02.11.2007       test1   &amp;lt;b&amp;gt;12.11.2007&amp;lt;/b&amp;gt;    ab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000002           11.11.2007       test2    20.11.2007   cd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case it's has to give a error message because these are overlapping here.&lt;/P&gt;&lt;P&gt;Here my logic is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please suggest me the logic to handle this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Points are assured for useful answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 04:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004716#M709993</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-11-02T04:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Table Validation Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004717#M709994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab into wa_itab1.&lt;/P&gt;&lt;P&gt;v_index = sy-index + 1.&lt;/P&gt;&lt;P&gt;read table itab into wa_itab2 index v_index.&lt;/P&gt;&lt;P&gt;if wa_itab1-validTo &amp;gt; wa_itab2-ValidFrom.&lt;/P&gt;&lt;P&gt;message e000.&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;here we r reading the consecutive records n checkin dates if its less dan prev date..else giv an error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope dis helps..Reward points if it does&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 05:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004717#M709994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T05:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Table Validation Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004718#M709995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree,&lt;/P&gt;&lt;P&gt;Check ur int table sy-index.&lt;/P&gt;&lt;P&gt;within DO loop. check if ur 1st line ToDate &amp;gt; 2nd line From date. Then throw msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srimanta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 05:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004718#M709995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T05:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Table Validation Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004719#M709996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;   Thanks for your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need diffrent test perceptions how a lemon can enter the data into the above table&lt;/P&gt;&lt;P&gt;by violating the overlapping records constraint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Points are assured for correct answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 06:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-table-validation-logic/m-p/3004719#M709996</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-11-02T06:35:46Z</dc:date>
    </item>
  </channel>
</rss>

