TestResultsEdit

Test Results Edit

Minor Business Rule

Object Name: N3700140

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

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_MATH010

VA evt_QVAL_MATH010

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_EV010


// Check to see Test ID is a valid test

//

FetchSingle F3701

BF Test ID=Test ID

BF BusinessUnitBusiness 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


Data Structure

D3700140 - Test Results Edit

Parameter NameData ItemData TypeReq/OptI/O/Both
szTestIDQTSTcharREQINPUT

The unique identification for a test to be performed on an item. For example:    COL Color test    DENS Density Test    CL-2   Clarity Test 

szCostCenterMCUcharREQINPUT

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szTestValueQVALcharREQINPUT

The result of the performed test.

szMinimumValueAMINcharREQINPUT

The lowest value for a passing test result.

szMaximumValueAMAXcharREQINPUT

The highest value for a passing test result.

cDisplayDecimalsCDECcharREQINPUT

A value that designates the number of decimals in the currency, amount, or quantity fields the system displays. For example, U.S. Dollars 
would be 2  decimals, Japanese Yen would be no decimals, and Cameroon Francs would be 3  decimals.

cPassFailPFQPFcharOPTOUTPUT

The value which identifies whether the test passed (P) or failed (F).

cSuppressErrorMessageFlagEV01charOPTINPUT

An option that specifies the type of processing for an event.

szErrorMessageIDDTAIcharOPTOUTPUT

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cCallTypeEV01charREQINPUT


^

cDataOriginEV02charREQINPUT

An option that specifies the type of processing for an event.

jdDatetestedQDATJDEDATEOPTINPUT

The date on which the test was performed.

Related Functions

None

Related Tables

None