<?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 foreign key remove problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595732#M1275394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Enhancement category. and see if it is checked on " Can be enhanced "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise, delete all the foreign key relationship and then change, activate and convert the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 11:42:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T11:42:48Z</dc:date>
    <item>
      <title>Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595727#M1275389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi expretrs,&lt;/P&gt;&lt;P&gt;I create 5 tables in ddic.&lt;/P&gt;&lt;P&gt;1. zpr_cmp Company Master&lt;/P&gt;&lt;P&gt;2. zpr_dpt Department Master&lt;/P&gt;&lt;P&gt;3. zpr_dsg Designation Master&lt;/P&gt;&lt;P&gt;4. zpr_emp Employee master.&lt;/P&gt;&lt;P&gt;5. zpr_slm Salary Master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Foreign key reference in zpr_emp from table 1,2 and 3 created and &lt;/P&gt;&lt;P&gt;table zpr_emp has &lt;/P&gt;&lt;P&gt;cmpcd, Company Code &lt;/P&gt;&lt;P&gt;empcd, Employee Code&lt;/P&gt;&lt;P&gt;dptcd , Department Code&lt;/P&gt;&lt;P&gt;dsgcd Designation Code &lt;/P&gt;&lt;P&gt;as key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have upload data and create module pool and reports.&lt;/P&gt;&lt;P&gt;My problem that hr person say that we want to change deptcd/dsgcd of employee (zpr_emp) and&lt;/P&gt;&lt;P&gt;dptcd and dsgcd is as key fields in zpr_emp when i change the table zpr_emp and remove &lt;/P&gt;&lt;P&gt;two key fields dptcd/dsgcd and active error display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also try with se14 (Activate and Adjust database) but error still.&lt;/P&gt;&lt;P&gt;how can i remove key field from zpr_emp and active table without loss data and without any change of&lt;/P&gt;&lt;P&gt;module pool/reports &lt;/P&gt;&lt;P&gt;pl. help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595727#M1275389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595728#M1275390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the field in SE11 and then go for Adjust the Database &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595728#M1275390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595729#M1275391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i also try using se14 but displaying error, problem still.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595729#M1275391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595730#M1275392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the Error Description ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595730#M1275392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595731#M1275393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error when activate the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABL ZPR_EMP was not activated &lt;/P&gt;&lt;P&gt;Check table ZPR_EMP (ABAPRSAL/15.05.09/11:24) &lt;/P&gt;&lt;P&gt;Enhancement category for table missing &lt;/P&gt;&lt;P&gt;Primary key change not permitted for value table ZPR_EMP&lt;/P&gt;&lt;P&gt;Old key field SCPCD is now non-key field &lt;/P&gt;&lt;P&gt;Structure change at field level (convert table ZPR_EMP) &lt;/P&gt;&lt;P&gt;Check on table ZPR_EMP resulted in errors&lt;/P&gt;&lt;P&gt;help urgetn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595731#M1275393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595732#M1275394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Enhancement category. and see if it is checked on " Can be enhanced "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise, delete all the foreign key relationship and then change, activate and convert the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595732#M1275394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595733#M1275395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after deleting data and foreign key&lt;/P&gt;&lt;P&gt;and se11 &amp;gt; activate and adjust database &lt;/P&gt;&lt;P&gt;error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request: Delete and recreate Table ZPR_EMP (ABAPRSAL/15.05.09/17:30)&lt;/P&gt;&lt;P&gt;Process: devecc_0                                                   &lt;/P&gt;&lt;P&gt;Primary key change not permitted for value table ZPR_EMP            &lt;/P&gt;&lt;P&gt;Activation of Table ZPR_EMP not possible (please check)             &lt;/P&gt;&lt;P&gt;Request for ZPR_EMP could not be executed                           &lt;/P&gt;&lt;P&gt;pl. help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595733#M1275395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595734#M1275396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Diagnosis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZPR_EMP table is defined as a check table. For reasons of consistency, changes to the primary key of the table are not allowed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Procedure&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If it is essential that you change the primary key, you must delete the relevant foreign keys. Refer to the where-used list to find all tables containing a field that is checked against this table. Delete the foreign keys for these fields.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If necessary, maintain the deleted foreign keys again.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value table - It's a field in a domain it helps in domain level data validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check table - unlike value table it helps in feild level data validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relational data model contains not only tables, but also relationships between tables. These relationships are defined in the ABAP/4 Dictionary by foreign keys. An important function of foreign keys is to support data integrity in the relational data model. Foreign key fields may assume only those values allowed by the check table, in other words, values occurring in the primary key of the check table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A foreign key provides a link between two tables, for eg.,T1 and T2 by including a reference in table T1 to the primary key of table T2. For this purpose, Foreign key fields assigned to the primary key fields of T2 are included in T1. Table T1, which is the one being checked, is called a foreign key table, and table T2 is called a check table. The terms dependent (foreign key) table and referenced (check) table are also used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUE TABLE:If the domain of the check field has a value table, this is proposed by the system as check table in the foreign field maintenance. The key fields of the value table are in this case assigned fields of the foreign key table with the same domain. These fields may assume only those values allowed by the value table.&lt;/P&gt;&lt;P&gt;The value range of the domain can be defined by specifying value table.All table fields referring to this domain can then be checked against the corresponding field of this value table.In order the check can be executed, a foreign key must be defined for the value table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595734#M1275396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595735#M1275397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is still &lt;STRONG&gt;pending&lt;/STRONG&gt; pl .help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 05:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595735#M1275397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T05:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595736#M1275398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;self solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 13:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595736#M1275398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T13:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Primary key foreign key remove problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595737#M1275399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please brief us how you resolved the above mentioned problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 10:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-foreign-key-remove-problem/m-p/5595737#M1275399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-21T10:08:33Z</dc:date>
    </item>
  </channel>
</rss>

