<?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 Primary Key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957556#M697672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have created ZTABLE with MANDT key and Maintenance View. i have entered one record through Maintenance View. while trying to save second record it is giving error  'An entry already exists with the same key'.  my ztable is&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Field        Key      Initial        Type&lt;/P&gt;&lt;P&gt;MANDT     X            X           MANDT &lt;/P&gt;&lt;P&gt;FIELD1&lt;/P&gt;&lt;P&gt;FIELD2&lt;/P&gt;&lt;P&gt;FIELD3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Primary Key except MANDT. but it is giving error while saving 2nd record.&lt;/P&gt;&lt;P&gt;pl. give me solution any one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 12:07:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T12:07:45Z</dc:date>
    <item>
      <title>Primary Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957556#M697672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have created ZTABLE with MANDT key and Maintenance View. i have entered one record through Maintenance View. while trying to save second record it is giving error  'An entry already exists with the same key'.  my ztable is&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Field        Key      Initial        Type&lt;/P&gt;&lt;P&gt;MANDT     X            X           MANDT &lt;/P&gt;&lt;P&gt;FIELD1&lt;/P&gt;&lt;P&gt;FIELD2&lt;/P&gt;&lt;P&gt;FIELD3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Primary Key except MANDT. but it is giving error while saving 2nd record.&lt;/P&gt;&lt;P&gt;pl. give me solution any one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957556#M697672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957557#M697673</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;try giving one more field as the key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are u entering MANDT in the maintenace view while entering records?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957557#M697673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957558#M697674</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 think you should have another primary key in your ztable.&lt;/P&gt;&lt;P&gt;As mandt will always be same for every entry.&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;Pritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957558#M697674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957559#M697675</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 have declared mandt as primary key thats why when you are trying to save second record mandt is same and as it is primary it cant be duplicate, so u have to declare one more field as primary key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you dont have any field for primary key use serial no.1,2,3 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u have to create table again and do tale maintenance also, cos u cant make changes in fields once maintenance generation is done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 12:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957559#M697675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T12:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957560#M697676</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;THE PROBLEM WITH UR TABLE IS &lt;/P&gt;&lt;P&gt;YOU HAD DECLARED &amp;lt;b&amp;gt;MANDT&amp;lt;/b&amp;gt; AS THE PRIMARY KEY AND THERE IS NO OTHER KEY IN UR TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN YOU ENTER THE DATA IN YOUR TABLE IT WILL ACCEPT UR 1ST RECORD DATA &lt;/P&gt;&lt;P&gt;WHEN YOUR TRYING TO PUT ANOTHER RECORD THEN AT THAT TIME THE MANDT VALUE IS SAME THAT WHY IT IS SHOWING THE ERROR MESSAGE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SO TRY TO PUT ONE MORE FIELD AS THE PRIMARY KEY SO THAT YOUR PROBLEM WILL SOLVE VERY EASILY&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT VALUE ALLWAYS DEPENDS ON THE CLIENT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF YOU ENTER IN THE 800 CLIENT THEN FOR THAT TABLE THE 800 VALUE IS SAME FOR ALL RECORDS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARD IF USEFUL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957560#M697676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Primary Key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957561#M697677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you sonali. you solved my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 05:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key/m-p/2957561#M697677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T05:11:51Z</dc:date>
    </item>
  </channel>
</rss>

