adt_create_table
Create an ABAP Dictionary transparent table using DDL, defining fields with data elements or built-in types, keys, foreign keys, and technical attributes, then optionally activate it.
Instructions
Create a DDIC transparent table (TABL) using ABAP Dictionary DDL. Each field references a data element (e.g. MANDT, YTSTDE2_192637) or a built-in type (CHAR/NUMC/DEC/CURR/QUAN/INT4/DATS/TIMS/... with optional length/decimals). Technical attributes use SAP-recommended defaults (enhancement category, delivery class, data maintenance). By default a key MANDT field (data element MANDT, foreign key to check table T000) is auto-prepended as the first key; disable via autoClient=false or supply your own MANDT. Fields may carry a foreignKey. Created in the given package (default $TMP, local/no transport) and optionally activated. Name must match Z*/Y* prefix. Returns the object URI, field count, the generated DDL source and activation status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Table name, e.g. YTSTTBL_192637. Must match Z*/Y* prefix. ADT create limit is 16 chars. | |
| fields | No | Table fields (at least one; transparent tables need >=1 key field). Each field may carry a 'foreignKey' (checkTable, optional keyType/cardinality/label/screenCheck) to emit a `with foreign key` clause. | |
| package | No | Target devclass. Omit to be asked (create new package | use $TMP). | |
| activate | No | Activate after creation. Default true. | |
| transport | No | Transport request. Omit + non-$TMP package -> asked to create one. | |
| autoClient | No | Auto-prepend the client field MANDT (data element MANDT, foreign key to check table T000) as the first key. Default true. Set false to omit it or to supply your own MANDT. | |
| description | No | Table description, e.g. 'AI测试用透明表'. | |
| deliveryClass | No | Delivery class. A=application table (default), C=customizing, G=customizing+custom, L=transaction data, S=system table, E=control table, W=system copy, X=handover. | |
| dataMaintenance | No | Data maintenance allowed in SM30/SE16. Default ALLOWED. | |
| enhancementCategory | No | Enhancement category. Default NOT_EXTENSIBLE for data-element-only tables; auto-upgraded to EXTENSIBLE_ANY when the table uses built-in types. |