Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to drop a field/column of table in dictionary

Hi Experts,

Do anyone know standard class or method or any abap code can used to delete/drop a column in a table?

The table is a not internal table and also not ALV table.

EXEC SQL.

            ALTER TABLE source DROP COLUMN CLIENT

ENDEXEC.


I have tried something like but it did not work.


Thanks for help in advance.

Tags:
Former Member
replied

I hope those are customer table or at least copy of table into customer namespace...

Could you try to LOOP AT your table names list and execute DDIF_TABL_GET to get original table description, then remove client MANDT and create a new table (in customer namespace) with DDIF_TABL_PUT, commit work and  DDIF_TABL_ACTIVATE.

Regards,

Raymond

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question