F40318DeleteAllRowsforStatus

F40318 Update Quality Preferences

Major Business Rule

Object Name: N3700340

Parent DLL: CMFG

Location: Client/Server

Language: NER

Data Structure

D3700340 - F40318 Update Quality Preferences

Data Item  DescriptionI/ORequired   Notes
UKIDWorkflow Key      I/O

ACTNAction Code             I           1' or 'A' = Add '2' or 'C' = Change '3' or 'D' = 

Delete

ANOOriginator             I   Y

AN8Address Book Number I   N

CS18Customer Group       I   N

ITMItem Number             I   N

IT18Item Group             I   N

EFTJDate Effective       I   N

EXDJDate Expired       I   N

MNQMinimum Quantity       I   N

MXQMaximum Quantity       I   N

UOMUnit of Measure       I   N

EFFFEffective From Date I   N

EFFTEffective Thru Date I   N

QTSNQuality Table Seq. No. I   N

TXIDText ID Number       I   N

STPRStatus Preference       I   N

OSEQSequence Number       I   N

MCUBranch Plant       I   N

TSRTTest Sort Sequence No. I   N

QTSTTest ID             I   N

TTTYTest Type             I   N

QREVSpecification Rev Level I   N

TSSPTest Specification Flag I   N

MCU2Test Branch Plant       I   N

SYSystem Code             I   N

RTUser Defined Codes  I   N

AMINAllowed Minimum Value I   N

AMAX Allowed Maximum Value  I   N

PMINPreferred Minimum Value I   N

PMAXPreferred Maximum Value I   N

QTRGTarget Value       I   N

QSSZSample Size             I   N 

QUMQuality Unit of Measure I   N

QSMPNumber of Samples  I   N

SMPCSample Percentage       I   N

ACQTAccept Quantity       I   N

ACPCAccept Percentage       I   N

PTTSPrint Test             I   N

MFGRManufacturing Operations I   N

MRRRMfg Receipt Routing I   N

PRERPurchasing Rcpt Rtg I   N

PRCRPurchase Receipts  I   N

MFGCMfg Completions       I   N

SHPRShip Confirm       I   N

BLKRBulk Load Confirm       I   N

OPSQSeq No. Operations I   N

OPRSOperation Sequence I   N

BSEQBubble Sequence       I   N

TRTType Routing       I   N

TMHDTest Method             I   N 

RSUMResult Unit of Measure I   N

NUMBAsset Item Number       I   N

ASTMASTM Reference       I   N

QPRPProperty Future       I   N

TTSTTiming of Test (future)  I   N

MMCUCost Center Alt       I   N

CDECDisplay Decimals       I    N

URCDUser Reserved Code I   N

URDTUser Reserved Date I   N

URATUser Reserved Amount I   N

URRFUser Reserved Reference I   N

URABUser Reserved Number I   N

USERUser Id             I   N

PIDProgram Id             I   N

UPMJDate Updated       I   N

TDAYTime of Day             I   N

JOBNWork Station Id       I   N

EV01Origin Code             I   N  '1' = function called from revision application. 

                                            '2' = function called from approval completion

APPRACT  Approval Action Code I   N  'A' = Approved 'R' = Rejected

EV01 Activate Workflow       I   N  '1' = Workflow activated through processing option on 

                                                  revision application blank = Workflow not activated

EV01Activate Logging       I   N  '1' = Logging activated through processing option on 

                                                  revision application blank = Logging not activated

EV01Suppress Error Messages I   N

DTAIError Message Id       O   N

EV01Resequence Flag       I   N  '1' = Test Sort Sequence Nos. should be resequenced

UTIMItem NumberUnknown Fmt  I   N

DERCDerived Calculation I   N

STAWStatus             I   N  Blank = active '1' = Pending '2' = History '3' = Rejected

EV01Form Mode             I   N   'A' = Add 'C' = Change


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTNONE

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

cActionCode2ACTNcharOPTNONE

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

mnAddNoOriginatorANOMATH_NUMERICOPTNONE

The address book number of the person who originated the change request. The system verifies this number against the Address Book.

mnAddressNumberAN8MATH_NUMERICOPTNONE

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

szCustomerGroupQualityManagemeCS18charOPTNONE

User defined code (system 40, type 18) identifying a group to which you can assign customers for the Item/Test Specifications. Do this 
when the customers are similar and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
customer group for which you want to define a preference. You can define the preference for this group alone or for a combination of customer 
group and item or item group. If you leave both the Customer Number and the Customer Group fields blank, the system applies the 
preference to all customers.

mnIdentifierShortItemITMMATH_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

szItemGroupQualityManagementIT18charOPTNONE

User defined code (system 40, type 68) identifying a group to which you can assign items for the Item/Test Specifications. Do this when you 
have a group of similar items and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
item group for which you want to define a preference. You can define the preference for this group alone or for a combination of item group 
and customer or customer group. If you leave both the Item Number and Item Group fields blank, the system applies the preference to all items

jdDateEffectiveJulian1EFTJJDEDATEOPTNONE

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

jdDateExpiredJulian1EXDJJDEDATEOPTNONE

The date on which a transaction, text message, agreement, obligation, or preference has expired or been completed.

mnQuantityMinimumMNQMATH_NUMERICOPTNONE

A value that specifies how an adjustment or preference will be applied to a price. This value can be a quantity, weight, or amount, 
depending on how you have defined the level-break type in the Price Adjustment Detail table (F4072).

mnQuantityMaxMXQMATH_NUMERICOPTNONE

The quantity at which a preference becomes invalid.

szUnitOfMeasureAsInputUOMcharOPTNONE

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

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.

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.

mnTextIDNumberTXIDMATH_NUMERICOPTNONE

Unique identifier associating a preference with it's generic text.

cStatusPreferenceSTPRcharOPTNONE

Status code to activate or de-activate a preference.  The following are valid codes:    1 Active    2 Inactive 

mnSequenceNumberOSEQMATH_NUMERICOPTNONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

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.

mnTestSortSequenceNumberTSRTMATH_NUMERICOPTNONE

A number used to determine the sort order of tests and specifications within preference profiles (item/test specifications).

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 

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.

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.

cTestSpecificationflagTSSPcharOPTNONE

A code that indicates whether a record within preference profiles (item/test specifications) is a test or specification. Valid values are:    T Test  
  S Specification 

szCostCenter2MCU2charOPTNONE

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

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

szUserDefinedCodesRTcharOPTNONE

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

szAllowableMinimumValuefutAMINcharOPTNONE

The lowest value for a passing test result.

szAllowableMaximumValuefutAMAXcharOPTNONE

The highest 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.

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.

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.

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.

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.

mnNumberofSamplesQSMPMATH_NUMERICOPTNONE

The number of samples to be taken for the test.

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.

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

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.

cManufacturingOperationsMFGRcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from any of the following Manufacturing programs:   o  Co-/By-Product Completion (P31115)   o  Super Backflush (P31123)   
o  Work Order Time Entry (P311221) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test 
Results Revisions form. You can use this value with the operation sequence and routing type to control the appearance of the test at an operation 
or routing type.

cManufacturingReceiptRoutingMRRRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from the Routing 
Movement and Disposition (P43250) program when the routed order is a manufacturing work order. Valid values are:    1   The test will appear on Test 
Results Revisions.    0   The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the 
appearance of the test at a route operation.

cPurchasingReceiptRoutingPRERcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from Routing Movement 
and Disposition (P43250) and the routed order is a purchase order. Valid values are:    1   The test will appear on Test Results Revisions.    0   
The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the appearance of the test 
at an operation.

cPurchasingReceiptsPRCRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from either Receipts by 
P/O or Receipts by Item (P4312). Valid values are:    1   The test will appear in Test Results Revisions.    0   The test will not appear in Test 
Results Revisions.

cManufacturingCompletionsMFGCcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from either of the following Manufacturing programs:   o  Work Order Completions (P31114)   o  Completions Workbench 
(P3119) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test Results Revisions form.

cShipConfirmSHPRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from the Ship 
Confirmation (P4205) program. Valid values are:    1   The test will appear on Test Results Revisions.    0   The test will not appear on Test Results 
Revisions.

cBulkLoadConfirmBLKRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from one of the following 
programs:     o Bulk Confirm by Order or Bulk Confirm by Trip (P49510)     o Packaged Load Confirmation (P49530) Valid values are:    1   The 
test will appear on Test Results Revisions.    0   The test will not appear on Test Results Revisions.

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnOperationSequenceOPRSMATH_NUMERICOPTNONE

The sequence in which the system performs the operations or steps of the route.

mnBubbleSequenceBSEQMATH_NUMERICOPTNONE

A secondary bill of material sequence number that indicates the drawing bubble number.

szTypeRoutingTRTcharOPTNONE

A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses. For 
example:    M    Standard Manufacturing Routing    RWK  Rework Routing    RSH  Rush Routing You define the routing type on the work order 
header. The system then uses the specific type of routing that you define in the work order routing. Product Costing and Capacity Planning systems 
use only M type routings.

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.

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.

mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

szASTMReferenceASTMcharOPTNONE

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

szPropertyfutureuseQPRPcharOPTNONE

The item attribute that is being tested.

cTimingofTestFutureUseTTSTcharOPTNONE

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.

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.

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.

cOriginCodeEV01charOPTNONE

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

cApprovalActionCodeAPPRACTcharOPTNONE

A code that determines whether a workflow recipient has accepted or rejected a workflow task that has been submitted for approval. Valid 
values are: A Accept. R Reject.

cActivateWorkflowEV01charOPTNONE

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

cActivateLoggingEV01charOPTNONE

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

cSuppressErrorMsgsEV01charOPTNONE

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

szErrorMsgIDDTAIcharOPTNONE

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.

cResequenceFlagEV01charOPTNONE

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

szItemNoUnknownFormatUITMcharOPTNONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

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.

cStatus9STAWcharOPTNONE

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

cFormModeEV01charOPTNONE

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

jdOriginalEffectiveThru_EFFTEFFTJDEDATEOPTNONE

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.

Related Functions

None

Related Tables

None
F40318DeleteRow

F40318DeleteRow

F40318 Update Quality Preferences

Major Business Rule

Object Name: N3700340

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
This business function includes several functions that are used to add, update, or delete rows from 
the Quality Management Preference table (F40318).  


The main function, "F40318 Update Quality Preferences"  is used in two difference situations:

• The Quality Preference revisions application (P43018) calls this function when a change, add or 
delete is made to a quality preference.  

• This function is also called at the completion of a workflow approval (i.e. either an approval or 
rejection) to perform final updates to the quality preference table (F43018).


This main function calls each of the other functions in this source file. 

• F40318 Log History Records  writes all history records (status = '2') to the quality preference 
table

• F43018 Delete All Rows for Status  deletes rows on the quality preference table with a specified 
status

• F43018 Update Row  updates an existing row on the quality preference table
• F40318 Insert Row  adds a new row to the quality preference table
• F43018 Delete Row  deletes an existing row from the quality preference table

1.3Special Logic

Note:   All functions use the same data structure, D3700340.

2.4Processing - F40318 Delete Row


1)Delete a row from the F43018 table using key values passed in as input.


Data Structure

D3700340 - F40318 Update Quality Preferences

Data Item  DescriptionI/ORequired   Notes
UKIDWorkflow Key      I/O

ACTNAction Code             I           1' or 'A' = Add '2' or 'C' = Change '3' or 'D' = 

Delete

ANOOriginator             I   Y

AN8Address Book Number I   N

CS18Customer Group       I   N

ITMItem Number             I   N

IT18Item Group             I   N

EFTJDate Effective       I   N

EXDJDate Expired       I   N

MNQMinimum Quantity       I   N

MXQMaximum Quantity       I   N

UOMUnit of Measure       I   N

EFFFEffective From Date I   N

EFFTEffective Thru Date I   N

QTSNQuality Table Seq. No. I   N

TXIDText ID Number       I   N

STPRStatus Preference       I   N

OSEQSequence Number       I   N

MCUBranch Plant       I   N

TSRTTest Sort Sequence No. I   N

QTSTTest ID             I   N

TTTYTest Type             I   N

QREVSpecification Rev Level I   N

TSSPTest Specification Flag I   N

MCU2Test Branch Plant       I   N

SYSystem Code             I   N

RTUser Defined Codes  I   N

AMINAllowed Minimum Value I   N

AMAX Allowed Maximum Value  I   N

PMINPreferred Minimum Value I   N

PMAXPreferred Maximum Value I   N

QTRGTarget Value       I   N

QSSZSample Size             I   N 

QUMQuality Unit of Measure I   N

QSMPNumber of Samples  I   N

SMPCSample Percentage       I   N

ACQTAccept Quantity       I   N

ACPCAccept Percentage       I   N

PTTSPrint Test             I   N

MFGRManufacturing Operations I   N

MRRRMfg Receipt Routing I   N

PRERPurchasing Rcpt Rtg I   N

PRCRPurchase Receipts  I   N

MFGCMfg Completions       I   N

SHPRShip Confirm       I   N

BLKRBulk Load Confirm       I   N

OPSQSeq No. Operations I   N

OPRSOperation Sequence I   N

BSEQBubble Sequence       I   N

TRTType Routing       I   N

TMHDTest Method             I   N 

RSUMResult Unit of Measure I   N

NUMBAsset Item Number       I   N

ASTMASTM Reference       I   N

QPRPProperty Future       I   N

TTSTTiming of Test (future)  I   N

MMCUCost Center Alt       I   N

CDECDisplay Decimals       I    N

URCDUser Reserved Code I   N

URDTUser Reserved Date I   N

URATUser Reserved Amount I   N

URRFUser Reserved Reference I   N

URABUser Reserved Number I   N

USERUser Id             I   N

PIDProgram Id             I   N

UPMJDate Updated       I   N

TDAYTime of Day             I   N

JOBNWork Station Id       I   N

EV01Origin Code             I   N  '1' = function called from revision application. 

                                            '2' = function called from approval completion

APPRACT  Approval Action Code I   N  'A' = Approved 'R' = Rejected

EV01 Activate Workflow       I   N  '1' = Workflow activated through processing option on 

                                                  revision application blank = Workflow not activated

EV01Activate Logging       I   N  '1' = Logging activated through processing option on 

                                                  revision application blank = Logging not activated

EV01Suppress Error Messages I   N

DTAIError Message Id       O   N

EV01Resequence Flag       I   N  '1' = Test Sort Sequence Nos. should be resequenced

UTIMItem NumberUnknown Fmt  I   N

DERCDerived Calculation I   N

STAWStatus             I   N  Blank = active '1' = Pending '2' = History '3' = Rejected

EV01Form Mode             I   N   'A' = Add 'C' = Change


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTNONE

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

cActionCode2ACTNcharOPTNONE

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

mnAddNoOriginatorANOMATH_NUMERICOPTNONE

The address book number of the person who originated the change request. The system verifies this number against the Address Book.

mnAddressNumberAN8MATH_NUMERICOPTNONE

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

szCustomerGroupQualityManagemeCS18charOPTNONE

User defined code (system 40, type 18) identifying a group to which you can assign customers for the Item/Test Specifications. Do this 
when the customers are similar and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
customer group for which you want to define a preference. You can define the preference for this group alone or for a combination of customer 
group and item or item group. If you leave both the Customer Number and the Customer Group fields blank, the system applies the 
preference to all customers.

mnIdentifierShortItemITMMATH_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

szItemGroupQualityManagementIT18charOPTNONE

User defined code (system 40, type 68) identifying a group to which you can assign items for the Item/Test Specifications. Do this when you 
have a group of similar items and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
item group for which you want to define a preference. You can define the preference for this group alone or for a combination of item group 
and customer or customer group. If you leave both the Item Number and Item Group fields blank, the system applies the preference to all items

jdDateEffectiveJulian1EFTJJDEDATEOPTNONE

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

jdDateExpiredJulian1EXDJJDEDATEOPTNONE

The date on which a transaction, text message, agreement, obligation, or preference has expired or been completed.

mnQuantityMinimumMNQMATH_NUMERICOPTNONE

A value that specifies how an adjustment or preference will be applied to a price. This value can be a quantity, weight, or amount, 
depending on how you have defined the level-break type in the Price Adjustment Detail table (F4072).

mnQuantityMaxMXQMATH_NUMERICOPTNONE

The quantity at which a preference becomes invalid.

szUnitOfMeasureAsInputUOMcharOPTNONE

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

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.

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.

mnTextIDNumberTXIDMATH_NUMERICOPTNONE

Unique identifier associating a preference with it's generic text.

cStatusPreferenceSTPRcharOPTNONE

Status code to activate or de-activate a preference.  The following are valid codes:    1 Active    2 Inactive 

mnSequenceNumberOSEQMATH_NUMERICOPTNONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

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.

mnTestSortSequenceNumberTSRTMATH_NUMERICOPTNONE

A number used to determine the sort order of tests and specifications within preference profiles (item/test specifications).

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 

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.

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.

cTestSpecificationflagTSSPcharOPTNONE

A code that indicates whether a record within preference profiles (item/test specifications) is a test or specification. Valid values are:    T Test  
  S Specification 

szCostCenter2MCU2charOPTNONE

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

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

szUserDefinedCodesRTcharOPTNONE

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

szAllowableMinimumValuefutAMINcharOPTNONE

The lowest value for a passing test result.

szAllowableMaximumValuefutAMAXcharOPTNONE

The highest 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.

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.

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.

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.

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.

mnNumberofSamplesQSMPMATH_NUMERICOPTNONE

The number of samples to be taken for the test.

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.

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

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.

cManufacturingOperationsMFGRcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from any of the following Manufacturing programs:   o  Co-/By-Product Completion (P31115)   o  Super Backflush (P31123)   
o  Work Order Time Entry (P311221) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test 
Results Revisions form. You can use this value with the operation sequence and routing type to control the appearance of the test at an operation 
or routing type.

cManufacturingReceiptRoutingMRRRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from the Routing 
Movement and Disposition (P43250) program when the routed order is a manufacturing work order. Valid values are:    1   The test will appear on Test 
Results Revisions.    0   The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the 
appearance of the test at a route operation.

cPurchasingReceiptRoutingPRERcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from Routing Movement 
and Disposition (P43250) and the routed order is a purchase order. Valid values are:    1   The test will appear on Test Results Revisions.    0   
The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the appearance of the test 
at an operation.

cPurchasingReceiptsPRCRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from either Receipts by 
P/O or Receipts by Item (P4312). Valid values are:    1   The test will appear in Test Results Revisions.    0   The test will not appear in Test 
Results Revisions.

cManufacturingCompletionsMFGCcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from either of the following Manufacturing programs:   o  Work Order Completions (P31114)   o  Completions Workbench 
(P3119) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test Results Revisions form.

cShipConfirmSHPRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from the Ship 
Confirmation (P4205) program. Valid values are:    1   The test will appear on Test Results Revisions.    0   The test will not appear on Test Results 
Revisions.

cBulkLoadConfirmBLKRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from one of the following 
programs:     o Bulk Confirm by Order or Bulk Confirm by Trip (P49510)     o Packaged Load Confirmation (P49530) Valid values are:    1   The 
test will appear on Test Results Revisions.    0   The test will not appear on Test Results Revisions.

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnOperationSequenceOPRSMATH_NUMERICOPTNONE

The sequence in which the system performs the operations or steps of the route.

mnBubbleSequenceBSEQMATH_NUMERICOPTNONE

A secondary bill of material sequence number that indicates the drawing bubble number.

szTypeRoutingTRTcharOPTNONE

A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses. For 
example:    M    Standard Manufacturing Routing    RWK  Rework Routing    RSH  Rush Routing You define the routing type on the work order 
header. The system then uses the specific type of routing that you define in the work order routing. Product Costing and Capacity Planning systems 
use only M type routings.

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.

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.

mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

szASTMReferenceASTMcharOPTNONE

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

szPropertyfutureuseQPRPcharOPTNONE

The item attribute that is being tested.

cTimingofTestFutureUseTTSTcharOPTNONE

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.

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.

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.

cOriginCodeEV01charOPTNONE

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

cApprovalActionCodeAPPRACTcharOPTNONE

A code that determines whether a workflow recipient has accepted or rejected a workflow task that has been submitted for approval. Valid 
values are: A Accept. R Reject.

cActivateWorkflowEV01charOPTNONE

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

cActivateLoggingEV01charOPTNONE

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

cSuppressErrorMsgsEV01charOPTNONE

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

szErrorMsgIDDTAIcharOPTNONE

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.

cResequenceFlagEV01charOPTNONE

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

szItemNoUnknownFormatUITMcharOPTNONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

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.

cStatus9STAWcharOPTNONE

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

cFormModeEV01charOPTNONE

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

jdOriginalEffectiveThru_EFFTEFFTJDEDATEOPTNONE

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.

Related Functions

None

Related Tables

None
F40318InsertRow

F40318InsertRow

F40318 Update Quality Preferences

Major Business Rule

Object Name: N3700340

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
This business function includes several functions that are used to add, update, or delete rows from 
the Quality Management Preference table (F40318).  


The main function, "F40318 Update Quality Preferences"  is used in two difference situations:

• The Quality Preference revisions application (P43018) calls this function when a change, add or 
delete is made to a quality preference.  

• This function is also called at the completion of a workflow approval (i.e. either an approval or 
rejection) to perform final updates to the quality preference table (F43018).


This main function calls each of the other functions in this source file. 

• F40318 Log History Records  writes all history records (status = '2') to the quality preference 
table

• F43018 Delete All Rows for Status  deletes rows on the quality preference table with a specified 
status

• F43018 Update Row  updates an existing row on the quality preference table
• F40318 Insert Row  adds a new row to the quality preference table
• F43018 Delete Row  deletes an existing row from the quality preference table

1.3Special Logic

Note:   All functions use the same data structure, D3700340.


2.4Processing - F40318 Insert Row


Insert a new row on the F43018 table using values passed in as input.

Data Structure

D3700340 - F40318 Update Quality Preferences

Data Item  DescriptionI/ORequired   Notes
UKIDWorkflow Key      I/O

ACTNAction Code             I           1' or 'A' = Add '2' or 'C' = Change '3' or 'D' = 

Delete

ANOOriginator             I   Y

AN8Address Book Number I   N

CS18Customer Group       I   N

ITMItem Number             I   N

IT18Item Group             I   N

EFTJDate Effective       I   N

EXDJDate Expired       I   N

MNQMinimum Quantity       I   N

MXQMaximum Quantity       I   N

UOMUnit of Measure       I   N

EFFFEffective From Date I   N

EFFTEffective Thru Date I   N

QTSNQuality Table Seq. No. I   N

TXIDText ID Number       I   N

STPRStatus Preference       I   N

OSEQSequence Number       I   N

MCUBranch Plant       I   N

TSRTTest Sort Sequence No. I   N

QTSTTest ID             I   N

TTTYTest Type             I   N

QREVSpecification Rev Level I   N

TSSPTest Specification Flag I   N

MCU2Test Branch Plant       I   N

SYSystem Code             I   N

RTUser Defined Codes  I   N

AMINAllowed Minimum Value I   N

AMAX Allowed Maximum Value  I   N

PMINPreferred Minimum Value I   N

PMAXPreferred Maximum Value I   N

QTRGTarget Value       I   N

QSSZSample Size             I   N 

QUMQuality Unit of Measure I   N

QSMPNumber of Samples  I   N

SMPCSample Percentage       I   N

ACQTAccept Quantity       I   N

ACPCAccept Percentage       I   N

PTTSPrint Test             I   N

MFGRManufacturing Operations I   N

MRRRMfg Receipt Routing I   N

PRERPurchasing Rcpt Rtg I   N

PRCRPurchase Receipts  I   N

MFGCMfg Completions       I   N

SHPRShip Confirm       I   N

BLKRBulk Load Confirm       I   N

OPSQSeq No. Operations I   N

OPRSOperation Sequence I   N

BSEQBubble Sequence       I   N

TRTType Routing       I   N

TMHDTest Method             I   N 

RSUMResult Unit of Measure I   N

NUMBAsset Item Number       I   N

ASTMASTM Reference       I   N

QPRPProperty Future       I   N

TTSTTiming of Test (future)  I   N

MMCUCost Center Alt       I   N

CDECDisplay Decimals       I    N

URCDUser Reserved Code I   N

URDTUser Reserved Date I   N

URATUser Reserved Amount I   N

URRFUser Reserved Reference I   N

URABUser Reserved Number I   N

USERUser Id             I   N

PIDProgram Id             I   N

UPMJDate Updated       I   N

TDAYTime of Day             I   N

JOBNWork Station Id       I   N

EV01Origin Code             I   N  '1' = function called from revision application. 

                                            '2' = function called from approval completion

APPRACT  Approval Action Code I   N  'A' = Approved 'R' = Rejected

EV01 Activate Workflow       I   N  '1' = Workflow activated through processing option on 

                                                  revision application blank = Workflow not activated

EV01Activate Logging       I   N  '1' = Logging activated through processing option on 

                                                  revision application blank = Logging not activated

EV01Suppress Error Messages I   N

DTAIError Message Id       O   N

EV01Resequence Flag       I   N  '1' = Test Sort Sequence Nos. should be resequenced

UTIMItem NumberUnknown Fmt  I   N

DERCDerived Calculation I   N

STAWStatus             I   N  Blank = active '1' = Pending '2' = History '3' = Rejected

EV01Form Mode             I   N   'A' = Add 'C' = Change


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTNONE

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

cActionCode2ACTNcharOPTNONE

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

mnAddNoOriginatorANOMATH_NUMERICOPTNONE

The address book number of the person who originated the change request. The system verifies this number against the Address Book.

mnAddressNumberAN8MATH_NUMERICOPTNONE

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

szCustomerGroupQualityManagemeCS18charOPTNONE

User defined code (system 40, type 18) identifying a group to which you can assign customers for the Item/Test Specifications. Do this 
when the customers are similar and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
customer group for which you want to define a preference. You can define the preference for this group alone or for a combination of customer 
group and item or item group. If you leave both the Customer Number and the Customer Group fields blank, the system applies the 
preference to all customers.

mnIdentifierShortItemITMMATH_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

szItemGroupQualityManagementIT18charOPTNONE

User defined code (system 40, type 68) identifying a group to which you can assign items for the Item/Test Specifications. Do this when you 
have a group of similar items and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
item group for which you want to define a preference. You can define the preference for this group alone or for a combination of item group 
and customer or customer group. If you leave both the Item Number and Item Group fields blank, the system applies the preference to all items

jdDateEffectiveJulian1EFTJJDEDATEOPTNONE

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

jdDateExpiredJulian1EXDJJDEDATEOPTNONE

The date on which a transaction, text message, agreement, obligation, or preference has expired or been completed.

mnQuantityMinimumMNQMATH_NUMERICOPTNONE

A value that specifies how an adjustment or preference will be applied to a price. This value can be a quantity, weight, or amount, 
depending on how you have defined the level-break type in the Price Adjustment Detail table (F4072).

mnQuantityMaxMXQMATH_NUMERICOPTNONE

The quantity at which a preference becomes invalid.

szUnitOfMeasureAsInputUOMcharOPTNONE

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

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.

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.

mnTextIDNumberTXIDMATH_NUMERICOPTNONE

Unique identifier associating a preference with it's generic text.

cStatusPreferenceSTPRcharOPTNONE

Status code to activate or de-activate a preference.  The following are valid codes:    1 Active    2 Inactive 

mnSequenceNumberOSEQMATH_NUMERICOPTNONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

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.

mnTestSortSequenceNumberTSRTMATH_NUMERICOPTNONE

A number used to determine the sort order of tests and specifications within preference profiles (item/test specifications).

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 

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.

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.

cTestSpecificationflagTSSPcharOPTNONE

A code that indicates whether a record within preference profiles (item/test specifications) is a test or specification. Valid values are:    T Test  
  S Specification 

szCostCenter2MCU2charOPTNONE

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

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

szUserDefinedCodesRTcharOPTNONE

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

szAllowableMinimumValuefutAMINcharOPTNONE

The lowest value for a passing test result.

szAllowableMaximumValuefutAMAXcharOPTNONE

The highest 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.

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.

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.

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.

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.

mnNumberofSamplesQSMPMATH_NUMERICOPTNONE

The number of samples to be taken for the test.

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.

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

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.

cManufacturingOperationsMFGRcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from any of the following Manufacturing programs:   o  Co-/By-Product Completion (P31115)   o  Super Backflush (P31123)   
o  Work Order Time Entry (P311221) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test 
Results Revisions form. You can use this value with the operation sequence and routing type to control the appearance of the test at an operation 
or routing type.

cManufacturingReceiptRoutingMRRRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from the Routing 
Movement and Disposition (P43250) program when the routed order is a manufacturing work order. Valid values are:    1   The test will appear on Test 
Results Revisions.    0   The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the 
appearance of the test at a route operation.

cPurchasingReceiptRoutingPRERcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from Routing Movement 
and Disposition (P43250) and the routed order is a purchase order. Valid values are:    1   The test will appear on Test Results Revisions.    0   
The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the appearance of the test 
at an operation.

cPurchasingReceiptsPRCRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from either Receipts by 
P/O or Receipts by Item (P4312). Valid values are:    1   The test will appear in Test Results Revisions.    0   The test will not appear in Test 
Results Revisions.

cManufacturingCompletionsMFGCcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from either of the following Manufacturing programs:   o  Work Order Completions (P31114)   o  Completions Workbench 
(P3119) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test Results Revisions form.

cShipConfirmSHPRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from the Ship 
Confirmation (P4205) program. Valid values are:    1   The test will appear on Test Results Revisions.    0   The test will not appear on Test Results 
Revisions.

cBulkLoadConfirmBLKRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from one of the following 
programs:     o Bulk Confirm by Order or Bulk Confirm by Trip (P49510)     o Packaged Load Confirmation (P49530) Valid values are:    1   The 
test will appear on Test Results Revisions.    0   The test will not appear on Test Results Revisions.

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnOperationSequenceOPRSMATH_NUMERICOPTNONE

The sequence in which the system performs the operations or steps of the route.

mnBubbleSequenceBSEQMATH_NUMERICOPTNONE

A secondary bill of material sequence number that indicates the drawing bubble number.

szTypeRoutingTRTcharOPTNONE

A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses. For 
example:    M    Standard Manufacturing Routing    RWK  Rework Routing    RSH  Rush Routing You define the routing type on the work order 
header. The system then uses the specific type of routing that you define in the work order routing. Product Costing and Capacity Planning systems 
use only M type routings.

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.

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.

mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

szASTMReferenceASTMcharOPTNONE

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

szPropertyfutureuseQPRPcharOPTNONE

The item attribute that is being tested.

cTimingofTestFutureUseTTSTcharOPTNONE

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.

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.

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.

cOriginCodeEV01charOPTNONE

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

cApprovalActionCodeAPPRACTcharOPTNONE

A code that determines whether a workflow recipient has accepted or rejected a workflow task that has been submitted for approval. Valid 
values are: A Accept. R Reject.

cActivateWorkflowEV01charOPTNONE

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

cActivateLoggingEV01charOPTNONE

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

cSuppressErrorMsgsEV01charOPTNONE

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

szErrorMsgIDDTAIcharOPTNONE

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.

cResequenceFlagEV01charOPTNONE

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

szItemNoUnknownFormatUITMcharOPTNONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

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.

cStatus9STAWcharOPTNONE

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

cFormModeEV01charOPTNONE

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

jdOriginalEffectiveThru_EFFTEFFTJDEDATEOPTNONE

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.

Related Functions

None

Related Tables

None
F40318LogHistoryRecords

F40318LogHistoryRecords

F40318 Update Quality Preferences

Major Business Rule

Object Name: N3700340

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
This business function includes several functions that are used to add, update, or delete rows from 
the Quality Management Preference table (F40318).  


The main function, "F40318 Update Quality Preferences"  is used in two difference situations:

• The Quality Preference revisions application (P43018) calls this function when a change, add or 
delete is made to a quality preference.  

• This function is also called at the completion of a workflow approval (i.e. either an approval or 
rejection) to perform final updates to the quality preference table (F43018).


This main function calls each of the other functions in this source file. 

• F40318 Log History Records  writes all history records (status = '2') to the quality preference 
table

• F43018 Delete All Rows for Status  deletes rows on the quality preference table with a specified 
status

• F43018 Update Row  updates an existing row on the quality preference table
• F40318 Insert Row  adds a new row to the quality preference table
• F43018 Delete Row  deletes an existing row from the quality preference table

1.3Special Logic

Note:   All functions use the same data structure, D3700340.

2.4Processing - F40318 Log History Records 


1)If Re-sequencing is being performed, write history records for all active records.

2)If not re-sequencing, write one history record using the values passed in as input to this 

function.

If this is a delete action, write a history record for the deleted record.

Data Structure

D3700340 - F40318 Update Quality Preferences

Data Item  DescriptionI/ORequired   Notes
UKIDWorkflow Key      I/O

ACTNAction Code             I           1' or 'A' = Add '2' or 'C' = Change '3' or 'D' = 

Delete

ANOOriginator             I   Y

AN8Address Book Number I   N

CS18Customer Group       I   N

ITMItem Number             I   N

IT18Item Group             I   N

EFTJDate Effective       I   N

EXDJDate Expired       I   N

MNQMinimum Quantity       I   N

MXQMaximum Quantity       I   N

UOMUnit of Measure       I   N

EFFFEffective From Date I   N

EFFTEffective Thru Date I   N

QTSNQuality Table Seq. No. I   N

TXIDText ID Number       I   N

STPRStatus Preference       I   N

OSEQSequence Number       I   N

MCUBranch Plant       I   N

TSRTTest Sort Sequence No. I   N

QTSTTest ID             I   N

TTTYTest Type             I   N

QREVSpecification Rev Level I   N

TSSPTest Specification Flag I   N

MCU2Test Branch Plant       I   N

SYSystem Code             I   N

RTUser Defined Codes  I   N

AMINAllowed Minimum Value I   N

AMAX Allowed Maximum Value  I   N

PMINPreferred Minimum Value I   N

PMAXPreferred Maximum Value I   N

QTRGTarget Value       I   N

QSSZSample Size             I   N 

QUMQuality Unit of Measure I   N

QSMPNumber of Samples  I   N

SMPCSample Percentage       I   N

ACQTAccept Quantity       I   N

ACPCAccept Percentage       I   N

PTTSPrint Test             I   N

MFGRManufacturing Operations I   N

MRRRMfg Receipt Routing I   N

PRERPurchasing Rcpt Rtg I   N

PRCRPurchase Receipts  I   N

MFGCMfg Completions       I   N

SHPRShip Confirm       I   N

BLKRBulk Load Confirm       I   N

OPSQSeq No. Operations I   N

OPRSOperation Sequence I   N

BSEQBubble Sequence       I   N

TRTType Routing       I   N

TMHDTest Method             I   N 

RSUMResult Unit of Measure I   N

NUMBAsset Item Number       I   N

ASTMASTM Reference       I   N

QPRPProperty Future       I   N

TTSTTiming of Test (future)  I   N

MMCUCost Center Alt       I   N

CDECDisplay Decimals       I    N

URCDUser Reserved Code I   N

URDTUser Reserved Date I   N

URATUser Reserved Amount I   N

URRFUser Reserved Reference I   N

URABUser Reserved Number I   N

USERUser Id             I   N

PIDProgram Id             I   N

UPMJDate Updated       I   N

TDAYTime of Day             I   N

JOBNWork Station Id       I   N

EV01Origin Code             I   N  '1' = function called from revision application. 

                                            '2' = function called from approval completion

APPRACT  Approval Action Code I   N  'A' = Approved 'R' = Rejected

EV01 Activate Workflow       I   N  '1' = Workflow activated through processing option on 

                                                  revision application blank = Workflow not activated

EV01Activate Logging       I   N  '1' = Logging activated through processing option on 

                                                  revision application blank = Logging not activated

EV01Suppress Error Messages I   N

DTAIError Message Id       O   N

EV01Resequence Flag       I   N  '1' = Test Sort Sequence Nos. should be resequenced

UTIMItem NumberUnknown Fmt  I   N

DERCDerived Calculation I   N

STAWStatus             I   N  Blank = active '1' = Pending '2' = History '3' = Rejected

EV01Form Mode             I   N   'A' = Add 'C' = Change


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTNONE

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

cActionCode2ACTNcharOPTNONE

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

mnAddNoOriginatorANOMATH_NUMERICOPTNONE

The address book number of the person who originated the change request. The system verifies this number against the Address Book.

mnAddressNumberAN8MATH_NUMERICOPTNONE

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

szCustomerGroupQualityManagemeCS18charOPTNONE

User defined code (system 40, type 18) identifying a group to which you can assign customers for the Item/Test Specifications. Do this 
when the customers are similar and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
customer group for which you want to define a preference. You can define the preference for this group alone or for a combination of customer 
group and item or item group. If you leave both the Customer Number and the Customer Group fields blank, the system applies the 
preference to all customers.

mnIdentifierShortItemITMMATH_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

szItemGroupQualityManagementIT18charOPTNONE

User defined code (system 40, type 68) identifying a group to which you can assign items for the Item/Test Specifications. Do this when you 
have a group of similar items and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
item group for which you want to define a preference. You can define the preference for this group alone or for a combination of item group 
and customer or customer group. If you leave both the Item Number and Item Group fields blank, the system applies the preference to all items

jdDateEffectiveJulian1EFTJJDEDATEOPTNONE

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

jdDateExpiredJulian1EXDJJDEDATEOPTNONE

The date on which a transaction, text message, agreement, obligation, or preference has expired or been completed.

mnQuantityMinimumMNQMATH_NUMERICOPTNONE

A value that specifies how an adjustment or preference will be applied to a price. This value can be a quantity, weight, or amount, 
depending on how you have defined the level-break type in the Price Adjustment Detail table (F4072).

mnQuantityMaxMXQMATH_NUMERICOPTNONE

The quantity at which a preference becomes invalid.

szUnitOfMeasureAsInputUOMcharOPTNONE

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

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.

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.

mnTextIDNumberTXIDMATH_NUMERICOPTNONE

Unique identifier associating a preference with it's generic text.

cStatusPreferenceSTPRcharOPTNONE

Status code to activate or de-activate a preference.  The following are valid codes:    1 Active    2 Inactive 

mnSequenceNumberOSEQMATH_NUMERICOPTNONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

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.

mnTestSortSequenceNumberTSRTMATH_NUMERICOPTNONE

A number used to determine the sort order of tests and specifications within preference profiles (item/test specifications).

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 

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.

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.

cTestSpecificationflagTSSPcharOPTNONE

A code that indicates whether a record within preference profiles (item/test specifications) is a test or specification. Valid values are:    T Test  
  S Specification 

szCostCenter2MCU2charOPTNONE

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

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

szUserDefinedCodesRTcharOPTNONE

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

szAllowableMinimumValuefutAMINcharOPTNONE

The lowest value for a passing test result.

szAllowableMaximumValuefutAMAXcharOPTNONE

The highest 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.

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.

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.

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.

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.

mnNumberofSamplesQSMPMATH_NUMERICOPTNONE

The number of samples to be taken for the test.

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.

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

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.

cManufacturingOperationsMFGRcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from any of the following Manufacturing programs:   o  Co-/By-Product Completion (P31115)   o  Super Backflush (P31123)   
o  Work Order Time Entry (P311221) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test 
Results Revisions form. You can use this value with the operation sequence and routing type to control the appearance of the test at an operation 
or routing type.

cManufacturingReceiptRoutingMRRRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from the Routing 
Movement and Disposition (P43250) program when the routed order is a manufacturing work order. Valid values are:    1   The test will appear on Test 
Results Revisions.    0   The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the 
appearance of the test at a route operation.

cPurchasingReceiptRoutingPRERcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from Routing Movement 
and Disposition (P43250) and the routed order is a purchase order. Valid values are:    1   The test will appear on Test Results Revisions.    0   
The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the appearance of the test 
at an operation.

cPurchasingReceiptsPRCRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from either Receipts by 
P/O or Receipts by Item (P4312). Valid values are:    1   The test will appear in Test Results Revisions.    0   The test will not appear in Test 
Results Revisions.

cManufacturingCompletionsMFGCcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from either of the following Manufacturing programs:   o  Work Order Completions (P31114)   o  Completions Workbench 
(P3119) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test Results Revisions form.

cShipConfirmSHPRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from the Ship 
Confirmation (P4205) program. Valid values are:    1   The test will appear on Test Results Revisions.    0   The test will not appear on Test Results 
Revisions.

cBulkLoadConfirmBLKRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from one of the following 
programs:     o Bulk Confirm by Order or Bulk Confirm by Trip (P49510)     o Packaged Load Confirmation (P49530) Valid values are:    1   The 
test will appear on Test Results Revisions.    0   The test will not appear on Test Results Revisions.

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnOperationSequenceOPRSMATH_NUMERICOPTNONE

The sequence in which the system performs the operations or steps of the route.

mnBubbleSequenceBSEQMATH_NUMERICOPTNONE

A secondary bill of material sequence number that indicates the drawing bubble number.

szTypeRoutingTRTcharOPTNONE

A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses. For 
example:    M    Standard Manufacturing Routing    RWK  Rework Routing    RSH  Rush Routing You define the routing type on the work order 
header. The system then uses the specific type of routing that you define in the work order routing. Product Costing and Capacity Planning systems 
use only M type routings.

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.

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.

mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

szASTMReferenceASTMcharOPTNONE

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

szPropertyfutureuseQPRPcharOPTNONE

The item attribute that is being tested.

cTimingofTestFutureUseTTSTcharOPTNONE

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.

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.

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.

cOriginCodeEV01charOPTNONE

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

cApprovalActionCodeAPPRACTcharOPTNONE

A code that determines whether a workflow recipient has accepted or rejected a workflow task that has been submitted for approval. Valid 
values are: A Accept. R Reject.

cActivateWorkflowEV01charOPTNONE

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

cActivateLoggingEV01charOPTNONE

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

cSuppressErrorMsgsEV01charOPTNONE

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

szErrorMsgIDDTAIcharOPTNONE

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.

cResequenceFlagEV01charOPTNONE

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

szItemNoUnknownFormatUITMcharOPTNONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

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.

cStatus9STAWcharOPTNONE

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

cFormModeEV01charOPTNONE

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

jdOriginalEffectiveThru_EFFTEFFTJDEDATEOPTNONE

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.

Related Functions

None

Related Tables

None
F40318UpdateQualityPreferences

F40318UpdateQualityPreferences

F40318 Update Quality Preferences

Major Business Rule

Object Name: N3700340

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

This business function includes several functions that are used to add, update, or delete rows from 

the Quality Management Preference table (F40318).  


The main function, "F40318 Update Quality Preferences"  is used in two difference situations:

• The Quality Preference revisions application (P43018) calls this function when a change, add or 
delete is made to a quality preference.  

• This function is also called at the completion of a workflow approval (i.e. either an approval or 
rejection) to perform final updates to the quality preference table (F43018).

• 
This main function calls each of the other functions in this source file. 

• F40318 Log History Records - writes all history records (status = '2') to the quality preference 
table

• F43018 Delete All Rows for Status - deletes rows on the quality preference table with a specified 
status

• F43018 Update Row - updates an existing row on the quality preference table
• F40318 Insert Row - adds a new row to the quality preference table
• F43018 Delete Row - deletes an existing row from the quality preference table
• 
1.3Special Logic

Note:   All functions use the same data structure, D3700340.


2.4Processing - F43018 Update Quality Preferences 


1)Retrieve the default date values using the "Dates, Verify Effective Dates" business function.
2)If the Origin Code is '1' (this function is being called from the revisions application):

a)Retrieve audit information using the "Get Audit Information" business function.
b)If Workflow is activated:

• Retrieve the next unique key ID if it is not passed in as input using the "Get Next Unique Key ID" 
function.

• Write a pending records for this transaction.
• Start workflow if this it the first transaction for this workflow key.
• 
c)If Workflow is not activated:
• If Logging has been activated, write logging records using the "F43018 Log History Records" 
function.

• If resequencing is required, delete all the active records using the "F40318 Delete All Rows for 
Status" function.

• If the action is "Add", add a new record to the F40318 table.
• If the action is "Delete", delete any generic text associated with the deleted record using the 
"GT3701A Copy Test Revisions Text to Preference" function.

• If the action is "Change" and the preference profile is being re-sequenced, insert a new F40318 
record.

• If the action is "Change" and the preference profile is not being re-sequenced, update the existing 
F40318 record.

• If the action is "Add" or "Change", copy the generic text from the Test to the preference if no text 
exists on the preference.

• 3)If the Origin Code is '2' (this function is being called after the completion of a 
workflow approval), retrieve all pending records for the workflow key passed in as input.  For each retrieved 

record:

a)Retrieve audit information using the "Get Audit Information" business function.
b)If the request has been approved:

• If Logging has been activated, write logging records using the "F43018 Log History Records" 
function.

• If resequencing is required, delete all the active records using the "F40318 Delete All Rows for 
Status" function.

• If the action is "Add", add a new record to the F40318 table.
• If the action is "Delete", delete any generic text associated with the deleted record using the 
"GT3701A Copy Test Revisions Text to Preference" function.

• If the action is "Change" and the preference profile is being re-sequenced, insert a new F40318 
record.

• If the action is "Change" and the preference profile is not being re-sequenced, update the existing 
F40318 record.

• If the action is "Add" or "Change", copy the generic text from the Test to the preference if no text 
exists on the preference.

• 
c)If the request has been rejected:
• Retrieve a next number for the key of the rejected record; use 'X0010 - Get Next Number".
• If the test values have not been overridden on the quality preference record, retrieve these values 
from the Test Master (F3701); these values will be archived with the rejected record.

• Add a rejected record to the Quality Preference table.
• 
d)After all pending records have been processed, delete all pending records for this 
workflow key.



Data Structure

D3700340 - F40318 Update Quality Preferences

Data Item  DescriptionI/ORequired   Notes
UKIDWorkflow Key      I/O

ACTNAction Code             I           1' or 'A' = Add '2' or 'C' = Change '3' or 'D' = 

Delete

ANOOriginator             I   Y

AN8Address Book Number I   N

CS18Customer Group       I   N

ITMItem Number             I   N

IT18Item Group             I   N

EFTJDate Effective       I   N

EXDJDate Expired       I   N

MNQMinimum Quantity       I   N

MXQMaximum Quantity       I   N

UOMUnit of Measure       I   N

EFFFEffective From Date I   N

EFFTEffective Thru Date I   N

QTSNQuality Table Seq. No. I   N

TXIDText ID Number       I   N

STPRStatus Preference       I   N

OSEQSequence Number       I   N

MCUBranch Plant       I   N

TSRTTest Sort Sequence No. I   N

QTSTTest ID             I   N

TTTYTest Type             I   N

QREVSpecification Rev Level I   N

TSSPTest Specification Flag I   N

MCU2Test Branch Plant       I   N

SYSystem Code             I   N

RTUser Defined Codes  I   N

AMINAllowed Minimum Value I   N

AMAX Allowed Maximum Value  I   N

PMINPreferred Minimum Value I   N

PMAXPreferred Maximum Value I   N

QTRGTarget Value       I   N

QSSZSample Size             I   N 

QUMQuality Unit of Measure I   N

QSMPNumber of Samples  I   N

SMPCSample Percentage       I   N

ACQTAccept Quantity       I   N

ACPCAccept Percentage       I   N

PTTSPrint Test             I   N

MFGRManufacturing Operations I   N

MRRRMfg Receipt Routing I   N

PRERPurchasing Rcpt Rtg I   N

PRCRPurchase Receipts  I   N

MFGCMfg Completions       I   N

SHPRShip Confirm       I   N

BLKRBulk Load Confirm       I   N

OPSQSeq No. Operations I   N

OPRSOperation Sequence I   N

BSEQBubble Sequence       I   N

TRTType Routing       I   N

TMHDTest Method             I   N 

RSUMResult Unit of Measure I   N

NUMBAsset Item Number       I   N

ASTMASTM Reference       I   N

QPRPProperty Future       I   N

TTSTTiming of Test (future)  I   N

MMCUCost Center Alt       I   N

CDECDisplay Decimals       I    N

URCDUser Reserved Code I   N

URDTUser Reserved Date I   N

URATUser Reserved Amount I   N

URRFUser Reserved Reference I   N

URABUser Reserved Number I   N

USERUser Id             I   N

PIDProgram Id             I   N

UPMJDate Updated       I   N

TDAYTime of Day             I   N

JOBNWork Station Id       I   N

EV01Origin Code             I   N  '1' = function called from revision application. 

                                            '2' = function called from approval completion

APPRACT  Approval Action Code I   N  'A' = Approved 'R' = Rejected

EV01 Activate Workflow       I   N  '1' = Workflow activated through processing option on 

                                                  revision application blank = Workflow not activated

EV01Activate Logging       I   N  '1' = Logging activated through processing option on 

                                                  revision application blank = Logging not activated

EV01Suppress Error Messages I   N

DTAIError Message Id       O   N

EV01Resequence Flag       I   N  '1' = Test Sort Sequence Nos. should be resequenced

UTIMItem NumberUnknown Fmt  I   N

DERCDerived Calculation I   N

STAWStatus             I   N  Blank = active '1' = Pending '2' = History '3' = Rejected

EV01Form Mode             I   N   'A' = Add 'C' = Change


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTNONE

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

cActionCode2ACTNcharOPTNONE

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

mnAddNoOriginatorANOMATH_NUMERICOPTNONE

The address book number of the person who originated the change request. The system verifies this number against the Address Book.

mnAddressNumberAN8MATH_NUMERICOPTNONE

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

szCustomerGroupQualityManagemeCS18charOPTNONE

User defined code (system 40, type 18) identifying a group to which you can assign customers for the Item/Test Specifications. Do this 
when the customers are similar and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
customer group for which you want to define a preference. You can define the preference for this group alone or for a combination of customer 
group and item or item group. If you leave both the Customer Number and the Customer Group fields blank, the system applies the 
preference to all customers.

mnIdentifierShortItemITMMATH_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

szItemGroupQualityManagementIT18charOPTNONE

User defined code (system 40, type 68) identifying a group to which you can assign items for the Item/Test Specifications. Do this when you 
have a group of similar items and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
item group for which you want to define a preference. You can define the preference for this group alone or for a combination of item group 
and customer or customer group. If you leave both the Item Number and Item Group fields blank, the system applies the preference to all items

jdDateEffectiveJulian1EFTJJDEDATEOPTNONE

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

jdDateExpiredJulian1EXDJJDEDATEOPTNONE

The date on which a transaction, text message, agreement, obligation, or preference has expired or been completed.

mnQuantityMinimumMNQMATH_NUMERICOPTNONE

A value that specifies how an adjustment or preference will be applied to a price. This value can be a quantity, weight, or amount, 
depending on how you have defined the level-break type in the Price Adjustment Detail table (F4072).

mnQuantityMaxMXQMATH_NUMERICOPTNONE

The quantity at which a preference becomes invalid.

szUnitOfMeasureAsInputUOMcharOPTNONE

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

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.

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.

mnTextIDNumberTXIDMATH_NUMERICOPTNONE

Unique identifier associating a preference with it's generic text.

cStatusPreferenceSTPRcharOPTNONE

Status code to activate or de-activate a preference.  The following are valid codes:    1 Active    2 Inactive 

mnSequenceNumberOSEQMATH_NUMERICOPTNONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

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.

mnTestSortSequenceNumberTSRTMATH_NUMERICOPTNONE

A number used to determine the sort order of tests and specifications within preference profiles (item/test specifications).

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 

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.

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.

cTestSpecificationflagTSSPcharOPTNONE

A code that indicates whether a record within preference profiles (item/test specifications) is a test or specification. Valid values are:    T Test  
  S Specification 

szCostCenter2MCU2charOPTNONE

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

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

szUserDefinedCodesRTcharOPTNONE

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

szAllowableMinimumValuefutAMINcharOPTNONE

The lowest value for a passing test result.

szAllowableMaximumValuefutAMAXcharOPTNONE

The highest 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.

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.

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.

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.

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.

mnNumberofSamplesQSMPMATH_NUMERICOPTNONE

The number of samples to be taken for the test.

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.

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

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.

cManufacturingOperationsMFGRcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from any of the following Manufacturing programs:   o  Co-/By-Product Completion (P31115)   o  Super Backflush (P31123)   
o  Work Order Time Entry (P311221) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test 
Results Revisions form. You can use this value with the operation sequence and routing type to control the appearance of the test at an operation 
or routing type.

cManufacturingReceiptRoutingMRRRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from the Routing 
Movement and Disposition (P43250) program when the routed order is a manufacturing work order. Valid values are:    1   The test will appear on Test 
Results Revisions.    0   The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the 
appearance of the test at a route operation.

cPurchasingReceiptRoutingPRERcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from Routing Movement 
and Disposition (P43250) and the routed order is a purchase order. Valid values are:    1   The test will appear on Test Results Revisions.    0   
The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the appearance of the test 
at an operation.

cPurchasingReceiptsPRCRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from either Receipts by 
P/O or Receipts by Item (P4312). Valid values are:    1   The test will appear in Test Results Revisions.    0   The test will not appear in Test 
Results Revisions.

cManufacturingCompletionsMFGCcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from either of the following Manufacturing programs:   o  Work Order Completions (P31114)   o  Completions Workbench 
(P3119) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test Results Revisions form.

cShipConfirmSHPRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from the Ship 
Confirmation (P4205) program. Valid values are:    1   The test will appear on Test Results Revisions.    0   The test will not appear on Test Results 
Revisions.

cBulkLoadConfirmBLKRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from one of the following 
programs:     o Bulk Confirm by Order or Bulk Confirm by Trip (P49510)     o Packaged Load Confirmation (P49530) Valid values are:    1   The 
test will appear on Test Results Revisions.    0   The test will not appear on Test Results Revisions.

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnOperationSequenceOPRSMATH_NUMERICOPTNONE

The sequence in which the system performs the operations or steps of the route.

mnBubbleSequenceBSEQMATH_NUMERICOPTNONE

A secondary bill of material sequence number that indicates the drawing bubble number.

szTypeRoutingTRTcharOPTNONE

A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses. For 
example:    M    Standard Manufacturing Routing    RWK  Rework Routing    RSH  Rush Routing You define the routing type on the work order 
header. The system then uses the specific type of routing that you define in the work order routing. Product Costing and Capacity Planning systems 
use only M type routings.

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.

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.

mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

szASTMReferenceASTMcharOPTNONE

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

szPropertyfutureuseQPRPcharOPTNONE

The item attribute that is being tested.

cTimingofTestFutureUseTTSTcharOPTNONE

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.

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.

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.

cOriginCodeEV01charOPTNONE

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

cApprovalActionCodeAPPRACTcharOPTNONE

A code that determines whether a workflow recipient has accepted or rejected a workflow task that has been submitted for approval. Valid 
values are: A Accept. R Reject.

cActivateWorkflowEV01charOPTNONE

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

cActivateLoggingEV01charOPTNONE

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

cSuppressErrorMsgsEV01charOPTNONE

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

szErrorMsgIDDTAIcharOPTNONE

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.

cResequenceFlagEV01charOPTNONE

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

szItemNoUnknownFormatUITMcharOPTNONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

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.

cStatus9STAWcharOPTNONE

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

cFormModeEV01charOPTNONE

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

jdOriginalEffectiveThru_EFFTEFFTJDEDATEOPTNONE

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.

Related Functions

None

Related Tables

None
F40318UpdateRow

F40318UpdateRow

F40318 Update Quality Preferences

Major Business Rule

Object Name: N3700340

Parent DLL: CMFG

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
This business function includes several functions that are used to add, update, or delete rows from 
the Quality Management Preference table (F40318).  


The main function, "F40318 Update Quality Preferences"  is used in two difference situations:

• The Quality Preference revisions application (P43018) calls this function when a change, add or 
delete is made to a quality preference.  

• This function is also called at the completion of a workflow approval (i.e. either an approval or 
rejection) to perform final updates to the quality preference table (F43018).


This main function calls each of the other functions in this source file. 

• F40318 Log History Records  writes all history records (status = '2') to the quality preference 
table

• F43018 Delete All Rows for Status  deletes rows on the quality preference table with a specified 
status

• F43018 Update Row  updates an existing row on the quality preference table
• F40318 Insert Row  adds a new row to the quality preference table
• F43018 Delete Row  deletes an existing row from the quality preference table

1.3Special Logic

Note:   All functions use the same data structure, D3700340.


2.4Processing - F40318 Update Row


Update an existing row on the F43018 table using values passed in as input.  

Data Structure

D3700340 - F40318 Update Quality Preferences

Data Item  DescriptionI/ORequired   Notes
UKIDWorkflow Key      I/O

ACTNAction Code             I           1' or 'A' = Add '2' or 'C' = Change '3' or 'D' = 

Delete

ANOOriginator             I   Y

AN8Address Book Number I   N

CS18Customer Group       I   N

ITMItem Number             I   N

IT18Item Group             I   N

EFTJDate Effective       I   N

EXDJDate Expired       I   N

MNQMinimum Quantity       I   N

MXQMaximum Quantity       I   N

UOMUnit of Measure       I   N

EFFFEffective From Date I   N

EFFTEffective Thru Date I   N

QTSNQuality Table Seq. No. I   N

TXIDText ID Number       I   N

STPRStatus Preference       I   N

OSEQSequence Number       I   N

MCUBranch Plant       I   N

TSRTTest Sort Sequence No. I   N

QTSTTest ID             I   N

TTTYTest Type             I   N

QREVSpecification Rev Level I   N

TSSPTest Specification Flag I   N

MCU2Test Branch Plant       I   N

SYSystem Code             I   N

RTUser Defined Codes  I   N

AMINAllowed Minimum Value I   N

AMAX Allowed Maximum Value  I   N

PMINPreferred Minimum Value I   N

PMAXPreferred Maximum Value I   N

QTRGTarget Value       I   N

QSSZSample Size             I   N 

QUMQuality Unit of Measure I   N

QSMPNumber of Samples  I   N

SMPCSample Percentage       I   N

ACQTAccept Quantity       I   N

ACPCAccept Percentage       I   N

PTTSPrint Test             I   N

MFGRManufacturing Operations I   N

MRRRMfg Receipt Routing I   N

PRERPurchasing Rcpt Rtg I   N

PRCRPurchase Receipts  I   N

MFGCMfg Completions       I   N

SHPRShip Confirm       I   N

BLKRBulk Load Confirm       I   N

OPSQSeq No. Operations I   N

OPRSOperation Sequence I   N

BSEQBubble Sequence       I   N

TRTType Routing       I   N

TMHDTest Method             I   N 

RSUMResult Unit of Measure I   N

NUMBAsset Item Number       I   N

ASTMASTM Reference       I   N

QPRPProperty Future       I   N

TTSTTiming of Test (future)  I   N

MMCUCost Center Alt       I   N

CDECDisplay Decimals       I    N

URCDUser Reserved Code I   N

URDTUser Reserved Date I   N

URATUser Reserved Amount I   N

URRFUser Reserved Reference I   N

URABUser Reserved Number I   N

USERUser Id             I   N

PIDProgram Id             I   N

UPMJDate Updated       I   N

TDAYTime of Day             I   N

JOBNWork Station Id       I   N

EV01Origin Code             I   N  '1' = function called from revision application. 

                                            '2' = function called from approval completion

APPRACT  Approval Action Code I   N  'A' = Approved 'R' = Rejected

EV01 Activate Workflow       I   N  '1' = Workflow activated through processing option on 

                                                  revision application blank = Workflow not activated

EV01Activate Logging       I   N  '1' = Logging activated through processing option on 

                                                  revision application blank = Logging not activated

EV01Suppress Error Messages I   N

DTAIError Message Id       O   N

EV01Resequence Flag       I   N  '1' = Test Sort Sequence Nos. should be resequenced

UTIMItem NumberUnknown Fmt  I   N

DERCDerived Calculation I   N

STAWStatus             I   N  Blank = active '1' = Pending '2' = History '3' = Rejected

EV01Form Mode             I   N   'A' = Add 'C' = Change


^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTNONE

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

cActionCode2ACTNcharOPTNONE

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

mnAddNoOriginatorANOMATH_NUMERICOPTNONE

The address book number of the person who originated the change request. The system verifies this number against the Address Book.

mnAddressNumberAN8MATH_NUMERICOPTNONE

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

szCustomerGroupQualityManagemeCS18charOPTNONE

User defined code (system 40, type 18) identifying a group to which you can assign customers for the Item/Test Specifications. Do this 
when the customers are similar and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
customer group for which you want to define a preference. You can define the preference for this group alone or for a combination of customer 
group and item or item group. If you leave both the Customer Number and the Customer Group fields blank, the system applies the 
preference to all customers.

mnIdentifierShortItemITMMATH_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

szItemGroupQualityManagementIT18charOPTNONE

User defined code (system 40, type 68) identifying a group to which you can assign items for the Item/Test Specifications. Do this when you 
have a group of similar items and you want to group them together to define preferences quickly and easily. Enter the code that identifies the 
item group for which you want to define a preference. You can define the preference for this group alone or for a combination of item group 
and customer or customer group. If you leave both the Item Number and Item Group fields blank, the system applies the preference to all items

jdDateEffectiveJulian1EFTJJDEDATEOPTNONE

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

jdDateExpiredJulian1EXDJJDEDATEOPTNONE

The date on which a transaction, text message, agreement, obligation, or preference has expired or been completed.

mnQuantityMinimumMNQMATH_NUMERICOPTNONE

A value that specifies how an adjustment or preference will be applied to a price. This value can be a quantity, weight, or amount, 
depending on how you have defined the level-break type in the Price Adjustment Detail table (F4072).

mnQuantityMaxMXQMATH_NUMERICOPTNONE

The quantity at which a preference becomes invalid.

szUnitOfMeasureAsInputUOMcharOPTNONE

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

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.

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.

mnTextIDNumberTXIDMATH_NUMERICOPTNONE

Unique identifier associating a preference with it's generic text.

cStatusPreferenceSTPRcharOPTNONE

Status code to activate or de-activate a preference.  The following are valid codes:    1 Active    2 Inactive 

mnSequenceNumberOSEQMATH_NUMERICOPTNONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

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.

mnTestSortSequenceNumberTSRTMATH_NUMERICOPTNONE

A number used to determine the sort order of tests and specifications within preference profiles (item/test specifications).

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 

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.

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.

cTestSpecificationflagTSSPcharOPTNONE

A code that indicates whether a record within preference profiles (item/test specifications) is a test or specification. Valid values are:    T Test  
  S Specification 

szCostCenter2MCU2charOPTNONE

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

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

szUserDefinedCodesRTcharOPTNONE

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

szAllowableMinimumValuefutAMINcharOPTNONE

The lowest value for a passing test result.

szAllowableMaximumValuefutAMAXcharOPTNONE

The highest 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.

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.

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.

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.

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.

mnNumberofSamplesQSMPMATH_NUMERICOPTNONE

The number of samples to be taken for the test.

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.

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

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.

cManufacturingOperationsMFGRcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from any of the following Manufacturing programs:   o  Co-/By-Product Completion (P31115)   o  Super Backflush (P31123)   
o  Work Order Time Entry (P311221) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test 
Results Revisions form. You can use this value with the operation sequence and routing type to control the appearance of the test at an operation 
or routing type.

cManufacturingReceiptRoutingMRRRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from the Routing 
Movement and Disposition (P43250) program when the routed order is a manufacturing work order. Valid values are:    1   The test will appear on Test 
Results Revisions.    0   The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the 
appearance of the test at a route operation.

cPurchasingReceiptRoutingPRERcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from Routing Movement 
and Disposition (P43250) and the routed order is a purchase order. Valid values are:    1   The test will appear on Test Results Revisions.    0   
The test will not appear on Test Results Revisions. You can use this value with the operation sequence to control the appearance of the test 
at an operation.

cPurchasingReceiptsPRCRcharOPTNONE

A value that controls whether a test will display on the Test Results Revisions form when you access test results from either Receipts by 
P/O or Receipts by Item (P4312). Valid values are:    1   The test will appear in Test Results Revisions.    0   The test will not appear in Test 
Results Revisions.

cManufacturingCompletionsMFGCcharOPTNONE

A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results 
Revisions program (P3711) from either of the following Manufacturing programs:   o  Work Order Completions (P31114)   o  Completions Workbench 
(P3119) If you enter 1 in the grid column or if this option is checked, the system displays the test on the Test Results Revisions form.

cShipConfirmSHPRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from the Ship 
Confirmation (P4205) program. Valid values are:    1   The test will appear on Test Results Revisions.    0   The test will not appear on Test Results 
Revisions.

cBulkLoadConfirmBLKRcharOPTNONE

A value that controls whether the test will display on the Test Results Revisions form when you access test results from one of the following 
programs:     o Bulk Confirm by Order or Bulk Confirm by Trip (P49510)     o Packaged Load Confirmation (P49530) Valid values are:    1   The 
test will appear on Test Results Revisions.    0   The test will not appear on Test Results Revisions.

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnOperationSequenceOPRSMATH_NUMERICOPTNONE

The sequence in which the system performs the operations or steps of the route.

mnBubbleSequenceBSEQMATH_NUMERICOPTNONE

A secondary bill of material sequence number that indicates the drawing bubble number.

szTypeRoutingTRTcharOPTNONE

A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses. For 
example:    M    Standard Manufacturing Routing    RWK  Rework Routing    RSH  Rush Routing You define the routing type on the work order 
header. The system then uses the specific type of routing that you define in the work order routing. Product Costing and Capacity Planning systems 
use only M type routings.

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.

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.

mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

szASTMReferenceASTMcharOPTNONE

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

szPropertyfutureuseQPRPcharOPTNONE

The item attribute that is being tested.

cTimingofTestFutureUseTTSTcharOPTNONE

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.

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.

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.

cOriginCodeEV01charOPTNONE

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

cApprovalActionCodeAPPRACTcharOPTNONE

A code that determines whether a workflow recipient has accepted or rejected a workflow task that has been submitted for approval. Valid 
values are: A Accept. R Reject.

cActivateWorkflowEV01charOPTNONE

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

cActivateLoggingEV01charOPTNONE

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

cSuppressErrorMsgsEV01charOPTNONE

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

szErrorMsgIDDTAIcharOPTNONE

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.

cResequenceFlagEV01charOPTNONE

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

szItemNoUnknownFormatUITMcharOPTNONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

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.

cStatus9STAWcharOPTNONE

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

cFormModeEV01charOPTNONE

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

jdOriginalEffectiveThru_EFFTEFFTJDEDATEOPTNONE

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.

Related Functions

None

Related Tables

None
e; left: 1.100000in"> DescriptionI/ORequired   Notes

UKIDWorkflow Key      I/O

ACTNAction Code             I           1' or 'A' = Add '2' or 'C' = Change '3' or 'D' = 

Delete

ANOOriginator             I   Y

AN8Address Book Number I   N

CS18Customer Group       I   N

ITMItem Number             I   N

IT18Item Group             I   N

EFTJDate Effective       I   N

EXDJDate Expired       I   N

MNQMinimum Quantity       I   N

MXQMaximum Quantity       I   N

UOMUnit of Measure       I   N

EFFFEffective From Date I   N

EFFTEffective Thru Date I   N

QTSNQuality Table Seq. No. I   N

TXIDText ID Number       I   N

STPRStatus Preference       I   N

OSEQSequence Number       I   N

MCUBranch Plant       I   N

TSRTTest Sort Sequence No. I   N

QTSTTest ID             I   N

TTTYTest Type             I   N

QREVSpecification Rev Level I   N

TSSPTest Specification Flag I   N

MCU2Test Branch Plant       I   N

SYSystem Code             I   N

RTUser Defined Codes  I   N

AMINAllowed Minimum Value I   N

AMAX Allowed Maximum Value  I   N

PMINPreferred Minimum Value I   N