/AWS1/CL_BDIX12CODELSTVALIDA00¶
Defines a validation rule that modifies the allowed code values for a specific X12 element. This rule allows you to add or remove valid codes from an element's standard code list, providing flexibility to accommodate trading partner-specific requirements or industry variations. You can specify codes to add to expand the allowed values beyond the X12 standard, or codes to remove to restrict the allowed values for stricter validation.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_elementid TYPE /AWS1/BDIELEMENTID /AWS1/BDIELEMENTID¶
Specifies the four-digit element ID to which the code list modifications apply. This identifies which X12 element will have its allowed code values modified.
Optional arguments:¶
it_codestoadd TYPE /AWS1/CL_BDICODELIST_W=>TT_CODELIST TT_CODELIST¶
Specifies a list of code values to add to the element's allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.
it_codestoremove TYPE /AWS1/CL_BDICODELIST_W=>TT_CODELIST TT_CODELIST¶
Specifies a list of code values to remove from the element's allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.
Queryable Attributes¶
elementId¶
Specifies the four-digit element ID to which the code list modifications apply. This identifies which X12 element will have its allowed code values modified.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ELEMENTID() |
Getter for ELEMENTID, with configurable default |
ASK_ELEMENTID() |
Getter for ELEMENTID w/ exceptions if field has no value |
HAS_ELEMENTID() |
Determine if ELEMENTID has a value |
codesToAdd¶
Specifies a list of code values to add to the element's allowed values. These codes will be considered valid for the specified element in addition to the standard codes defined by the X12 specification.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CODESTOADD() |
Getter for CODESTOADD, with configurable default |
ASK_CODESTOADD() |
Getter for CODESTOADD w/ exceptions if field has no value |
HAS_CODESTOADD() |
Determine if CODESTOADD has a value |
codesToRemove¶
Specifies a list of code values to remove from the element's allowed values. These codes will be considered invalid for the specified element, even if they are part of the standard codes defined by the X12 specification.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CODESTOREMOVE() |
Getter for CODESTOREMOVE, with configurable default |
ASK_CODESTOREMOVE() |
Getter for CODESTOREMOVE w/ exceptions if field has no value |
HAS_CODESTOREMOVE() |
Determine if CODESTOREMOVE has a value |