1.Functional Description
1.1Purpose
The purpose of this function is to check if a record exists in the cache. If record exists
accumulate quantity ordered and transaction quantity and calculate issue quantity. If record does not exist
create it and calculate issue quantity.
1.2Setup Notes and Prerequisites
None.
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
Initialize Variables:
Line Closed =999999999999999.
Difference = Zero
Quantity Per=Zero
Intermediate Total=Zero
Grand Total=Zero
Consumed Total=Zero
Net Consumed=Zero
Difference Two=Zero
Total Issue=Zero
1)If terminating cache, delete all cache elements and exit the business function.
2)If DS Quantity Ordered is Zero and DS Transaction Quantity is Zero.
b)Exit the business function.
3)Retrieve Cache record by DS Job Number, DS Computer Id, DS Primary Item Number, DS Operation
Sequence Number, and DS Fixed of Variable Quantity Flag as keys.
ii)Index Before Consumption = 0
iii)Index Quantity Order = Index Quantity Ordered + DS Quantity Ordered.
iv)Index Transaction Quantity = Index Transaction Quantity + DS Transaction Quantity.
v) If matching cache record is found, update the cache.
vi)If cache is not found, add a new record to the cache.
ii)Update the cache with new calculated values .
Calculate Issue Qty Logic:
/* Determine if line is closed and setup description message if it is closed. */
1)Difference = DS Quantity Ordered - DS Transaction Quantity.
2)If Difference < Zero AND DS Super Backflush is Blank OR DS Quantity Committed = '999999999999999'
(i.e. Line Closed)
ii)Exit the business function.
/* Process variable/percent quantity. */
Note: Decrement the no of occurrences. When the number hits zero during issuance calculations, it
denotes the last line.
3)Determine if the quantity previously issued exceeds the original transaction quantity. If so, do
no display the global adjustment quantity in the issue quantity field.
4)If DS Fixed or Variable Quantity Flag = 'V' or '%'
calculations, it denotes the last line. */
ii)Net = Zero.
iii)Net Consumed = Zero.
iv)DS Issue Quantity = Zero.
Will issue all that is 'open' on the grid line up to the total that should net against the
quantity that has already been issued. Any overage will default to the last line with an open
issue quantity. */
(b)Net Consumed = Net + Consumed Total.
(c)If Net Consumed > Intermediate Total
(ii)Net = Net - Difference Two.
(e)Index Before Consumed = Index Before Consumed + Net.
(b)Net = Net * -1
(c)Net Consumed = Net + Consumed Total.
(d)If Net Consumed < Intermediate Total
(ii)Net = Net - Difference Two.
(f)Index Before Consumed = Index Before Consumed + Net.
(ii)DS Issue Quantity = DS Issue Quantity + Difference Two.
DS Computer ID
DS Operation Sequence Number
Quantity is returned.
/* Fixed Quantity. */
5)If DS Fixed or Variable Quantity Flag NOT = 'V' or '%' (i.e. Fixed FORQ)
D3101130 - Cache, Calculate Issue Quantity
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
szComputerID | CTID | char | NONE | NONE |
szPrimaryItemNumber | UITM | char | NONE | NONE |
A number that the system assigns to an item. It can be in short, long, or third item number format. | ||||
mnOperationSequenceNo | OPSQ | MATH_NUMERIC | NONE | NONE |
A number used to indicate an order of succession.
In routing instructions, a number that sequences the fabrication or assembly steps in the
| ||||
cFixedOrVariableQtyFlag | FORQ | char | NONE | NONE |
A code that indicates if the quantity per assembly for an item on the bill of material varies according to the quantity of the parent item
| ||||
mnQuantityOrdered | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
mnQuantityOrderedMaster | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
mnTransactionQuantity | TRQT | MATH_NUMERIC | NONE | NONE |
A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and
| ||||
mnQuantityCommitted | QNTA | MATH_NUMERIC | NONE | NONE |
szDescription | DSC1 | char | NONE | NONE |
Brief information about an item; a remark or an explanation. | ||||
cIndexFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuperBackflush | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnIssueMaterialFor | QTY | MATH_NUMERIC | NONE | NONE |
The number of units associated with an asset. | ||||
mnIssueQuantity | QNTY | MATH_NUMERIC | NONE | NONE |
The number of units that the system applies to the transaction. | ||||
cTerminateCache | EV03 | char | NONE | NONE |
A radio button that specifies the level at which trace/track result is to be displayed. Select the Detail to display all transactions except IB, IX,
| ||||
mnIssueConversionFactor | CNV1 | MATH_NUMERIC | NONE | NONE |
The mathematical relationship showing the conversion between the primary and secondary units of measure. | ||||
mnQtyConversionFactor | CNV2 | MATH_NUMERIC | NONE | NONE |
The mathematical relationship showing the conversion between the primary and purchasing units of measure. | ||||
cProcessingMode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnCoByJobNumber_JOBS | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnCoByOperationSequence_OPSQ | 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
| ||||
mnIdentifierShortItem | ITM | MATH_NUMERIC | OPT | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szCostCenterAlt | MMCU | char | OPT | 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
| ||||
szUnitOfMeasureAsInput | UOM | char | OPT | 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). | ||||
mnStepScrapPercent | STPP | MATH_NUMERIC | OPT | NONE |
A value that the system uses to increase or decrease the amount of materials to account for loss within the operation. The system updates
| ||||
cApplyShrink | APSK | char | OPT | NONE |
This field controls whether the system applies the parent item's shrink factor to the recommended issue quantity of a component item. Valid
| ||||
cApplyYield | APYD | char | OPT | NONE |
A code that controls whether the system applies the operation scrap percent to the recommended issue quantity of a component item.
| ||||
mnSecondaryIssues | SSTQ | MATH_NUMERIC | OPT | NONE |
The number of units, expressed in the secondary unit of measure, that the system has recorded as completed or issued. This value can
| ||||
mnComponentShortItemNo | ITM | MATH_NUMERIC | OPT | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szComponentBranchPlant | CMCU | char | OPT | 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
| ||||
mnShrinkFactor | SRNK | MATH_NUMERIC | OPT | NONE |
A fixed quantity or percentage that the system uses to determine inventory shrinkage for an item. The system increases the planned order
| ||||
cShrinkFactorMethod | SRKF | char | OPT | NONE |
A value that determines whether the shrink factor you enter for this item is a percentage or a fixed quantity. Valid values are:
%
| ||||
mnRequestedQuantityWithShrink | RQTE1 | MATH_NUMERIC | OPT | NONE |
The number of parent items that you want to process. The system calculates lower level values in quantity per the number of parent items
|
B3102110 Cache Resource Percentage Index |
None |