| Domains |  |
| Domains are components that define common information about data such as: data type, e.g. string, long, double, date, UTC, enumerated length alignment of a string valid ranges (default) display format and capitalization rules Domains insure consistent data types for fields and variables. Domains can be linked to table fields, form fields, and program variables. The following table shows some domains of the tc (Common) package.
Domains for tc package
Domain | Description | Type
emno | Employee Number | String
relc | Reconciliation Element | String
reop | Reorder Point | Long
rntp | Run Type | Enumerated
rutm | Run Time in Minutes | Double
The following figure shows the details of the tc emno (Employee Number) domain. Domain properties Example Domains of type Enumerated or Set have constants with language-dependent descriptions. Each constant has three characteristics: Numeric value that is stored in the database Constant Name that the programmer can use Constant Description that provides the description of the option to the user, in the language of the user For example: the tc styp (Schedule type) domain has the following constants:
Constant | Constant Name | Description
1 | not.applicable | Not Applicable
2 | pull | Pull Schedule
3 | push | Push Schedule
To create domains You can create domains in the Domains (ttadv4500m000) session. For details, refer to To create a data model. |