1.Functional Description
1.1Purpose
This business function is designed to see if the Test Value (QVAL) is between the Minimum and Maximum
Values.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.4Processing
// Initialize Variables
//
VA evt_AMIN_MATH01=0
VA evt_AMAX_MATH01= 0
VA evt_QVAL_MATH01= 0
VA evt_MinValueDB_AMIN=' '
VA evt_MaxValueDB_AMAX= ' '
VA evt_TestResultDB_QVAL= ' '
VA evt_Numeric_NUMT= ' '
VA evt_SystemCode_SY= ' '
VA evt_UserDefinedCode_RT= ' '
VA evt_StopProcessing_EV01= 0
// Check to see Test ID is a valid test
//
FetchSingle F3701
BF Test ID=Test ID
BF BusinessUnit= Business Unit
VA evt_Numeric_NUMT<Numeric
VA evt_SystemCode_SY<SystemCode
VA evt_UserDefinedCode_RT<UserDefinedCode
IFaSV File_IO Status not equal to SUCCESS
IFbBF SuppressErrorMessageFlagNE1
Set NER Error to ('044G' , BF ErrorMessageID)
ENDIFb
VA evt_StopProcessing_EV01= '1'
ENDIFa
//
IFaVA evt_StopProcessing_EV01 not equal to '1'
//
// Execute the Validate/Convert Minimum, Maximum, Target Function to get Numeric Equivalents.
//
// Scrub Minimum Value
//
Call B3700010 (Validate/Convert Minimum, Maximum, Target)
VA evt_MinValueDB_AMIN<szStoreStringValue
mnCodeLength
BF cCallType>cCallType
VA evt_Numeric_NUMT>cNumericFlag
BF cDisplayDecimals>cDecimalNum
VA evt_SystemCode_SY>szSystemCode
VA evt_UserDefinedCode_RT>szRecordTypeCode
VA evt_AMIN_MATH01<mnNumericValue
<szErrorMessageID
Blank>cSuppressErrorMessage
BF cDataOrigin>cDataOrigin
BF szMinimumValue<>szStringValue
//
// Scrub Maximum Value
//
Call B3700010 (Validate/Convert Minimum, Maximum, Target)
VA evt_MaxValueDB_AMAX<szStoreStringValue
mnCodeLength
BF cCallType>cCallType
VA evt_Numeric_NUMT>cNumericFlag
BF cDisplayDecimals>cDecimalNum
VA evt_SystemCode_SY>szSystemCode
VA evt_UserDefinedCode_RT>szRecordTypeCode
VA evt_AMAX_MATH01<mnNumericValue
<szErrorMessageID
Blank>cSuppressErrorMessage
BF cDataOrigin>cDataOrigin
BF szMaximumValue<>szStringValue
//
// Scrub Test Result Value
//
Call B3700010 (Validate/Convert Minimum, Maximum, Target)
VA evt_TestResultDB_QVAL<szStoreStringValue
mnCodeLength
BF cCallType>cCallType
VA evt_Numeric_NUMT>cNumericFlag
BF cDisplayDecimals>cDecimalNum
VA evt_SystemCode_SY>szSystemCode
VA evt_UserDefinedCode_RT>szRecordTypeCode
VA evt_QVAL_MATH01<mnNumericValue
<szErrorMessageID
Blank>cSuppressErrorMessage
BF cDataOrigin>cDataOrigin
BF szTestValue<>szStringValue
//
// Validate if Test Result is Pass or Fail
//
IFb VA evt_QVAL_MATH01GEVA evt_AMIN_MATH01
ANDVA evt_QVAL_MATH01LEVA evt_AMAX_MATH01
BF cPassFail ='P'
ELSE
IFcBF SuppressErrorMessageFlag NE1
Set NER Error to ('044B' , BF ErrorMessageID)
ENDIFc
BF cPassFail ='F'
ENDIFb
//
ENDIFa
D3700140 - Test Results Edit
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szTestID | QTST | char | REQ | INPUT |
The unique identification for a test to be performed on an item. For example: COL Color test DENS Density Test CL-2 Clarity Test | ||||
szCostCenter | MCU | char | REQ | INPUT |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szTestValue | QVAL | char | REQ | INPUT |
The result of the performed test. | ||||
szMinimumValue | AMIN | char | REQ | INPUT |
The lowest value for a passing test result. | ||||
szMaximumValue | AMAX | char | REQ | INPUT |
The highest value for a passing test result. | ||||
cDisplayDecimals | CDEC | char | REQ | INPUT |
A value that designates the number of decimals in the currency, amount, or quantity fields the system displays. For example, U.S. Dollars
| ||||
cPassFailPF | QPF | char | OPT | OUTPUT |
The value which identifies whether the test passed (P) or failed (F). | ||||
cSuppressErrorMessageFlag | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | OPT | OUTPUT |
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
| ||||
cCallType | EV01 | char | REQ | INPUT |
| ||||
cDataOrigin | EV02 | char | REQ | INPUT |
An option that specifies the type of processing for an event. | ||||
jdDatetested | QDAT | JDEDATE | OPT | INPUT |
The date on which the test was performed. |
None |
None |