Skip to content

/AWS1/CL_BDIX12ELEMENTLENGTH00

Defines a validation rule that specifies custom length constraints for a specific X12 element. This rule allows you to override the standard minimum and maximum length requirements for an element, enabling validation of trading partner-specific length requirements that may differ from the X12 specification. Both minimum and maximum length values must be specified and must be between 1 and 200 characters.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_elementid TYPE /AWS1/BDIELEMENTID /AWS1/BDIELEMENTID

Specifies the four-digit element ID to which the length constraints will be applied. This identifies which X12 element will have its length requirements modified.

iv_maxlength TYPE /AWS1/BDIINTEGER /AWS1/BDIINTEGER

Specifies the maximum allowed length for the identified element. This value must be between 1 and 200 characters and defines the upper limit for the element's content length.

iv_minlength TYPE /AWS1/BDIINTEGER /AWS1/BDIINTEGER

Specifies the minimum required length for the identified element. This value must be between 1 and 200 characters and defines the lower limit for the element's content length.


Queryable Attributes

elementId

Specifies the four-digit element ID to which the length constraints will be applied. This identifies which X12 element will have its length requirements 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

maxLength

Specifies the maximum allowed length for the identified element. This value must be between 1 and 200 characters and defines the upper limit for the element's content length.

Accessible with the following methods

Method Description
GET_MAXLENGTH() Getter for MAXLENGTH, with configurable default
ASK_MAXLENGTH() Getter for MAXLENGTH w/ exceptions if field has no value
HAS_MAXLENGTH() Determine if MAXLENGTH has a value

minLength

Specifies the minimum required length for the identified element. This value must be between 1 and 200 characters and defines the lower limit for the element's content length.

Accessible with the following methods

Method Description
GET_MINLENGTH() Getter for MINLENGTH, with configurable default
ASK_MINLENGTH() Getter for MINLENGTH w/ exceptions if field has no value
HAS_MINLENGTH() Determine if MINLENGTH has a value