CalculateQtyWithShrink

Calculate Qty With Shrink - OBSOLETE (DO NOT USE)

Minor Business Rule

Object Name: B3000230

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function calculates a total quantity with shrink for a parent item by taking the passed 
transaction quantity in the item's primary unit of measure, and increasing (or decreasing) that quantity based 

on the shrink factor (IBSRNK) and Shrink Factor Method (IBSRKF),  percentage yield (%) or yield 

quantity (F), in the Item Branch table (F4102) for that item.



1.2Setup Notes and Prerequisites



1.3Special Logic



2.Technical Specifications


2.4Processing 

Retrievals:
Retrieve Item Branch Table (F4102) using index:  Branch, Item where Item Number and Branch/Plant are

 equal to the values passed in the data structure.  Get the Shrink Factor (IBSRNK) and Shrink Factor 

Method

 (IBSRKF) from the table.


Returns:

Calculated Quantity with shrink:


If the Shrink Factor (IBSRNK) is zero, assign the Requested Quantity (TRQT) to the Requested Quantity 

with

 Shrink (RQTE1), do no other calculations, end the function.


If the Shrink Factor (IBSRNK) is not zero:


If Shrink Factor Method (IBSRKF) is equal to "%":

Calculate a new Requested Quantity with Shrink (RQTE1):  

Request Quantity multiplied by a value that 

equal to 

Shrink Factor divided by 100.

(Note: if the Shrink Factor Method (IBSRKF) is a percent sign, the Shrink Factor 

(IBSRNK) is expressed as a whole percentage after math numeric adjustments.  Dividing by100 is 

required to adjust this percentage to a factor or rate.)


If the Shrink Factor Method (IBSRKF) is not equal to "%":

Calculate a new Requested Quantity with Shrink (RQTE1):  Requested
 Quantity plus the Shrink Factor.


(Note: if the Shrink Factor Method (IBSRKF) is not a percent sign, the Shrink 
Factor (IBSRNK) is recognized as a quantity to be added to the originally requested quantity.  Except 

for math numeric activity, no adjustment is needed for the Shrink Factor as a quantity)


Return the new Requested Quantity with Shrink (RQTE1)



^

Data Structure

D3000230 - Calculate Qty With Shrink

Parameter NameData ItemData TypeReq/OptI/O/Both
mnItemNumberITMMATH_NUMERICNONENONE

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

szBranchPlantMMCUcharNONENONE

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.

mnRequestedQuantityTRQTMATH_NUMERICNONENONE

A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and 
backorders. You enter this value in the Branch/Plant Constants program (P41001).

mnRequestedQuantityWithShrinkRQTE1MATH_NUMERICNONENONE

The number of parent items that you want to process. The system calculates lower level values in quantity per the number of parent items 
requested. For instance, if it takes 3 components per a parent item, then with a requested quantity of 10, the system would plan and cost for 30 
components.

cShrinkFactorMethodSRKFcharNONENONE

A value that determines whether the shrink factor you enter for this item is a percentage or a fixed quantity. Valid values are:    %   
Percentage of order or requested quantity    F Fixed amount to be added to quantity 

mnShrinkFactorSRNKMATH_NUMERICNONENONE

A fixed quantity or percentage that the system uses to determine inventory shrinkage for an item. The system increases the planned order 
quantity by this amount in MPS/MRP/DRP generation. The shrink factor method you specify for the item determines whether the shrink factor 
is a percentage or a fixed quantity. If you are entering a percentage, enter 5% as 5.00 and 50% as 50.00.

Related Functions

None

Related Tables

F4101 Item Master
F4102 Item Branch File