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: 

how to delete a zfield in ztable

former_member397166
Participant
0 Kudos

Hi all,

     how to change/delete a zfield in ztable. The Ztable contains data.

Thanks

Kical

1 ACCEPTED SOLUTION

Former Member
0 Kudos


Hi Kical,

Using TCODE se11, input the z-table name in the Database table field. click change button.

if you want to delete z-field, just selected on the field, then using button which has minus icon.

if you want to change z-field, just change it.

After that, save the change.

if this table has data in it. you need to go to TCODE SE14 to active it.

if it doesnot have any data. just active it.

thanks,

Yawa

5 REPLIES 5

krishna_k19
Contributor
0 Kudos

Hi Kical,

    We can do change and delete from the table , but the scenario is , if we are using that table in some other programs means it will give the error, so please check where-used list before doing this type of event.

And after doing the changes in table(delete or change the field) you have to do the table adjustment by using SE14.

But while doing this event be careful , check properly do go head.

Regards,

Krishna.

Former Member
0 Kudos


Hi Kical,

Using TCODE se11, input the z-table name in the Database table field. click change button.

if you want to delete z-field, just selected on the field, then using button which has minus icon.

if you want to change z-field, just change it.

After that, save the change.

if this table has data in it. you need to go to TCODE SE14 to active it.

if it doesnot have any data. just active it.

thanks,

Yawa

naveenvishal
Contributor
0 Kudos

Take the backup of data, delete the zfield in ztable in se11(just select the field and press Minus button above for deleting the selected field), adjust the table (se14), edit/regenerate Table Maintenance Generator(TMG) (if present), check and adjust attached views (if present), compare the data with backup copy.

raymond_giuseppi
Active Contributor
0 Kudos

(SE11)

  • Removal - Just remove the field once you have removed any explicit reference on this field in view, search help, programs, etc. then activate database table.
  • Changing field definition - The Database MUST be able to convert the field, else you will lose its values.
    NB: In some case its better to create a new field, and create a program to map the old values of old field to new field and update database. Later you will be able to remove the field from database.

(SE14)

  • In some case you may have to adjust database (SE14)

Regards,

Raymond

former_member397166
Participant
0 Kudos

Hi all

     Thanks!

Kical