create_table_type
Create and optionally activate a DDIC table type for an ABAP internal table from a dictionary or built-in row type; production profiles are blocked.
Instructions
Create a new DDIC table type (TTYP/DA) - the ABAP type for an internal table - and optionally activate it. Point it at a dictionary type (structure/data element/table) with rowTypeKind='dictionaryType' and rowTypeName, or at a built-in type with rowTypeKind='predefinedAbapType' plus dataType/length. Refuses to run on production profiles.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tableTypeName": "<tableTypeName>",
"description": "<description>",
"packageName": "<packageName>"
},
"name": "create_table_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Length for a built-in row type | |
| keyKind | No | Primary key uniqueness | nonUnique |
| activate | No | Activate after creating | |
| dataType | No | Built-in type when rowTypeKind='predefinedAbapType', e.g. STRING, CHAR | |
| decimals | No | Decimals for a built-in row type | |
| transport | No | Transport request. Omit only for $TMP. | |
| accessType | No | Internal table access type | standard |
| description | Yes | Short description | |
| packageName | Yes | Package, e.g. ZABAP. Use $TMP for a local throwaway. | |
| rowTypeKind | No | Where the row type comes from | dictionaryType |
| rowTypeName | No | Structure/data element/table name when rowTypeKind='dictionaryType', e.g. ZST_PLANT_EMAIL | |
| tableTypeName | Yes | Table type name, e.g. ZTT_PLANT_EMAIL |