Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Issues while changing primary key in table

Former Member
0 Kudos

Hi

I have one table. In that two fields are primary key. I want to change the second PK as FK only. But when i am changing this field as FK. Its showing one error 'Primary Key Change not permitted for value Table ZCAUSECATMASTER' . How to avoid this error.

Please help me.

1 ACCEPTED SOLUTION

raja_narayanan2
Active Participant
0 Kudos

Hi.....

Remove that primary key for the second field and assign your foregin key..table to that filed.....

So when you give entries in that second filed it will be validated with its foregin key table......its nothing but check table...

what all values in the foregin table only can given.....

regards

raja

3 REPLIES 3

Former Member
0 Kudos

Hi,

Goto se14 and Adjust & activate the table there....

Regards

Karthik D

raja_narayanan2
Active Participant
0 Kudos

Hi.....

Remove that primary key for the second field and assign your foregin key..table to that filed.....

So when you give entries in that second filed it will be validated with its foregin key table......its nothing but check table...

what all values in the foregin table only can given.....

regards

raja

Former Member
0 Kudos

Hi,

remove that PK field from the table,activate this table and again declare that field.

In that way it will work.

Regards,

Amit