‎2009 Apr 20 6:24 PM
Hi Gurus!
I have a table that has a date field in char 24 format and the table has like 700000 records in it. I would like to change the data type of the date field to DATS format . This si a custome field . When I go and change the data type of theat field to DATS and activate it , it does chage and get activated , but it gives an error in the table where it has been used saying
TABL Ztable is inconsistent in active version
Check table ZWELL_DLS (auser/04/20/09/11:21)
Field ZNEW_DATE: Length change
ALTER TABLE is not possible
Structure change at field level (convert table ZTABLE)
Check on table ZTABLE resulted in errorsHow do I change the data type so that the table is not affected and everything is ok. Or do I need to go and adjust the table again through SE14 ? So if I go and do it through SE14 then after transporting this field to QAT and subsequently PRD it will need to be adjusted again which seems a not very good way of doing it I suppose. Could anyone please help me out with this please.
Thanks
‎2009 Apr 20 6:28 PM
if you chnage the data type ..you lost all data..
with out losing data you can not do any thing..
Regards,
Prabhudas
‎2009 Apr 20 6:32 PM
So I will have to go through database utility itself , if I would like to save the data and change the data type ?
‎2009 Apr 20 6:36 PM
‎2009 Apr 21 3:43 AM
Hi Aarav,
first try this.
Goto SE14... & enter your table and then use the Activate & Adjust database button..
if your problem does not solve then,
You download all the data through the a BDC Download or directly from SE11... And do necesary modification on the data type.
After doing modification, write a upload program.
Thanks & regards,
Dileep .C
‎2009 Apr 21 5:07 AM
Please make a new table with desired fields and move the data from original table and later rename it.