Skip to content

/AWS1/CL_BDIX12ELEMENTREQVAL00

Defines a validation rule that modifies the requirement status of a specific X12 element within a segment. This rule allows you to make optional elements mandatory or mandatory elements optional, providing flexibility to accommodate different trading partner requirements and business rules. The rule targets a specific element position within a segment and sets its requirement status to either OPTIONAL or MANDATORY.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_elementposition TYPE /AWS1/BDIELEMENTPOSITION /AWS1/BDIELEMENTPOSITION

Specifies the position of the element within an X12 segment for which the requirement status will be modified. The format follows the pattern of segment identifier followed by element position (e.g., "ST-01" for the first element of the ST segment).

iv_requirement TYPE /AWS1/BDIELEMENTREQUIREMENT /AWS1/BDIELEMENTREQUIREMENT

Specifies the requirement status for the element at the specified position. Valid values are OPTIONAL (the element may be omitted) or MANDATORY (the element must be present).


Queryable Attributes

elementPosition

Specifies the position of the element within an X12 segment for which the requirement status will be modified. The format follows the pattern of segment identifier followed by element position (e.g., "ST-01" for the first element of the ST segment).

Accessible with the following methods

Method Description
GET_ELEMENTPOSITION() Getter for ELEMENTPOSITION, with configurable default
ASK_ELEMENTPOSITION() Getter for ELEMENTPOSITION w/ exceptions if field has no val
HAS_ELEMENTPOSITION() Determine if ELEMENTPOSITION has a value

requirement

Specifies the requirement status for the element at the specified position. Valid values are OPTIONAL (the element may be omitted) or MANDATORY (the element must be present).

Accessible with the following methods

Method Description
GET_REQUIREMENT() Getter for REQUIREMENT, with configurable default
ASK_REQUIREMENT() Getter for REQUIREMENT w/ exceptions if field has no value
HAS_REQUIREMENT() Determine if REQUIREMENT has a value