createDataElement
Creates a complete DDIC data element with type, labels, and activation in one call, handling validation and transport.
Instructions
Create a DDIC data element and give it its definition, in one call: validate, create, lock, write the type and the four field labels, unlock, activate. The type is either a domain or a built-in ABAP type, not both. createObject alone leaves an element with no type, which cannot be activated. Nothing is rolled back if a step fails - the answer reports each step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Data element name, e.g. ZAPP_STATUS. | |
| label | No | Fills all four field labels at once, each cut to the length SAP allows (10/20/40/55); the answer says which were cut. | |
| domain | No | Domain the element takes its type from. Alternative to dataType. | |
| dryRun | No | Validate the name and show what would be written, creating nothing. | |
| length | No | Length, for a built-in type. | |
| activate | No | Activate at the end (default true). | |
| dataType | No | Built-in ABAP type, e.g. CHAR, NUMC, DEC. Alternative to domain. | |
| decimals | No | Decimal places, for a built-in type. | |
| language | No | Language the labels are stored in, and the master language of the object. Defaults to the logon language - not EN, which is what the underlying library would use and which makes the labels invisible to a developer logged on in another language. | |
| longLabel | No | Long label, up to 40 characters. | |
| transport | No | Transport request number - the request itself, not a developer task. Not needed in $TMP. | |
| searchHelp | No | Search help name. | |
| shortLabel | No | Short label, up to 10 characters. | |
| description | Yes | Short description. | |
| mediumLabel | No | Medium label, up to 20 characters. | |
| packageName | Yes | Development package. $TMP needs no transport. | |
| responsible | No | Responsible user; defaults to the logon user. | |
| headingLabel | No | Heading, up to 55 characters. | |
| changeDocument | No | Log changes in change documents. | |
| setGetParameter | No | SET/GET parameter id. | |
| searchHelpParameter | No | Search help parameter. |