1.Functional Description
1.1Purpose
This function will perform Load, Delete, Update, Get, and Clear functions on the PartUseability cache
used in Part Useability Inquiry (P30212).
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.
A unique job number (JOBS) must be obtained from the next numbers table (System "30", index "1") and
passed to this function to uniquely identify cache.
The cursor handle (Cache Cursor ID) must be passed into this function for any sequential read
processing, i.e. Action Code is "6". This cursor handle should be retrieved from this function by passing
"1" in the Return Cursor parameter whenever sequential processing is performed.
The calling application/function must pass a Job Number (JOBS) which uniquely identifies a cache
being used for this inquiry session; this Job Number is retrieved by the Component Usability application
(P30212) from the Next Numbers table (F0010 - System 30, index 1).
1.3Special Logic
There is no special logic within this function.
2.Technical Specifications
2.4Processing
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.
2.If add fails set error "032E"(Error Processing Cache) and return failure.
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 elememt matching the the key
values passed as input.
3.If delete fails, return failure.
E.If Process Mode is "5" - DELETE ALL:
2.If delete fails, return failure;
cursor should have been set through a previous "Get" action, i.e. process mode "4", 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.
G.If Process Mode is "7" - ADD/UPDATE:
2.Insert a new cache element with values from data structure.
3.If add fails set error "032E" (Error Processing Cache) and return failure.
^
D3001680 - Cache - Process Part Useability
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnParentLowLevelCode | LLX | MATH_NUMERIC | NONE | NONE |
This identifies the lowest level in any bill of material at which a particular component may appear.. | ||||
mnParentItem | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szParentBranch | MMCU | char | NONE | NONE |
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
| ||||
mnBatchQuantity | BQTY | MATH_NUMERIC | NONE | NONE |
The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components
| ||||
szParentType | TBM | char | NONE | NONE |
A user defined code (40/TB) that designates the type of bill of material. You can define different types of bills of material for different uses.
| ||||
mnComponentLowLevelCode | LLX | MATH_NUMERIC | NONE | NONE |
This identifies the lowest level in any bill of material at which a particular component may appear.. | ||||
mnComponet | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szComponentBranch | CMCU | char | NONE | NONE |
A secondary or lower-level business unit. The system uses the value that you enter to indicate that a branch or plant contains several
| ||||
mnComponentBatchQty | CQTY | MATH_NUMERIC | NONE | NONE |
The number of units which have been shipped since the inception of this contract. | ||||
szComponentType | TBM | char | NONE | NONE |
A user defined code (40/TB) that designates the type of bill of material. You can define different types of bills of material for different uses.
| ||||
mnFixedQtyRequiered | FQTY | MATH_NUMERIC | NONE | NONE |
A number that indicates how many items the customer must buy over the From Level entered on the Price Adjustment Detail form before
| ||||
szParentBatchQty | UOM | char | NONE | NONE |
A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box). | ||||
szComponentBatchQty | UM | char | NONE | NONE |
A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box,
| ||||
cPurchaseManufactured | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cImplosionComplete | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cProcessItem | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szCacheActionCode | CACTN | char | NONE | NONE |
A code that indicates the activity you want to perform. Valid codes:
o Get - Retrieve the cache element
o Add - Add a cache element
o
| ||||
szErrorMessageID | DTAI | char | NONE | NONE |
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
| ||||
mnVariableQtyRequired | QNTY | MATH_NUMERIC | NONE | NONE |
The number of units that the system applies to the transaction. | ||||
mnNumberOfKeys | NKEYS | MATH_NUMERIC | NONE | NONE |
The number of keys in an index that will be used to retrieve, delete, or update a record. | ||||
cSuppressErrorMessage | SUPPS | char | NONE | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
mnJobnumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
cReturnCursor | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
idCacheCursorID | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
cCacheCodeError | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. |
None |
None |