1.Functional Description
1.1Purpose
This function will perform Load, Delete, Update, Get, and Clear functions on the
PreferenceQualityManagement cache used when a Preference Profile is retrieved for Quality Management. On a Create
process, an identifier for the cache (idCacheHandle) is passed back to the calling program for subsequent
calls to this function.
1.2Setup Notes and Prerequisites
The calling application is responsible for loading all appropriate key values to the data structure
and identifying the number of keys to use in retrieval/update processes. The application must also
store the hCache pointers passed back from the "Create" process and pass these pointers back to the
business function on the other process modes which require them (see technical specifications below).
1.3Special Logic
The index to the cache will be Test Id (QTST) and Detail Branch (MCU2). The index is used to avoid
loading duplicate tests when the Preference is originally loaded into the cache.
2.Processing
2.Retrieve the first element on the cache matching the key values passed as input; the
number of keys to be used is passed in the input parameters, If "0" fetch first element in the
list.
3.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
4.If get fails return failure.
3. Function Insert Test Record
Table
(2). Cache TestSortSequence = PreferenceTestSortSequence
a) Split Spec:
(1). Select F37021 with QSPC, QREV and MCU as Key
(2). PreferenceTestID = SpecificationID
(3). PreferenceRevisionLevel = Specification Revision Level
(4). PreferenceDetailBranchPlant =SpecificationBusiness
Unit
(5). VA evt_SplitSpec_EV01 = ' '
(6). WHILE VA evt_SplitSpec_EV01 NE '1'
1. FetchNext F37021
a). IF SV File_IO Status not equal to SUCCESS
VA evt_SplitSpec_EV01 = '1'
(1). Cache Test ID =Test ID from F37021
(2). Cache DetailBranchPlant =
DetailBranchPlant from F37021
(3). Cache SpecificationId = PreferenceTestID
(4). Cache SpecBranchPlant =
PreferenceDetailBranchPlant
(5). Cache RevisionLevel =
PreferenceRevisionLevel
(6). CacheResultSortSequence = PreferenceTestSortSequence
(6). Cache TestSortSequence = PreferenceTestSortSequence
ENDIF
ENDWHILE
ENDIF
2.If update fails set error "032E" (Error Processing Cache) and return failure.
2.If the number of keys is not 0, Delete the first cache element matching the key values
passed as input.
3.If delete fails, return failure.
2.If delete fails, return failure;
cursor should have been set through a previous "Get" action, i.e. process mode "1", if number of
keys is "0" then fetch next record with out using any key).
2.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
3.If there are no more elements close cursor and return failure.
2.Insert a new cache element with values from data structure.
3.If add fails set error "032E" (Error Processing Cache) and return failure.
D3700130 - Cache Quality Management Preferences
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cStatus | STAW | char | OPT | BOTH |
A user-defined code (00/WS) that indicates the approval status. | ||||
mnTextID | TXID | MATH_NUMERIC | OPT | BOTH |
Unique identifier associating a preference with it's generic text. | ||||
mnSequenceNumber | OSEQ | MATH_NUMERIC | OPT | BOTH |
For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed.
For World, a sequence or
| ||||
mnTestSortSequenceNumber | TSRT | MATH_NUMERIC | OPT | BOTH |
A number used to determine the sort order of tests and specifications within preference profiles (item/test specifications). | ||||
jdTestEffectiveFrom | EFFF | JDEDATE | OPT | BOTH |
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
| ||||
jdTestEffectiveThru | EFFT | JDEDATE | OPT | BOTH |
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
| ||||
mnQualityTableSequenceNumber | QTSN | MATH_NUMERIC | OPT | BOTH |
A control number that uniquely identifies master table records in the Quality Management system. The system automatically generates this
| ||||
szBranchPlant | MCU | char | OPT | BOTH |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szTestID | QTST | char | OPT | BOTH |
The unique identification for a test to be performed on an item. For example: COL Color test DENS Density Test CL-2 Clarity Test | ||||
cTestType | TTTY | char | OPT | BOTH |
A value that specifies how the system processes tests as you enter test results. Valid values are:
R Required. Result values must be
| ||||
szQualityRevisionLevel | QREV | char | OPT | BOTH |
An alphanumeric character that represents the number of times a specification has changed. To avoid overlapping revisions, the system
| ||||
cTestSpecificationflag | TSSP | char | OPT | BOTH |
A code that indicates whether a record within preference profiles (item/test specifications) is a test or specification.
Valid values are:
T Test
| ||||
szDetailBranchPlant | MCU2 | char | OPT | BOTH |
An accounting entity, such as a profit center, department, warehouse location, job, project, workcenter, and so on, required for management
| ||||
szSystemCode | SY | char | OPT | BOTH |
A user defined code (98/SY) that identifies a system. Valid values include:
01
Address Book
03B
Accounts Receivable
04
Accounts
| ||||
szUserDefinedCode | RT | char | OPT | BOTH |
A code that identifies the table that contains user defined codes. The table is also referred to as a UDC type. | ||||
szAllowedMinimum | AMIN | char | OPT | BOTH |
The lowest value for a passing test result. | ||||
szAllowedMaximum | AMAX | char | OPT | BOTH |
The highest value for a passing test result. | ||||
szPreferredMinimum | PMIN | char | OPT | BOTH |
The lowest value for the preferred test result. This value must be greater than or equal to the allowed minimum value. Use the preferred
| ||||
szPreferredMaximum | PMAX | char | OPT | BOTH |
The highest value for the preferred test result. This value must be less than or equal to the allowed maximum value. Use the preferred
| ||||
szTarget | QTRG | char | OPT | BOTH |
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
| ||||
mnSampleSize | QSSZ | MATH_NUMERIC | OPT | BOTH |
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. | ||||
szQualityUnitofMeasure | QUM | char | OPT | BOTH |
Identifies the unit of measure for a sample you take to test. Examples of units of measure include barrels, gallons, hours, and cubic yards. | ||||
mnNumberofSamples | QSMP | MATH_NUMERIC | OPT | BOTH |
The number of samples to be taken for the test. | ||||
mnSamplePercentage | SMPC | MATH_NUMERIC | OPT | BOTH |
The percentage of an order quantity that determines the number of samples to create in Test Results Revisions. For example, if the sample
| ||||
mnAcceptQuantity | ACQT | MATH_NUMERIC | OPT | BOTH |
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
| ||||
mnAcceptPercentage | ACPC | MATH_NUMERIC | OPT | BOTH |
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
| ||||
cPrintTest | PTTS | char | OPT | BOTH |
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
| ||||
cManufacturingOperations | MFGR | char | OPT | BOTH |
A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results
| ||||
cManufacturingReceiptRouting | MRRR | char | OPT | BOTH |
A value that controls whether a test will display on the Test Results Revisions form when you access test results from the Routing
| ||||
cPurchasingReceiptRouting | PRER | char | OPT | BOTH |
A value that controls whether the test will display on the Test Results Revisions form when you access test results from Routing Movement
| ||||
cPurchasingReceipts | PRCR | char | OPT | BOTH |
A value that controls whether a test will display on the Test Results Revisions form when you access test results from either Receipts by
| ||||
cManufacturingCompletions | MFGC | char | OPT | BOTH |
A value that specifies whether the system displays the test on the Test Results Revisions form when you access the Test Results
| ||||
cShipConfirm | SHPR | char | OPT | BOTH |
A value that controls whether the test will display on the Test Results Revisions form when you access test results from the Ship
| ||||
cBulkLoadConfirm | BLKR | char | OPT | BOTH |
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
| ||||
mnSequenceNoOperations | OPSQ | MATH_NUMERIC | OPT | BOTH |
A number used to indicate an order of succession.
In routing instructions, a number that sequences the fabrication or assembly steps in the
| ||||
mnOperationsSequence | OPRS | MATH_NUMERIC | OPT | BOTH |
The sequence in which the system performs the operations or steps of the route. | ||||
mnBubbleSequence | BSEQ | MATH_NUMERIC | OPT | BOTH |
A secondary bill of material sequence number that indicates the drawing bubble number. | ||||
szTypeRouting | TRT | char | OPT | BOTH |
A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses.
For
| ||||
szTestMethod | TMHD | char | OPT | BOTH |
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.
| ||||
szResultUnitofMeasure | RSUM | char | OPT | BOTH |
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
| ||||
mnAssetNumber | NUMB | MATH_NUMERIC | OPT | BOTH |
An 8-digit number that uniquely identifies an asset. | ||||
szASTMReference | ASTM | char | OPT | BOTH |
Identifies a recommended testing procedure of the American Society of Testing Material. | ||||
szProperty | QPRP | char | OPT | BOTH |
The item attribute that is being tested. | ||||
cTimingofTest | TTST | char | OPT | BOTH |
szAlternateBranchPlant | MMCU | char | OPT | BOTH |
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
| ||||
cNumberofDecimals | CDEC | char | OPT | BOTH |
A value that designates the number of decimals in the currency, amount, or quantity fields the system displays. For example, U.S. Dollars
| ||||
mnWorkflowKeyID | UKID | MATH_NUMERIC | OPT | BOTH |
This field is a unique number used to identify a record in a file. | ||||
cActionCode | ACTN | char | OPT | BOTH |
A code that specifies the action that is performed. Valid values are: A Add C Change | ||||
szDerivedCalculation | DERC | char | OPT | BOTH |
An algebraic formula that specifies the quantity, price, hours, or a value associated with a rule.
The following examples illustrate the syntax
| ||||
szSpecificationID | QSPC | char | OPT | BOTH |
The unique identification for a set of tests which need to be performed together. For example:
F-156 - FDA Specification 156
SP34 -
| ||||
szSpecBranchPlant | HMCU | char | OPT | BOTH |
The number of the business unit in which the employee generally resides. | ||||
mnResultSortSequence | RSQQ | MATH_NUMERIC | OPT | BOTH |
A sequence number used within the Test Results Revisions programs to maintain the order of tests decided within Item/Test
| ||||
cRecordSelected | EV01 | char | OPT | BOTH |
An option that specifies the type of processing for an event. | ||||
cCacheErrorCodeStatus | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. | ||||
mnJobnumber | JOBS | MATH_NUMERIC | OPT | INPUT |
The job number (work station ID) which executed the particular job. | ||||
idCacheHandle | GENLNG | ID | OPT | BOTH |
General purpose ID variable. | ||||
nNumberOfKeyFields | INT01 | integer | OPT | INPUT |
Number of Days in Future to Query for Responses Due. | ||||
cIndexToUse | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
cReturnCacheCursor | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessages | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
cCacheActionCode | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | OPT | OUTPUT |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
|
None |
None |