1.Functional Description
1.1Purpose
This function will perform Load, Delete, Update, Get, and Clear functions on the BOMTextLines cache
used in BOM Explosion routine.. On a Create process, an identifier for the cache (hCache handle) 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
There is no special logic within this function.
2.Technical Specifications
2.4Processing
Cache Layout:
AliasData ItemNotes
Index
INT01LevelIndex
MMCUParent BranchIndex
KITParent ItemIndex
TBMType Of BillIndex
BQTYBatch QuantityIndex
CPNTLine NoIndex
Text
CPNTText Line No
AITMSecond Item Number
LITMThird Item Number
I. Perform setup functions
B.Initialize return code to success.
C.If not successful, Set error "032E," "Error Processing Cache" and set return code to
failure.
II. Processing Based on Mode.
E.If Process Mode is "5" - DELETE ALL:
G.If Process Mode is "7" - ADD/UPDATE:
D3003160 - Cache Process BOM Text Lines
2.1Parameters:
Data Item Data StructureI/ORequiredNotes
Description
INT01LevelI/OYKey value
MMCUParent BranchI/OYKey Value
KITParent ItemI/OYKey value
TBMType of BillI/OYKey Value
BQTYBatch QuantiyI/ONKey value
CPNTLine No.I/ONKey value
CPNTText Line No.I/ONKey value
LITMSecond Item NumberI/ON
AITMThird Item NumberI/ON
INT01Number of KeysIYNumber of Keys to be used in the
"3' = Update element
"4" = Delete cache elements
"5" = Delete All cache elements
"6" = Get Next cache element
"7' = Add/Update cache element
"8" = End cache (terminate cache)
"2" = Invalid Input Parameter
"3" = Failed to Create CACHE
"4" = Failed to Add CACHE
"5" = Failed to Delete CACHE
"6" = Cache is loaded
"7" = Empty CACHE
DTAIError Message IDON
JOBSJob NumberIYUnique job number for that
Used to make the cache unique.
calling program.
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
nLevel | INT01 | integer | NONE | NONE |
Number of Days in Future to Query for Responses Due. | ||||
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
| ||||
mnParentItem | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
szTypeOfBill | 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.
| ||||
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
| ||||
szThirdItemNumber | AITM | char | NONE | NONE |
The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item
| ||||
szSecondItemNumber | LITM | char | NONE | NONE |
A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to
| ||||
nNumberOfKeys | INT01 | integer | NONE | NONE |
Number of Days in Future to Query for Responses Due. | ||||
cProcessMode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cCacheCodeError | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
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
| ||||
mnJobnumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
cReturnCursorFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
idCursor | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
szLineType | LNTY | char | OPT | NONE |
A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as
| ||||
mnSequenceNoOperations | OPSQ | MATH_NUMERIC | OPT | NONE |
A number used to indicate an order of succession.
In routing instructions, a number that sequences the fabrication or assembly steps in the
| ||||
mnBubbleSequence | BSEQ | MATH_NUMERIC | OPT | NONE |
A secondary bill of material sequence number that indicates the drawing bubble number. | ||||
jdEffectiveFromDate | EFFF | JDEDATE | OPT | NONE |
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
| ||||
jdEffectiveThruDate | EFFT | JDEDATE | OPT | NONE |
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
| ||||
mnLineNo | CPNB | MATH_NUMERIC | OPT | NONE |
A number that specifies how the system displays the sequence of components on a single-level bill of material. This number initially
| ||||
mnTextLineNo | CPNB | MATH_NUMERIC | OPT | NONE |
A number that specifies how the system displays the sequence of components on a single-level bill of material. This number initially
|
None |
None |