EvaluateTestResults

Evaluate Test Results

Minor Business Rule

Object Name: B3700190

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

The purpose of this business function is to evaluate a set of Test Results and determine whether a 

given item passes quality testing.  Based on a mode parameter, the function will evaluate using data 

from different files.  For example, if mode is '1', the function will read and evaluate data exclusively 

from the Test Result file.  If mode is '2', the function will receive in the parameters necessary to 

preference for Quality Management.   These parameters will be used to retrieve the preference so that 

result values from the Test Result file (F3711) can be compared to minimum and maximum values from the 

Preference file (F40318).   The output from the function is values of pass, fail or testing 

incomplete.


1.2Setup Notes and Prerequisites

• In order for this function to evaluate, the calling program must either pass in enough information 
to retrieve a set of Test Result records or pass in enough information to Preference and retrieve a set 

of Test Result records.


1.3Special Logic

When the evaluate is performed from Item Availability a processing option will have to be created to 

ask whether allowed or preferred minimum and maximum should be used to evaluate.


The call to this function will be followed by a call to a second function within B3700190 that will 

clear the cache.


2.4Processing 


Because of complexity, online processing specifications are not provided here.

Data Structure

D3700190A - Evaluate Test Results

Parameter NameData ItemData TypeReq/OptI/O/Both
mnItemNumITMMATH_NUMERICOPTNONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

mnShipToAddressNumSHANMATH_NUMERICOPTNONE

The address number of the location to which you want to ship this order. The address book provides default values for customer address, 
including street, city, state, zip code, and country.

mnSoldToAddressNumAN8MATH_NUMERICOPTNONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnParentAddressNumPA8MATH_NUMERICOPTNONE

The address book number of the parent company. The system uses this number to associate a particular address with a parent company 
or location. Any value that you enter in this field updates the Address Organizational Structure Master table (F0150) for the blank structure 
type. This address number must exist in the Address Book Master table (F0101) for validation purposes. Examples of address book records 
that would have a parent number include:   o  Subsidiaries with parent companies     o  Branches with a home office     o  Job sites with a general 
contractor 

jdDateRequestedDRQJJDEDATEOPTNONE

The date that an item is scheduled to arrive or that an action is scheduled for completion.

mnOrderQuantityUORGMATH_NUMERICOPTNONE

The quantity of units affected by this transaction.

szUnitOfMeasureUOMcharOPTNONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szBranchPlantMCUcharOPTNONE

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.

szLotNumLOTNcharOPTNONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

szLotLocationLOCNcharOPTNONE

The storage location from which goods will be moved.

mnDocumentNumDOCOMATH_NUMERICOPTNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szDocumentTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szKeyCompanyKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnLineNumLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnTripNumTRPMATH_NUMERICOPTNONE

The number assigned to a trip during direct assignment or trip building. The Trip Depot and the Trip Number fields identify the unique 
combination of vehicle, registration number, load date, and shift.

mnTripLegNumTRPLMATH_NUMERICOPTNONE

A specific leg of a trip.

mnLogicalCompartmentNumLCMPMATH_NUMERICOPTNONE

The compartment number in a connected vehicle. A connected vehicle is a number of vehicles with compartments. The logical 
compartment number represents the compartments as if the connected vehicle were one vehicle.  The first compartment is closest to the power 
unit. Example:  Three vehicles are connected.  The first is the power unit, the second has 4 compartments and the third has 3 compartments. The first 4 
 logical compartment numbers equal the compartment numbers on the first vehicle. The 5th, 6th, and 7th logical compartments represent the 
compartments in the second vehicle.

szVehicleIDVEHIcharOPTNONE

A unique identification number for a vehicle. This number serves as a primary identifier for a vehicle.

szComputerIDCTIDcharOPTNONE

mnJobnumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

cErrorCodeERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szErrorMessageIDDTAIcharOPTNONE

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.

cProcessingModeMODEcharOPTNONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

cUsePrefMinMaxEV01charOPTNONE

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

cPassFailFlagQPFcharOPTNONE

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

cTestResultsStatusEV01charOPTNONE

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

szCostCenterTripVMCUcharOPTNONE

Indicates the depot from which a trip originates. The Trip Depot and the Trip Number fields identify the unique combination of vehicle, 
registration number, load date, and shift.

jdTransactionDateTRDJJDEDATEOPTNONE

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

Related Functions

None

Related Tables

None
TestResultsCacheHandler

TestResultsCacheHandler

Evaluate Test Results

Minor Business Rule

Object Name: B3700190

Parent DLL: CMFG

Location: Client/Server

Language: C


Data Structure

D3700190B - Evaluate test results cache

Parameter NameData ItemData TypeReq/OptI/O/Both
szTestIDQTSTcharOPTNONE

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

szDetailBranchPlantMCU2charOPTNONE

An accounting entity, such as a profit center, department, warehouse location, job, project, workcenter, and so on, required for management 
reporting.

mnSampleNumberSNBRMATH_NUMERICOPTNONE

A number assigned to a group of tests within the same sample.

szTestResultValueQVALcharOPTNONE

The result of the performed test.

cPassFailFlagQPFcharOPTNONE

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

cTestOverrideFlagTOVRcharOPTNONE

The flag which designates whether a test has been overridden. Valid values are:    1   overridden    0   not overridden 

cTestTypeTTTYcharOPTNONE

A value that specifies how the system processes tests as you enter test results. Valid values are:    R  Required. Result values must be 
within the allowable range for the test to pass. The system does not allow an item to pass quality inspection until you enter results for each 
required test.    O  Optional. Result values are optional during results entry. The system does not require the entry of a result for each optional test. 
However, if you enter failing results, the item fails quality inspection.    G  Guaranteed. Result values are optional during results entry. You can 
control whether Guaranteed tests appear as you enter test results with the Display Test field on Test Revisions. In addition, guaranteed tests 
print on the Certificate of Analysis.

cNumberOfDecimalsCDECcharOPTNONE

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.

szUserDefinedSystemCodeSYcharOPTNONE

A user defined code (98/SY) that identifies a system. Valid values include: 01 Address Book 03B Accounts Receivable 04 Accounts 
Payable 09 General Accounting 11 Multicurrency

szUserDefinedCodeRTcharOPTNONE

A code that identifies the table that contains user defined codes. The table is also referred to as a UDC type.

szAllowableMinAMINcharOPTNONE

The lowest value for a passing test result.

szAllowableMaxAMAXcharOPTNONE

The highest value for a passing test result.

szPreferableMinPMINcharOPTNONE

The lowest value for the preferred test result. This value must be greater than or equal to the allowed minimum value. Use the preferred 
minimum value to measure quality to a more precise specification than a customer requests. Processing options for the Certificate of Analysis 
program allow you to print the preferred value on the Certificate of Analysis report. Processing options for the Test Revisions program allow you 
to evaluate samples against the preferred values.

szPreferableMaxPMAXcharOPTNONE

The highest value for the preferred test result. This value must be less than or equal to the allowed maximum value. Use the preferred 
maximum value to measure quality to a more precise specification than a customer requests. Processing options for the Certificate of Analysis 
program allow you to print the preferred value on the Certificate of Analysis report. Processing options for the Test Revisions program allow you 
to evaluate samples against the preferred values.

mnAcceptQuantityACQTMATH_NUMERICOPTNONE

A flag that indicates the quantity of tests that must pass in order for the test sample to pass quality control. The system evaluates this value 
when the sample percentage is not equal to 100. To use this accept quantity value, you must complete the following fields on Test Definitions 
accordingly:    1       Display/Evaluate    Blank Accept Percentage

mnAcceptPercentageACPCMATH_NUMERICOPTNONE

A flag that indicates the percentage of tests that must pass in order for the sample to pass quality control. The system evaluates this value 
when the sample percentage is not equal to 100. To use the accept percentage value, you must complete the following fields on Test 
Definitions accordingly:    1         Display/Evaluate    Blank Accept Quantity

szDerivedCalculationDERCcharOPTNONE

An algebraic formula that specifies the quantity, price, hours, or a value associated with a rule. The following examples illustrate the syntax 
for possible derived calculations: Segment References     o S3 indicates segment 3.     o S3=Piston= indicates segment 3 in item 
Piston. Trigonometric and Logarithmic Functions     o SIN(20) indicates the sine of 20.     o COS(S3) indicates the cosine of segment 3.     o TAN(S4) indicates 
the tangent of segment 4.     o ARC(S3) indicates the arctangent of segment 3.     o LOG indicates log to base 10.     o LN indicates natural log.    
 o 2**5 indicates an exponent, 2 to the fifth power. Substring SUBSTR(S10,1,4) indicates that the substring from segment 10 starts at the first 
position of the string and includes the first 4 positions. Concatenations CONCAT(S3,S4) combines the values of segments 3 and 4. External 
Fields Specifies the fields from non-configurator tables that you want the system to access as part of a calculation. Use the ampersand character 
followed by the field name. For example, &T2AMTU(WD) indicates an amount field in the Item Supplemental Database table, and the WD 
data type. External Programs Specifies that a program external to the system is to be used for the calculation. Enter the name of the external 
program and EXTVAR in the Derived Calculations field. Smart Parts PS4 indicates a smart part number P2000 when the value of segment 4 is 
2000.

cTestResultExistsEV01charOPTNONE

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

szCostCenterTripVMCUcharOPTNONE

Indicates the depot from which a trip originates. The Trip Depot and the Trip Number fields identify the unique combination of vehicle, 
registration number, load date, and shift.

mnJobnumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

szComputerIDCTIDcharOPTNONE

cCacheActionCodeEV01charOPTNONE

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

cCacheErrorCodeEV01charOPTNONE

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

cReturnCacheCursorHandleEV01charOPTNONE

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

idCacheCursorHandleGENLNGIDOPTNONE

General purpose ID variable.

cSuppressErrorMessagesEV01charOPTNONE

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

szErrorMessageIDDTAIcharOPTNONE

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.

Related Functions

None

Related Tables

None