CalculateQuantityToPutaway

Calculate Putaway Quantity

Major Business Rule

Object Name: B4600280

Parent DLL: CWARE

Location: Client/Server

Language: C


Functional Description


Purpose


The purpose of this function is to edit a location for putaway and calculate the quantity of an item 

that will fit in the location.  The type of edits that are performed are based on the Location and 

Item Profiles.  For example, allow mix items, maximum number of items, allowed containers, etc.  

Reservations are included in the calculation to determine the quantity that fits in the location.


Setup Notes and Prerequisites


This function is called from Calculate and Edit Putaway Quantity (N4600230).  The Named ER is 

responsible for retrieving the information needed in this function.

^

Data Structure

D4600280A - Calculate Putaway Quantity

Parameter NameData ItemData TypeReq/OptI/O/Both
idF4602RecordPtrGENLNGIDNONENONE

General purpose ID variable.

szBranchPlantMCUcharREQNONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

mnShortItemNumberITMMATH_NUMERICREQNONE

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

szTOLocationLOCNcharREQNONE

The storage location from which goods will be moved.

szTOLotLOTNcharREQNONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

mnTOSequenceNumberLDSQMATH_NUMERICNONENONE

The sequence number that identifies a record in the Location Detail table (F4602). The system uses this number to distinguish between the 
diffferent pallets, cases, and so forth, for the same item in the same location.

szCodeOriginOCDEcharREQNONE

Code that identifies what type of program a warehouse movement request was created from.  You can use this field to select requests 
based on how they were created.  Valid codes are: Request Type Putaway - code OP; Purchase Order Receipts (P4312) Putaway/Replenish - 
code TR; Manual Movement Requests (P46100) Replenish - code BR; Batch Replenishments (P461601) Replenish - code PR; Warehouse 
Picking Server (X46151) Picking - code SO; Batch Order Edit and Creation - Sales (P40211Z).        Sales Order Entry - Single Line (P4201A)        
Order Release (P420111)        Sales Order Release (P42040)        Held Order Release (P42070)        Sales Order Entry - Detail (P4211)        Back 
Order Release - Online (P42117)        Back Order Release - Batch (P42118)           - Transfer Order Entry (P4242)        P42995  - Repost Active 
Sales Orders.        P46150  - Batch Picking Requests.        P47011  - EDI Purchase Order Edit/Create.        P47091  - EDI Request for Quote 
Edit/Create.        code WO; Work Order Parts List Revisions (P3111                         code WB and SB : Request Inquiry (P4600)                         Warehouse 
Movement Confirmations (P4617)

szUnitOfMeasureLevel1UML1charNONENONE

The item's level 1 unit of measure. You use Unit of Measure Conversion Information (P41002) to define an item's unit of measure structure. 
You define the largest unit of measure in the structure as the level 1 unit of measure. The smallest unit of measure, which is also the primary unit 
of measure, is the highest level in the structure. For example, a unit of measure structure could be as follows:    Level Unit of Measure    1       
Pallet    2       Box, where 10 boxes equal 1 pallet    3       Case, where 5 cases equal 1 box    4       Interpack, where 8 interpacks equal 1 case    5       
Each, where 10 eaches equal 1 interpack  In this example, the level 1 unit of measure is a pallet, and the level 5 unit of measure is an each, 
which is the primary unit of measure. You can have five levels in an item's unit of measure structure.

szLocationDimensionUOMWIUMcharNONENONE

A user defined code (system 00/type UM) that identifies the unit of measure that the system uses to display dimensions for the warehouse. 
The system provides the ability to establish inches, centimeters, meters, and so forth,as a measuring standard.

szLocationVolumeUOMVUMDcharNONENONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to display volume for this branch/plant. The system 
inputs a value in this field from Branch/Plant Constants - Page 2 (P410012). You can override this default value.

szLocationWeightUOMUWUMcharNONENONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to indicate weight for this item. You can specify ounces, 
grams, kilograms, and so on, as weight standards. The system uses this unit of measure for the item or overrides it for an individual item or 
container.

mnQuantityRequestedQTRQMATH_NUMERICNONENONE

The quantity requested in the primary unit of measure.

mnMaximumNumberOfItemsMITMMATH_NUMERICNONENONE

A number that specifies the maximum number of different items that can be stored in this location at one time. Enter a number from 1 to 99. If 
you leave the field blank (or zero), the system does not limit the number of different items in the location.

szAllowedContainerCodeEQTYcharNONENONE

A code (46/EQ) that identifies a storage container or a shipping carton. A storage container can be an open container where items are 
stored on the container (for example, a pallet), or a closed container where items are stored in the container (for example, a box). You use the 
Container and Carton Codes program (P46091) to define storage containers.

cMixDatesLotsLocationMLOTcharNONENONE

A code that indicates how you want the system to assign items to a location.

cMixContainersMCNTcharNONENONE

A code that indicates whether you want to allow more than one type of storage container for an item to be stored in the location. Valid codes 
are:    Y Allow more than one type of container in this location    N Do not allow more than one type of container in this location  You use 
Allowed Containers (P46026) to define which containers are allowed in the location. You can also set up the item profile to allow mixing of 
containers.

szLocationDimensionGroupSTY1charNONENONE

A code (system 46/type LD) that identifies a group of locations that share the same dimensions. A location dimension group defines the 
dimensions for all locations that belong to the group. After you set up a location dimension group, you can assign locations to the group through 
Location Profile Revisions (P46020). You must define location dimensions if you plan to use volume-based putaway.

cMixItemsMLITcharNONENONE

A code that indicates whether you want the system to store different items in the same location. Valid codes are:    Y Yes, allow different 
items to be stored in the same location    N No, do not allow different items to be stored in the same location 

cMixDatesLotsItemMLOTcharNONENONE

A code that indicates how you want the system to assign items to a location.

cAllowRotationAROTcharNONENONE

A code that indicates whether you allow the system to rotate an item 90  degrees to determine whether the item fits into a location. Valid 
codes are:    Y Yes, rotate the item 90 degrees during putaway    N No, do not rotate the item 90 degrees during putaway  NOTE: You must enter a 
code in this field if you use capacity method 2  (layering).

szItemDimensionGroupPRP6charNONENONE

A code (system 41/type 01) that identifies a group of items that share the same dimensions. An item dimension group defines the 
dimensions for all items that belong to the group. After you set up an item dimension group, you can assign items to the group through Classification 
Codes (41011).

cCalculateMaximumQuantityEV01charNONENONE

An option that specifies the type of processing for an event.

mnPutawayQuantityQTRQMATH_NUMERICNONENONE

The quantity requested in the primary unit of measure.

szErrorMessageIDDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cMaximumReplenishmentOVRQcharNONENONE

This flag when turned on will disable the following validations:     o When running putaway selection: The "from" location will not be validated.  
   o When running pick selection: The "to" location will not be validated for space, hold, number of items...

cProcessReplenishmentRequestEV01charNONENONE

An option that specifies the type of processing for an event.

mnQuantityOnCommitQTRQMATH_NUMERICOPTNONE

The quantity requested in the primary unit of measure.

mnTotalPutQTYAvailableTQTYMATH_NUMERICOPTNONE

The total quantity of an item to be reworked or scrapped as a result of an ECO disposition.

mnMinimumPutawayPercentMNUPMATH_NUMERICOPTNONE

The minimum percentage of the total location capacity that you want the system to use during putaway. You specify a minimum putaway 
percentage when you want an item to fill at least this percentage of an empty putaway location.

cEditMinPutawayPercentAMNUcharOPTNONE

A code that indicates whether the system suggests a location if putaway will not fill that location to at least the minimum percentage capacity 
defined through Location Profile Detail (P460201). Valid codes are:    Y Use the minimum utilization percentage when searching for putaway 
locations    N Do not use the minimum utilization percentage when searching for putaway locations

mnMaximumQuantityP1QTYMATH_NUMERICOPTNONE

The number of units associated with an asset.

cF4100MixItemLotFlagMIXLcharOPTNONE

A code that specifies whether to prohibit or allow the system to combine different items into one location or to combine different lot or serial 
numbers of the same item into one location. Valid values are: Blank No restrictions 1 One item per location 2 One item or lot per location 3 One 
item, lot, or status per location

cTopOffYNMERGcharOPTNONE

A code that indicates whether you want the system to attempt to complete an incomplete unit of measure (such as a half-filled pallet) in an 
existing location during putaway. Valid codes are:    Y Yes, search for locations with incomplete units of measure to top them off    N No, do not 
search for locations with incomplete units of measure 

idUOMInformationGENLNGIDOPTNONE

General purpose ID variable.

mnRequestBatchNumberRQBTMATH_NUMERICOPTNONE

The batch number assigned to one set of putaway, picking, or replenishment requests. This number comes from next numbers for system 
46.

cOnlineEditEV01charOPTNONE

An option that specifies the type of processing for an event.

Related Functions

B4000390 Get Standard Unit of Measure Conversion Factor
B4600020 F46011 Verify And Get Item UOM Definition
B4600040 F41002 Convert UOM Structure
B4600060 F4602 Detail Location Selection
B4600210 F46010 Verify And Get Item Profile
B4600430 F46130 Verify and Get Reservations

Related Tables

F4602 Location Detail Information
F46022 Location Dimensions
F46024 Location Capacity
F46026 Allowed Containers by Location
F46130 Putaway Reservations