CacheLocationsByRandomRule

Cache Locations by Random Rule

Minor Business Rule

Object Name: B4600770

Parent DLL: CWARE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

The purpose of this business function is to load valid Random Rule locations (F46821) into cache and validate if the location exists within the Random 
Rule.  The reason for this cache is to eliminate duplicate table I/O when determining if a location is within a Random Rule.  


The business function will also allow you to determine and validate if a Random Rule location falls within a put, pick or replenishment zone (F4100).



1.2Setup Notes and Prerequisites


Cache Action Code
1=Load Random Rule Location and Zone into Cache and validate

9=Delete Cache




2.Technical Specifications


2.1Parameters:


Data Item DescriptionI/OReq.Notes
N0001Job NumberIYesCache number

MODEAction CodeIYes1=Load Random Rule Location and Zone into Cache and validate 

9=Delete Cache

EV01Error CodeONo1=location is not within the Random Rule or the Zone validation failed

DTAIError Message ONo

MCUBranch PlantINoRequired for action code=1

SRULRandom RuleINoRequired for action code=1

LOCNLocationINoRequired for action code=1

KZONZoneINo

ZTYPZone TypeINo1=Put  2=Pick  3=Replenishment




Data Structure

D4600770A - Cache Locations by Random Rule

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobNumberN001MATH_NUMERICREQINPUT

The number that the system will assign next. The system can use next numbers for voucher numbers, invoice numbers, journal entry 
numbers, employee numbers, address numbers, contract numbers, and sequential W-2s. You must use the next number types already 
established unless you provide custom programming.

cActionCodeMODEcharREQINPUT

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

cErrorCodeEV01charOPTOUTPUT

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

szErrorMessageIdDTAIcharOPTOUTPUT

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.

szBranchPlantMCUcharOPTINPUT

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.

szRandomRuleSRULcharOPTINPUT

A code (system 46/type SR) that identifies a random requirements table. If you use Random, Empty or Existing locations for the movement 
method, you can enter a random rule code to consider only locations whose characteristics match the random rule. You can leave Random 
Rule blank to have the system consider all locations for each movement method.

szLocationLOCNcharOPTINPUT

The storage location from which goods will be moved.

szZoneKZONcharOPTINPUT

A code (system 46/type ZN) that identifies an area from which items are picked for shipment.

cZoneTypeZTYPcharOPTINPUT

A code that indicates zones within a set of random locations to which you are replenishing. When you specify a value in this field, you must 
also specify a zone in the Zone field. Valid values are:    2   The system replenishes the picking zone.    3   The system replenishes the 
replenishment zone.

Related Functions

None

Related Tables

F4100 Location Master
F46821 Random Locations