Application Development and Automation 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: 
Read only

Error while modifying the Ztable

former_member213475
Participant
0 Likes
1,342

Hi

I am modifying one Ztable. in that I'm changing the primary key fields as non primary key fields. simply unchecking the check boxes. For this table there is no table maintenance generator.

But I am getting the error as

Data base object for table <Ztable> is inconsistent.

Please suggest me, how to solve this issue

Thanks.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,291

Did you first check for existence of duplicate records when those primary keys would be removed, that would prevent activation of the table at database level.

Regards,

Raymond

10 REPLIES 10
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,292

Did you first check for existence of duplicate records when those primary keys would be removed, that would prevent activation of the table at database level.

Regards,

Raymond

Read only

0 Likes
1,291

I haven't checked. I need to confirm from my client.

Thanks

Read only

Former Member
0 Likes
1,291

If the entries in the table are not important then delete the entries and then try to activate.  

Read only

0 Likes
1,291

If I delete the entries in that table, then it is possible to do?

Thanks

Read only

0 Likes
1,291

Yes, I think so.

Read only

0 Likes
1,291

Hi,

Yes, delete duplicate enties in table and activate. It will get activated.

If you still face any problem  then you could do 'activate and adjust database' in SE14.

Best Regards,

Abirami

Read only

0 Likes
1,291

Thanks Abirami

But, with out deleting the entries, is it possible to solve this issue?

Read only

0 Likes
1,291

Hi,

I dont think so. You could try better by taking back up of your table data and adjust in SE14.

Till duplicate entries exists, it will not allow you to activate the table.

Best Regards,

Abirami

Read only

venkat_aileni
Contributor
0 Likes
1,291

Hi-

In your Z-Table as you have modified primary key fields to non-primary key fields. Hence there is an inconsistency in your table structure. How to overcome this error you have Activate and adjust this table in SE14.

What will happen after activating your table in SE14?

Assuming your table consists of 3 fields out of which first 2 fields are primary keys:

In below table field1 and field2 are key fields:

Field1 Field2 Field3

------------------------------

     1     1          6

     1     2          6

     1     3          6

Now I have changed field2 as non-primary field.

Goto SE14 adjust and activate this table.

After above step if you check this table it will contain only one entry, as now field1 is the only primary key. Once you adjust your table in SE14 all these entries(other 2 records 2nd and 3rd) gets automatically deleted.

Now table will have below entry:

Field1 Field2 Field3

------------------------------

     1     1          6

So be careful before adjusting your table in SE14.

Note: Deleting duplicate entries in your table will not allow you to activate your table, you have to for sure adjust your table in SE14.

-Venkat

Read only

0 Likes
1,291

Hi venkat,

Thanks for your valuable answer.

Regards,

Saran.