1.Functional Description
1.1Purpose
This business function interprets an individual condition in a Cross Segment Edit or Assembly
Inclusion Rule and returns "0" if the condition is false and "1" if the condition is true.
1.2Setup Notes and Prerequisites
1.3Special Logic
There is no special logic within this function.
2.Technical Specifications
2.4Processing
A.If the Condition Test Value (ATIV) = *ALL, set the Test Result Indicator to "1" (TRUE) and exit
the business function.
B.If the Condition Test Value (ATIV) = *BLANK or *BLANKS, move spaces to the Condition Test Value
field.
C.If the Condition Test Value (ATIV) = *ZERO or *ZEROS, move zeros to the Condition Test Value
field and set a numeric work field = zero.
D.If the segment value is numeric (the Segment Numeric Indicator (CN) = "Y"), convert the Segment
Value (VAL1) and Condition Test Value to a numeric value and store in two numeric work fields.
E.If the Condition Test Value is not *VALUE, *VALUES, *RANGE, or *RANGES:
Use the numeric work fields if the segment is numeric (CN = "Y"), otherwise use the non-numeric
ATIV and VAL1 fields for comparison. If the VALR value is not in this list, return a FALSE result.
VALR values:
EQNEEqual to/Not equal to
LTNLLess Than/Not less than
GTNGGreater Than/Not greater than
LE----Less than or equal to
GE----Greater than or equal to
2)Set the Test Result Indicator to "1" (TRUE) or "0" (FALSE) and exit the business function.
F.If the Condition Test Value is *VALUE or *VALUES:
1)If the Relationship (VALR) is not "EQ" or "NE", set the statement to TRUE and exit the business
function.
values.
3)For comparation field is "EQ":
If the record is found return '1'
Else return '0'
4) For comparation field is "NE", reverse the value of "EQ"
5)Exit the business function.
G.If the Condition Test Value is *RANGE or *RANGES:
function.
2)If the Relationship (VALR) is "EQ" or "NE":
values.
b)If a record is found, validate the statement as follows. Use numeric work fields for
comparison if the segment is numeric (CN="Y") otherwise use the non-numeric fields for comparison.
range values (inclusive).
2.If the Relationship is "NE", the statement is TRUE if the value is outside (less than or
greater than) the range values.
3.If the above conditions are not met, set the statement to FALSE.
^
D3200450 - F3292 F3293 Evaluate Rule Condition
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cFileCode | FCOD | char | NONE | NONE |
The file code is used in the *RANGE and *VALUE file for configurations to determine if the *RANGE or *VALUE goes with a "IF" statement, a
| ||||
mnParentItemNumber | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szBranch | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
mnRuleNumber | ATO# | MATH_NUMERIC | NONE | NONE |
The number associated with a set of cross-segment editing rules or assembly inclusion rules. | ||||
mnRuleSequenceNumber | ATOS | MATH_NUMERIC | NONE | NONE |
The Sequence number is the rule number within an edit group of cross-segment editing rules or assembly inclusion rules. You can insert a
| ||||
szRelationship | VALR | char | NONE | NONE |
A user defined code (00/VA) that indicates the relationship between the ranges of variances that you display. Valid values are:
EQ
Equal
| ||||
cTestResultIndicator | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
cSegmentNumericIndicator | CNUM | char | NONE | NONE |
Determines whether a user defined code is numeric or alphanumeric.
Valid values are:
Y Indicates that the code is numeric and should be
| ||||
szSegmentValue | ATIV | char | OPT | NONE |
An answer that is valid for the segment and rule relationship. You can enter a specific UDC value or one of the following values:
*VALUES
| ||||
szConditionTestValue | ATIV | char | OPT | NONE |
An answer that is valid for the segment and rule relationship. You can enter a specific UDC value or one of the following values:
*VALUES
|
None |
F32921 Cross Segment Editing Rules - Values | ||||
F32922 Cross Segment Editing Rules - Range |