CalculateShrinkageQuantity

Calculate Shrinkage Quantity

Major Business Rule

Object Name: B3100250

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This Business function calculates the Order Quantity with Shrinkage.

1.2Setup Notes and Prerequisites

• None.

1.3Special Logic

None.

2.Technical Specifications


2.4Processing 


1. Read the Item Balance row (F4102) using ITM and MMCU as the key.
2. Read the Item Master row (F4101) using ITM as the key.

3. If row is found and IBSRNK <> 0

If IBSRKF =  '%'

Output Quantity = Input Quantity * IBSRNK/100

Else

Convert IBSRNK to Input UOM. 

Output Quantity = Input Quantity + Converted IBSRNK Quantity.

End

If IMSNS = 'R'

Round the Output Quantity.

Endif.

    Else

Output Quantity = Input Quantity.

    Endif.


The Output Quantity is returned.

Note:

Use Business Functions for getting the Item Master, Item Balance and Unit of Measure Conversions. 

^

Data Structure

D3100250 - Calculate Shrinkage Quantity

Parameter NameData ItemData TypeReq/OptI/O/Both
szCostCenterMMCUcharNONENONE

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.

mnShortItemITMMATH_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

mnInputQuantityUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

mnOutputQuantityTRQTMATH_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).

szUnitOfMeasureUMcharNONENONE

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, 
cubic meter, liter, hour, and so on.

Related Functions

B4000460 Free Ptr To Data Structure
B4000520 Get Item UoM Conversion Factor
B4000920 Get Item Branch Mfg Data
X4101 Validate and Retrieve Item Master

Related Tables

F4101 Item Master
F4102 Item Branch File