<?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: avoid same entry in ztable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260591#M1384913</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;When you use 'Modify' stmt instead of 'Insert' stmt, an entry with existing  key will update the existing entry and an entry with new key will be inserted i.e. you will not get the error for the same entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2009 10:51:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-05T10:51:32Z</dc:date>
    <item>
      <title>avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260585#M1384907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i created ztable ..for inserting data into that table i  used module pool programming....my  requirement is to avoid the same data inserted... i  got error message whevever i  insert same data in table...what i do for this problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 06:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260585#M1384907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T06:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260586#M1384908</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;You need to put a validation on the Save event and check whether a record already exists with the same Primary Key. You can throw your own error message to the user in such case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 06:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260586#M1384908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T06:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260587#M1384909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set &lt;STRONG&gt;Primary key&lt;/STRONG&gt; in you table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether that entry already exists in the table before insertion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its Better you can go for table maintenance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 06:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260587#M1384909</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-05T06:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260588#M1384910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhanu, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i understand from the issue, you need to mark one field as a Mandatory field and that should be your primary key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user enters the same entry, it will sort with the Primary key and if it already exist it will display an error message saying that 'Entry already exist'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex : If table-mandatory = S_mand (Where user enters the value)&lt;/P&gt;&lt;P&gt;                    message 'Entry already exist&lt;/P&gt;&lt;P&gt;       endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the link below : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="286113"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the information is helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 06:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260588#M1384910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T06:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260589#M1384911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicate deleted.  Please avoid posting the same entry in the forums.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 09:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260589#M1384911</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-11-05T09:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260590#M1384912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhanu,&lt;/P&gt;&lt;P&gt;               Use &lt;STRONG&gt;DELETE ADJACENT DUPLICATES FROM TABLE&lt;/STRONG&gt;before going to the ZTABLE (That is you delete the internal table itself.)&lt;/P&gt;&lt;P&gt;Please Try this.&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;K.Karthikeyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 10:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260590#M1384912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T10:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260591#M1384913</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;When you use 'Modify' stmt instead of 'Insert' stmt, an entry with existing  key will update the existing entry and an entry with new key will be inserted i.e. you will not get the error for the same entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 10:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260591#M1384913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T10:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260592#M1384914</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;     check the following points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1) check whether your table has primary key or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2) put validation before inserting new record and &lt;STRONG&gt;use insert command&lt;/STRONG&gt;  do not use modify command&lt;/P&gt;&lt;P&gt;&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;Sateesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 12:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260592#M1384914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T12:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260593#M1384915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just get the data from ur ztable into internal table itab and compare it with ur internla table jtab..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete the records from jtab which exist in the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then insert ztable from table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 12:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260593#M1384915</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2009-11-05T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: avoid same entry in ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260594#M1384916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use addition ACCEPTING DUPLICATE KEYS with an INSERT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 13:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-same-entry-in-ztable/m-p/6260594#M1384916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T13:08:24Z</dc:date>
    </item>
  </channel>
</rss>

