<?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: Overlapping Entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422366#M1244469</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;&lt;/P&gt;&lt;P&gt;I can provide you the pseduo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Fetch all the entries in the database table into internal table say INT1 and take another internal table INT2 of same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) loop at int1 into wa_int1.&lt;/P&gt;&lt;P&gt;*here we will check that if the entry with same range is already existing intable or not.&lt;/P&gt;&lt;P&gt;    read table int1 with key int1-from = wa_int1-from&lt;/P&gt;&lt;P&gt;                             int1-to  = wa_int1-to. &lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*if it is already existing than we wil ldisplay messeage&lt;/P&gt;&lt;P&gt;    error message.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;*else we will append to another internal table.&lt;/P&gt;&lt;P&gt;    append wa_int1 into Int2.&lt;/P&gt;&lt;P&gt;    endif. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2009 08:52:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-06T08:52:25Z</dc:date>
    <item>
      <title>Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422360#M1244463</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;I have a requirement in which I have a database table in which we store limits as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustGrp           From             To&lt;/P&gt;&lt;P&gt;A1                   0                   1000&lt;/P&gt;&lt;P&gt;A2                   1001              2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that when a user enters these limits through SM30 then we have to make a check that "NO TWO RANGES FOR DIFFERENT CustGrp ARE OVERLAPPING". I want to use Extended Table Maintenance Generator Events. Please Let me Know can we do this and how??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Braham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422360#M1244463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422361#M1244464</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;For this you should go to se11-&amp;gt;utilities-&amp;gt;table maintaince generatot-&amp;gt;enviroment-&amp;gt;modification-&amp;gt;events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a new form routine according to the event. And in the editor you should write logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Between &lt;/P&gt;&lt;P&gt;form &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422361#M1244464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422362#M1244465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the event, But I am not able to compare the field of two records in that. How to do that can you provide the code for that???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422362#M1244465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422363#M1244466</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;On further explaination to above information. When we give the name of the event say check_range then in the editor we need to explicitly mention the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form check_range.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else it will not be activated.&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;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422363#M1244466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422364#M1244467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PLease elaborate me on the requirement once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422364#M1244467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422365#M1244468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my requirement is that .....&lt;/P&gt;&lt;P&gt;I have 3 fields CUSTGRP, FROM, TO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets take RECORD 1 :  A1-0-1000&lt;/P&gt;&lt;P&gt;               RECORD 2 : A2-1001-2000&lt;/P&gt;&lt;P&gt;               Record 3 :    A3-500-3000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see 'record 3' which has a (range from 500 to 3000) which overlaps with Rec 1 and Rec 2.......&lt;/P&gt;&lt;P&gt;Now if the user enters or updates an entry then we need to make sure there is no overlaping and give an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you get the requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422365#M1244468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422366#M1244469</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;&lt;/P&gt;&lt;P&gt;I can provide you the pseduo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Fetch all the entries in the database table into internal table say INT1 and take another internal table INT2 of same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) loop at int1 into wa_int1.&lt;/P&gt;&lt;P&gt;*here we will check that if the entry with same range is already existing intable or not.&lt;/P&gt;&lt;P&gt;    read table int1 with key int1-from = wa_int1-from&lt;/P&gt;&lt;P&gt;                             int1-to  = wa_int1-to. &lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*if it is already existing than we wil ldisplay messeage&lt;/P&gt;&lt;P&gt;    error message.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;*else we will append to another internal table.&lt;/P&gt;&lt;P&gt;    append wa_int1 into Int2.&lt;/P&gt;&lt;P&gt;    endif. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422366#M1244469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422367#M1244470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand your code but have one doubt how will we see which entry us new and which is updated.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 08:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422367#M1244470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T08:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Overlapping Entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422368#M1244471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 09:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overlapping-entries/m-p/5422368#M1244471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T09:08:33Z</dc:date>
    </item>
  </channel>
</rss>

