/AWS1/CL_CNTVALIDATIONENUM¶
Defines enumeration validation for attribute values. Allows specifying a list of permitted values and whether custom values beyond the enumerated list are allowed.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_strict TYPE /AWS1/CNTBOOLEAN /AWS1/CNTBOOLEAN¶
Boolean that defaults to false. When true, only values specified in the enum list are allowed. When false, custom values beyond the enumerated list are permitted.
it_values TYPE /AWS1/CL_CNTVLDTNENUMVALUES_W=>TT_VALIDATIONENUMVALUES TT_VALIDATIONENUMVALUES¶
A list of predefined values that are allowed for this attribute. These values are always permitted regardless of the Strict setting.
Queryable Attributes¶
Strict¶
Boolean that defaults to false. When true, only values specified in the enum list are allowed. When false, custom values beyond the enumerated list are permitted.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_STRICT() |
Getter for STRICT |
Values¶
A list of predefined values that are allowed for this attribute. These values are always permitted regardless of the Strict setting.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VALUES() |
Getter for VALUES, with configurable default |
ASK_VALUES() |
Getter for VALUES w/ exceptions if field has no value |
HAS_VALUES() |
Determine if VALUES has a value |