<?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: Primary key allows duplicate entry in data dictionary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208970#M1825555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing abnormal in the result..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results are coming just the way you have defined it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have defined both user id and cell no as primary key, then there will be a unique record for a combination of user id and cell no. If one of them changes, a new record would be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want only one record to be created for every cell no, make only cell no as the primary key, there wont be duplicates for cell no then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Susmitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Mar 2014 05:38:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-23T05:38:38Z</dc:date>
    <item>
      <title>Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208967#M1825552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #0000ff;"&gt;Hi Friends, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have created table to save contact details. here i have assigned &lt;STRONG&gt;USERID&lt;/STRONG&gt; and &lt;STRONG&gt;CELL_NO&lt;/STRONG&gt; as primary key but when i am trying to create new entry it allows duplicate value. How can i prevent this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #0000ff;"&gt;Please review my attached image for more details. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #0000ff;"&gt;Thank you Friends. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 05:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208967#M1825552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T05:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208968#M1825553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use semantic key at dtp level&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 05:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208968#M1825553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T05:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208969#M1825554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please explain about that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 05:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208969#M1825554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T05:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208970#M1825555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing abnormal in the result..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results are coming just the way you have defined it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have defined both user id and cell no as primary key, then there will be a unique record for a combination of user id and cell no. If one of them changes, a new record would be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want only one record to be created for every cell no, make only cell no as the primary key, there wont be duplicates for cell no then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Susmitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 05:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208970#M1825555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T05:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208971#M1825556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try giving same cell no and same "USER ID" as well (since both a keys). Then it'll pop a message in the status bar saying 'a data record with the specific key already exists'. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;As Susmitha said:- if you want only 1 record for every cell number make only "CELL NO" field as primary field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand the concept of primary key in this context.&lt;/P&gt;&lt;P&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;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 06:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208971#M1825556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T06:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208972#M1825557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think table logic is correct. it mean if you entered both primary key same only it wont allow but here you mentioned same cell no but different ID so it will accepts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell no 1234&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user id&amp;nbsp; xxx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell no 1234&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user&amp;nbsp; id xxx&lt;/P&gt;&lt;P&gt;above logic wont allows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you mentioned&lt;/P&gt;&lt;P&gt;cell no 1234&lt;/P&gt;&lt;P&gt;user id xxx&lt;/P&gt;&lt;P&gt;cell no 1234&lt;/P&gt;&lt;P&gt;user id xyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need to remove duplicates mean you should maintain primary key as cell no only not both..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert back if you didnt get clear.&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;&amp;nbsp;&amp;nbsp; Thangam.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 06:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208972#M1825557</guid>
      <dc:creator>thangam_perumal</dc:creator>
      <dc:date>2014-03-23T06:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208973#M1825558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply &lt;A __default_attr="31835" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Susmitha Susan Thomas" href="https://community.sap.com/"&gt;&lt;/A&gt;. Now i am&amp;nbsp; clear about this. But is there any other way to check both fields to have unique value ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 08:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208973#M1825558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T08:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208974#M1825559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood &lt;A __default_attr="461618" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Thangam Perumal" href="https://community.sap.com/"&gt;&lt;/A&gt; . Thanks for your reply. But is there any option to check for both filed to have unique value ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 08:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208974#M1825559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T08:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208975#M1825560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes its possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First as already mentioned create the table with cell_no as key.&lt;/P&gt;&lt;P&gt;This will prevent any duplicate values for cell_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, create an index for the table. Mark it as unique and include the field mandt and userid as the fields. This will prevent any duplicate values for userid too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416688" height="308" width="525" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning - To create the&amp;nbsp; unique index in the database, you must ensure that there are already no duplicate records for user id in the table. If there are duplicate records, then the index will not be created in the underlying database and hence, the duplicate check wont work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 08:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208975#M1825560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208976#M1825561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A __default_attr="31835" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Susmitha Susan Thomas" href="https://community.sap.com/"&gt;&lt;/A&gt; , Now it is working fine. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; But during Activation i got some warning message while activating index. could you please explain about it ? &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/416698" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 09:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208976#M1825561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T09:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208977#M1825562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably have both the fields as primary key and the unique index created on one of the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have cell_id defined as primary key in the table, then you don't have to create a unique index for that same field, since an index already exists for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you try to create an index with the same fields as the primary keys of the table, or a subset of the primary key fields, the above error will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark only one of the field cell or user id as primary key in the table, and the other field as the unique index. (You may need to go to SE14 and adjust and activate table when un-marking one of the fields as primary. )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 10:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208977#M1825562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T10:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key allows duplicate entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208978#M1825563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i Understood clearly , Thank you so much &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Mar 2014 12:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-allows-duplicate-entry-in-data-dictionary/m-p/10208978#M1825563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-23T12:25:59Z</dc:date>
    </item>
  </channel>
</rss>

