ABAP Keyword Documentation → ABAP - Dictionary → Classic Objects in ABAP Dictionary → Data Types → Data Elements → Domains
Semantic Attributes of Domains
Domains can be given the following semantic attributes:
- Short text
- Output attributes
WRITE TO. .
- Output length
The (optional) output length overrides the implicit output length as assigned to the built-in elementary data types. The potential output length is determined by the data type and is checked by ABAP Dictionary tools. If a format is assigned to the built-in data type in question, the output length should be long enough for all formatting characters.
- Output style
A domain with the type of a decimal floating point number must be assigned an output style.
- Conversion routine
If a domain is assigned to a conversion routine, the associated function module ..._INPUT (for each input in a dynpro field defined with reference to a data element that itself references the domain) is called. Similarly, the associated function module ..._OUTPUT (for each output using a dynpro field defined with reference to a data element that itself references the domain) is also called. The function module ..._OUTPUT is executed in the same way when a data object is formatted using
WRITE TOwhen the data object is declared with reference to a data element of this type.
If a data type of a dynpro field defined in ABAP Dictionary is numeric, the "Sign" attribute must be set so that negative numbers can be displayed on the screen. This attribute can only be specified using a domain.
- Lowercase letters
If a data type of a dynpro field defined in ABAP Dictionary is character-like, the "Lowercase Letters" attribute can be set so that these letters are not transformed to uppercase. This attribute can only be specified using a domain.
- Time format
For the data type TIMS, a 24-hour or 12-hour format can be set for displaying dynpro fields in accordance with the ABAP time formats.
- Value range
- Fixed values
- Alphanumeric characters including blanks and special characters for the type CHAR. The length is restricted to 10.
- Positive integers (including 0) for the types NUMC, INT1, INT2, INT4, INT8, and DEC within the value range defined by the technical attributes.
- Value table
7.31 | 7.40 | 7.54
The domain S_CLASS with the type CHAR describes the possible classes in a flight booking. The value range of the domain is defined by the fixed values "C" (Business Class), "F“ (First Class), and "Y“ (Economy Class). This means that only the values "C", "F", and "Y" can be entered for all dynpro fields that point to this domain.