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: 

Primary key deletion in custom database table

Former Member
0 Kudos

hi,

I've created a ztable.In which i've have created primary key and foreign key.

I've activated the table.Now my requirement is that i want to delete the primary key as i've shoosen wrong field as primary key.

For that first of all i deleted the foreign key relationship than i have unchecked the primary key but it is giving me an error.

even though if i deleted that field having primary key it is also giving me error as "Primary key change not permitted for value table.

Please help me out if possible.

waiting for ur response.

Thanks,

Dheeraj

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Make sure u dont have any data in the table..u have to delete all the data..Also make sure you are not using that table any where else.do a where used list in the table.

4 REPLIES 4

Former Member
0 Kudos

first check and see that no active abap object is using your ztable

then change the key fields and go to se14 to activate it

Former Member
0 Kudos

Make sure u dont have any data in the table..u have to delete all the data..Also make sure you are not using that table any where else.do a where used list in the table.

0 Kudos

Hi muhammad,

How to use where used list in table.Please tell me

Thanks.

Dheeraj.

Former Member
0 Kudos

IN SE11 TYPE TABLE NAME, LOCATE ICON WHERE USED IN APPLOCATION TOOL BAR, CHECK ALL CHECKBOXES AND EXECUTE