CreateDataElement
Creates an ABAP data element typed by a domain, built-in type, or reference, with labels and search help, and records it in the given transport request.
Instructions
Creates an ABAP data element (DTEL), typed by a domain (DOMA), a built-in type or a reference, with its labels and search help, recorded in the transport given.
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": {
"data_element_name": "<data_element_name>",
"package_name": "<package_name>"
},
"name": "CreateDataElement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent. | terse |
| length | No | Data type length. Usually inherited from domain. | |
| decimals | No | Decimal places. Usually inherited from domain. | |
| data_type | No | Data type (e.g., CHAR, NUMC) or domain name when type_kind is 'domain'. | CHAR |
| type_kind | No | Type kind: 'domain' (default), 'predefinedAbapType', 'refToPredefinedAbapType', 'refToDictionaryType', 'refToClifType'. If not specified, defaults to 'domain'. | domain |
| type_name | No | Type name: domain name (when type_kind is 'domain'), data element name (when type_kind is 'refToDictionaryType'), or class name (when type_kind is 'refToClifType') | |
| long_label | No | Long field label (max 40 chars). Applied during update step after creation. | |
| description | No | Data element description. If not provided, data_element_name will be used. | |
| search_help | No | Search help name. Applied during update step after creation. | |
| short_label | No | Short field label (max 10 chars). Applied during update step after creation. | |
| medium_label | No | Medium field label (max 20 chars). Applied during update step after creation. | |
| package_name | Yes | Package name | |
| heading_label | No | Heading field label (max 55 chars). Applied during update step after creation. | |
| master_language | No | Original language of the created object (e.g. EN, DE). Absent, the session language (SAP_LANGUAGE or x-sap-language) is used; with none, SAP's logon language applies. | |
| data_element_name | Yes | Data element name. | |
| set_get_parameter | No | Set/Get parameter ID. Applied during update step after creation. | |
| transport_request | No | Transport request number, not a task. Required for transportable packages. | |
| search_help_parameter | No | Search help parameter. Applied during update step after creation. |