<?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 Deleting Primary Key fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016320#M1699108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we delete Primary Key fields of a transparent table which is already having the data in Production Server?&lt;/P&gt;&lt;P&gt;If Yes, could you help me out with the procedure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2012 14:21:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-04T14:21:35Z</dc:date>
    <item>
      <title>Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016320#M1699108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we delete Primary Key fields of a transparent table which is already having the data in Production Server?&lt;/P&gt;&lt;P&gt;If Yes, could you help me out with the procedure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016320#M1699108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-04T14:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016321#M1699109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not do it in Production directly, rather u need to do in development server and transport , transport request to production. &lt;/P&gt;&lt;P&gt;once transport request is in production, run SE14 to adjust the database table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016321#M1699109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-04T14:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016322#M1699110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deleting primary key fields will most likely lead to duplicate keys, so you will lose data when adjusting the table as suggested above.&lt;/P&gt;&lt;P&gt;Make sure you know what you are doing, search for additional information and documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016322#M1699110</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-10-04T14:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016323#M1699111</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;Yes you can delete pk's but one pk is mandatory and after deleting the pk u can adjust the table in tcode : SE14 without lose of data/records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mahesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 06:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016323#M1699111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T06:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016324#M1699112</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;Yes you can delete the primary key&amp;nbsp; of a transparent table but you should not do it in production server&lt;/P&gt;&lt;P&gt;because once you delete the primary key field, system will ask you to activate and adjust the table again, you can do it through SE14 tcode by selecting activate and adjuct option, but there are chnces&lt;/P&gt;&lt;P&gt;of table data might be deleted.&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;Pankaj &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 11:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016324#M1699112</guid>
      <dc:creator>pankaj_sandanshi</dc:creator>
      <dc:date>2012-10-10T11:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016325#M1699113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Primary key field can be removed , also the primary key field can be deleted irrespective of the table being present in Production / Dev server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since, the transparent table is present in Production, it can be risky do make any major changes without proper approvals.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure to make adjustments in Table definition from Database Utility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Utilities - &amp;gt; Database Object -&amp;gt; Database Utility&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Vivek Batta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 10:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016325#M1699113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-08T10:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016326#M1699114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cannot delete primary key fields of table which have data. create another table in dev, and move to production and copy data...and then delete table. Note: table name should update all objects which have used this table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 13:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016326#M1699114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-09T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016327#M1699115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way suggested above .... is a good procedure one should follow ( especially in Dev / Prod ) server.&lt;/P&gt;&lt;P&gt;However, I once tried deleting the primary key field in sandbox server and was able to keep the data intact after deleting the primary key field. After making the changes, the DB structure was adjusted using DB utility&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/173477" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/173478" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/173479" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/173480" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel, there might be a difference in how we approach the scenario here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016327#M1699115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-10T14:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Primary Key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016328#M1699116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your example, you did not lose data because the combined values in the remaining primary key fields were still unique. Suppose you remove FATHER_NAME as well, then you would lose one of the two EID = "2" / ACC_NO = "112" rows after adjusting the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 20:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-primary-key-fields/m-p/9016328#M1699116</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2013-01-10T20:31:10Z</dc:date>
    </item>
  </channel>
</rss>

