UpdateTable
Update DDL source code of an existing ABAP table by locking, uploading new DDL, and optionally activating. Modifies tables without recreating metadata.
Instructions
Update DDL source code of an existing ABAP table. Locks the table, uploads new DDL source, and unlocks. Optionally activates after update. Use this to modify existing tables without re-creating metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activate | No | Activate table after source update. Default: true. | |
| ddl_code | Yes | Complete DDL source code for a TRANSPARENT TABLE. IMPORTANT — use the MANDT data element for the client key ('key mandt : mandt not null'), NOT 'abap.clnt' (that's CDS-view syntax). Standard SAP tables (MARA, T001, VBAK, …) all use MANDT. The annotation block CreateTable seeded must be preserved verbatim: #NOT_EXTENSIBLE enhancement category, #TRANSPARENT tableCategory, #A deliveryClass, #RESTRICTED dataMaintenance. Example: '@EndUserText.label : \'My Table\' @AbapCatalog.enhancement.category : #NOT_EXTENSIBLE @AbapCatalog.tableCategory : #TRANSPARENT @AbapCatalog.deliveryClass : #A @AbapCatalog.dataMaintenance : #RESTRICTED define table ztst_table { key mandt : mandt not null; key id : abap.char(10); name : abap.char(255); }' | |
| table_name | Yes | Table name (e.g., ZZ_TEST_TABLE_001). Table must already exist. | |
| transport_request | No | Transport request number (e.g., E19K905635). Optional if object is local or already in transport. |