CreateDomain
Creates a new ABAP domain in an SAP system with configurable data type, length, fixed values, and optional activation to define reusable field attributes.
Instructions
Create a new ABAP domain in SAP system. Creates the domain object in initial state. Runs outside batch mode.
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": {
"domain_name": "<domain_name>"
},
"name": "CreateDomain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it). | terse |
| length | No | (optional) Field length (max depends on datatype) | |
| activate | No | (optional) Activate domain after creation (default: true) | |
| datatype | No | (optional) Data type: CHAR, NUMC, DATS, TIMS, DEC, INT1, INT2, INT4, INT8, CURR, QUAN, etc. | CHAR |
| decimals | No | (optional) Decimal places (for DEC, CURR, QUAN types) | |
| lowercase | No | (optional) Allow lowercase input | |
| description | No | (optional) Domain description. If not provided, domain_name will be used. | |
| domain_name | Yes | Domain name. | |
| sign_exists | No | (optional) Field has sign (+/-) | |
| value_table | No | (optional) Value table name for foreign key relationship | |
| fixed_values | No | (optional) Array of fixed values for domain value range | |
| package_name | No | (optional) Package name | |
| conversion_exit | No | (optional) Conversion exit routine name (without CONVERSION_EXIT_ prefix) | |
| master_language | No | Optional master/original language for the created object (e.g. "EN", "DE", "ZH"). Defaults to the session language (SAP_LANGUAGE) or EN. | |
| transport_request | No | (optional) Transport request number, not a task. Required for transportable packages. |