F3701VerifyandGetTestDefinition

F3701 Verify and Get Test Definition

Minor Business Rule

Object Name: N3700040

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

The purpose of this business function is to validate and get test definition information against Test 

Definitions Master File (F3701).  Allowed Minimum Value, Allowed Maximum Value, Target Value, 

Preferred Minimum Value, and Preferred Maximum Value will be scrubbed after fetched by B3700010 if fetch is 

success.


1.2Setup Notes and Prerequisites



1.3Special Logic



2.Technical Specifications


VA evt_cFetchFlag="0" 

cErrorCode="0"

szErrorMessageID=" "



IfszTestID ? "*"


Fetch Test Definition Master Table (F3701) with following keys:
szTestID=QAQTST
szCostCenter=QAMCU
cStatus=QASTAW


IfFetch is success

szDescriptionLine1  =QADSC1

cTestType =QATTTY

szAllowableMinimumValue =QAAMIN

szPreferableMinimumValue =QAPMIN

szTargetValue =QAQTRG

szPreferableMaximumValue =QAPMAX

szAllowableMaximumValue =QAAMAX

szPropertyfutureuse =QAQPRP

szASTMReference =QAASTM

szTestMethod =QATMHD

VA evt_cNumberic_NUMT =QANUMT
VA evt_cDisplayDecimals_CDEC=QACDEC

VA evt_szSystemCode_SY =QASY

VA evt_szUDC_RT =QART

VA evt_cFetchFlag ="1"

Else
Select F3701 with:szTestID=QAQTST

szCostCenter =Blank

cStatus=Blank (Active)

FetchNext F3701:szDescriptionLine1=QADSC1


IfFetch is success
VA evt_cFetchFlag = "2"

End If


End If

If VA evt_cFetchFlag = "0"

cErrorCode="1"

szErrorMessageID="038S"


IfcSuppressErrorMessageFlag ? "1"

Call Set NER Error

"038S"=Error Value

szTestID=Parameter

End If


End If

If VA evt_cFetchFlag = "1" and VA evt_cValidateConvertMinMax = "1"

Call Validate/Convert Minimum, Maximum, Target (B3700010) to scrub following fields:
szAllowableMinimumValue

szPreferableMinimumValue

szTargetValue=szStringValue (B3700010)

szPreferableMaximumValue

szAllowableMaximumValue
Other parameters are passed as following:
"1"=cCallType
VA evt_cNumberic_NUMT=cNumericFlag

VA evt_cDisplayDecimals_CDEC=cDecimalNum

VA evt_szSystemCode_SY=szSystemCode

VA evt_szUDC_RT=szRecordTypeCode

"0"=cSuppressErrorMessageFlag

"1"=cDataOrigin

End If

End If


Data Structure

D3700040 - F3701 Verify and Get Test Definition

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 

szCostCenterMCUcharOPTNONE

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.

szDescriptionLine1DSC1charOPTNONE

Brief information about an item; a remark or an explanation.

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.

szAllowableMinimumValueAMINcharOPTNONE

The lowest value for a passing test result.

szPreferableMinimumValuePMINcharOPTNONE

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.

szTargetValueQTRGcharOPTNONE

The preferable or target test result within the test results range. As the system does not test against a target value, this field is for your 
information only.

szPreferableMaximumValuePMAXcharOPTNONE

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.

szAllowableMaximumValueAMAXcharOPTNONE

The highest value for a passing test result.

szPropertyfutureuseQPRPcharOPTNONE

The item attribute that is being tested.

szASTMReferenceASTMcharOPTNONE

Identifies a recommended testing procedure of the American Society of Testing Material.

szTestMethodTMHDcharOPTNONE

A description of how to run a quality test. The test method is useful to both your company's Quality Control department and your customers. 
For example:        Test: Viscosity         Method: RVF #4 @10RPM         Text: Run the viscosity test on a RVF viscometer with a number 4 spindle 
at 10 revolutions per minute.

cErrorCodeERRcharOPTNONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

cSuppressErrorMessageFlagEV01charOPTNONE

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

szErrorMessageIDDTA1charOPTNONE

A 256 byte field used to hold miscellaneous data.

cNumeric10NUMTcharOPTNONE

Determines whether a test result value will be numeric or alphanumeric. Valid values are:    1   Indicates that the result value is numeric and 
should be right justified.    0   Indicates that the result value is alphanumeric and should be left justified. Tests that are using alphanumeric result 
values can have User Defined Code tables setup that contain alpha to numeric translations. The purpose of these tables is to supply result 
evaluations with a way of determining whether a result is within the range of the minimum and maximum values.

szSystemCodeSYcharOPTNONE

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

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.

szCostCenterAltMMCUcharOPTNONE

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

szResultUnitofMeasureRSUMcharOPTNONE

A user defined code (37/UM) that identifies the unit of measure for a test result.  Examples of units of measure include barrels, boxes, cubic 
yards, gallons, and hours.

szSpecificationRevisionLevQREVcharOPTNONE

An alphanumeric character that represents the number of times a specification has changed. To avoid overlapping revisions, the system 
verifies that the start dates of revisions are greater than the end dates of other revisions.

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

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

mnSamplePercentageSMPCMATH_NUMERICOPTNONE

The percentage of an order quantity that determines the number of samples to create in Test Results Revisions. For example, if the sample 
percentage is 50 percent and the order quantity is 10, then 5 samples will be created in Test Results Revisions. Use either this field or 
Number of Samples to control how many samples to create. You can use this field only with the order mode of Test Results Revisions. If the 
sample percentage is 100 percent, then testing is required for every unit on the order. You cannot use Accept Percentage or Accept Quantity, 
since all units on the order must pass for the lot to pass.

szTestCategoryCode5QTC5charOPTNONE

One of five reporting codes that can be assigned to each test defined.  Use these codes to categorize tests into different groups.  Category 
codes are user defined (System 37, types T1 through T5). Examples:        Category code T1 - Test Equipment         Category code T2 - Test 
Process

szTestCategoryCode4QTC4charOPTNONE

One of five reporting codes that can be assigned to each test defined.  Use these codes to categorize tests into different groups.  Category 
codes are user defined (System 37, types T1 through T5). Examples:        Category code T1 - Test Equipment         Category code T2 - Test 
Process

szTestCategoryCode3QTC3charOPTNONE

One of five reporting codes that can be assigned to each test defined.  Use these codes to categorize tests into different groups.  Category 
codes are user defined (System 37, types T1 through T5). Examples:        Category code T1 - Test Equipment         Category code T2 - Test 
Process

szTestCategoryCode2QTC2charOPTNONE

One of five reporting codes that can be assigned to each test defined.  Use these codes to categorize tests into different groups.  Category 
codes are user defined (System 37, types T1 through T5). Examples:        Category code T1 - Test Equipment         Category code T2 - Test 
Process

szTestCategoryCode1QTC1charOPTNONE

One of five reporting codes that can be assigned to each test defined.  Use these codes to categorize tests into different groups.  Category 
codes are user defined (System 37, types T1 through T5). Examples:        Category code T1 - Test Equipment         Category code T2 - Test 
Process

cPrintText10PTTXcharOPTNONE

Determines whether the generic text for an item that is input through Test Result Revisions (P37111) will be printed on the Certificate of 
Analysis. Valid values are:    1   Print the generic text associated with this test in Test Results Revisions on the Certificate of Analysis.    0   Do not 
print any generic text associated with this test in Test Results Revisions on the Certificate of Analysis.

cPrintTest109PTTScharOPTNONE

A code used to determine whether or not a test will be printed on the Certificate of Analysis. The valid values are:    0   The test will not be 
printed on the Certificate of Analysis.    1   Print all occurrences of a test on the Certificate of Analysis.    2   Print just the average test result record 
when printing the Certificate of Analysis.    3   Print the last occurrence of a test when printing the Certificate of Analysis. The last occurrence will 
be the test results record that was entered last using Test Results Revisions.

cDisplayTest109TSDPcharOPTNONE

A code that determines how test results appear in Test Results Inquiry when accessed from sales orders. This code also determines how 
a test is to be evaluated. Valid values are:    0   Do not display tests when using Test Results Revisions or result inquiry programs. This value 
is only allowed for tests of type G, Guaranteed.    1   Display all occurrences of a test when using result inquiry programs.        To provide for 
the entry of result values, all occurrences of a test appear in Test Results Revisions. The system uses all result values to determine if a lot 
passes or fails.    2   Display only the average result record when using result inquiry programs. All occurrences of a test appear in Test Results 
Revisions.        The system uses only the average test result to determine if a lot passes or fails.    3   Display the last occurrence of a test when 
using result inquiry programs. The last occurrence is the test result last entered in Test Results Revisions. The system uses only the last 
test result to determine if a lot passes or fails.

cAverageAVGcharOPTNONE

A Y indicates the average value of a field is to be computed.

mnNumberofSamplesQSMPMATH_NUMERICOPTNONE

The number of samples to be taken for the test.

szQualityUnitofMeasureQUMcharOPTNONE

Identifies the unit of measure for a sample you take to test. Examples of units of measure include barrels, gallons, hours, and cubic yards.

mnSampleSizeQSSZMATH_NUMERICOPTNONE

The quantity of one sample to be taken for the test. As the system does not use this field, it is for your information only.

cDataDisplayDecimalsCDECcharOPTNONE

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.

szUserDefinedCodesRTcharOPTNONE

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

cStatus9STAWcharOPTNONE

A user-defined code (00/WS) that indicates the approval status.

jdEffectiveThruDateEFFTJDEDATEOPTNONE

A date that indicates one of the following:     o When a component part is no longer in effect on a bill of material     o When a routing step is no 
longer in effect as a sequence on the routing for an item     o When a rate schedule is no longer active The default is December 31 of the 
default year defined in the Data Dictionary for Century Change Year. You can enter future effective dates so that the system plans for upcoming 
changes. Items that are no longer effective in the future can still be recorded and recognized in Product Costing, Shop Floor Management, 
and Capacity Requirements Planning. The Material Requirements Planning system determines valid components by effectivity dates, not by 
the bill of material revision level. Some forms display data based on the effectivity dates you enter.

mnQualityTableSequenceNumberQTSNMATH_NUMERICOPTNONE

A control number that uniquely identifies master table records in the Quality Management system. The system automatically generates this 
number.

jdEffectiveFromDateEFFFJDEDATEOPTNONE

A date that indicates one of the following:     o When a component part goes into effect on a bill of material     o When a routing step goes into 
effect as a sequence on the routing for an item     o When a rate schedule is in effect The default is the current system date. You can enter 
future effective dates so that the system plans for upcoming changes. Items that are no longer effective in the future can still be recorded and 
recognized in Product Costing, Shop Floor Management, and Capacity Requirements Planning. The Material Requirements Planning system 
determines valid components by effectivity dates, not by the bill of material revision level. Some forms display data based on the effectivity 
dates you enter.

mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTNONE

This field is a unique number used to identify a record in a file.

cApprovalActionCodeACTNcharOPTNONE

A code that specifies the action that is performed. Valid values are: A Add C Change

jdCurrentTestDateEFFFJDEDATEOPTNONE

A date that indicates one of the following:     o When a component part goes into effect on a bill of material     o When a routing step goes into 
effect as a sequence on the routing for an item     o When a rate schedule is in effect The default is the current system date. You can enter 
future effective dates so that the system plans for upcoming changes. Items that are no longer effective in the future can still be recorded and 
recognized in Product Costing, Shop Floor Management, and Capacity Requirements Planning. The Material Requirements Planning system 
determines valid components by effectivity dates, not by the bill of material revision level. Some forms display data based on the effectivity 
dates you enter.

cQualityManagementStatus01QM01charOPTNONE

cQualityManagementStatus02QM02charOPTNONE

cQualityManagementStatus03QM03charOPTNONE

cQualityManagementStatus04QM04charOPTNONE

cQualityManagementStatus05QM05charOPTNONE

cQualityManagementStat06QM06charOPTNONE

cQualityManagementStat07QM07charOPTNONE

cQualityManagementStat08QM08charOPTNONE

cQualityManagementStat09QM09charOPTNONE

cQualityManagementStat10QM10charOPTNONE

szUserReservedCodeURCDcharOPTNONE

This is a 2 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

jdUserReservedDateURDTJDEDATEOPTNONE

This is a 6 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

mnUserReservedAmountURATMATH_NUMERICOPTNONE

This is a 15 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

szUserReservedReferenceURRFcharOPTNONE

A 15-position reference that is reserved for the user.  J.D. Edwards does not currently use this field and does not plan to use it in the future.

mnUserReservedNumberURABMATH_NUMERICOPTNONE

This is a 8 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

szUserIdUSERcharOPTNONE

The code that identifies a user profile.

szProgramIdPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

jdDateUpdatedUPMJJDEDATEOPTNONE

The date that specifies the last update to the file record.

mnTimeOfDayTDAYMATH_NUMERICOPTNONE

The computer clock in hours:minutes:seconds.

szWorkStationIdJOBNcharOPTNONE

The code that identifies the work station ID that executed a particular job.

cValidateConvertMinMaxTargetEV01charOPTNONE

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

mnChangeThresholdCHGTHRESMATH_NUMERICOPTNONE

The allowed percentage of variation from the previous result. 

mnQualityMgmtAB1QMAB1MATH_NUMERICOPTNONE

Reserved for Quality Management. 

szQualityMgmtCode1QMCD1charOPTNONE

Reserved for Quality Management. 

jdQualityMgmtDate1QMDT1JDEDATEOPTNONE

Reserved for Quality Management.

mnQualityMgmtNumeric1QMNUM1MATH_NUMERICOPTNONE

Reserved for Quality Management. 

szQualityMgmtReference1QMRF1charOPTNONE

Reserved for Quality Management. 

szResultConversionIDRSCONVIDcharOPTNONE

Indicates the conversion table ID to use to convert a test result.  For example, a test result is entered in Fahrenheit but must be recorded in 
Celsius. 

mnResultDurationDaysRSDURDYMATH_NUMERICOPTNONE

Number of days result is valid.  This value is used to determine the result expiration date. 

mnTestDurationDaysTSTDURDYMATH_NUMERICOPTNONE

The number of days it takes to complete a test. 

szTestResultNameTSTRSNMcharOPTNONE

Unique name used to group test results.

Related Functions

None

Related Tables

None