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: 

Can we change key field values in table maintenance

Former Member
0 Kudos

Hi,

I have created Z-table and table maintenance for the same...

In table maintenance..Can we change key field values??

Is there any posibility????

Rayudu

4 REPLIES 4

former_member181962
Active Contributor
0 Kudos

Hi Rayudu,

As far as my knowledge is concerned, we cannot modify the key values manually in a table maintanence directly.

We can only modify non key field's values only.

If you still want to modify the key field values, then you need to do that using a program by the Update statement.

Thanks,

Ravi

0 Kudos

you can do it in this way.

open sm30->tablname->edit

snow select the row(s)->copy->change the keyfield values-back->save.

no in that sm30, select records with old primary key and delete->save.

so you got all field similar for those record under modification, only the key field changed.

0 Kudos

Yes i also thought like that only.. But End user wont make many steps and he will modify some key fields and some non key fields at a time and press save...

Thanks for suggestion and confirmations..

Rayudu

Former Member
0 Kudos

I'm afraid that table maintenance really isn't suitable if users need to change key fields. A custom program would be better.

Another alternative is to change the table so that the original keys are changed to non-key fields and create a pseudo key instead using events.

Rob