MRPMultiPlantConsolidateOnHand

MRP, Multi-Plant Consolidate OnHand Qty

Minor Business Rule

Object Name: B3500070

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description
This function will read the available plants from the F35UI001 table and adjust the quantity on-hand 
by the safety stock if needed. It will then write the Beginning Available quantities to the Regular 

Item Cache


1.1Purpose

1.2Setup Notes and Prerequisites

Should only be called when Consolidation Method is '1'

1.3Special Logic


2.Technical Specifications

This function should not be modified for other programs. It should be used only for R3483.

1. Open F35UI001
2. If Failed Exit Function with Errors

3. Select All records in F35UI001.

4. While Wk Exit Flag <> '1'

5.  Read F35UI001

6.  If Failed then

7.  Break

8.  End If

9.  Total Qty = Total Qty + Qty on-hand(PQOH) from table.

10. End While

11. If Input Include Safety Stocks = '1' then

12.  Total Qty = Total Qty - Input Total Safety Stock

13. End IF

14. If Total Qty < 0 then

15.  Total Qty = 0

16. End If

17. Call B3401290 in mode '4', non-sequential, using Input Consolidation Branch, 'BA' (2 keys).

18. Call B3401290 in mode '4', non-sequential, using Input Consolidation Branch, 'BAU' (2keys).

19. 

20. Call B3401290 in mode '2', to add, using Input Consolidation Branch, 'BA', and Input 

$$FIRST, and Total Qty.

21. Call B3401290 in mode '2', to add, using Input Consolidation Branch, 'BAU', and Input 

$$FIRST, and Total Qty.

22. Close Tables


^

Data Structure

D3500070 - MRP, Multi-Plant Consolidate OnHand Qty

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobNumberJOBSMATH_NUMERICNONENONE

The job number (work station ID) which executed the particular job.

szJobNumberJOBcharNONENONE

Job Number

szComputerIDCTIDcharNONENONE

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.

cSuppressErrorsEV01charNONENONE

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

cIncludeSafetyStocksEV01charNONENONE

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

mnTotalSafetyStocksSAFEMATH_NUMERICNONENONE

The quantity of stock kept on hand to cover high-side variations in demand.

szConsolidationBranchMCUcharNONENONE

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.

jdFirstDateDATE01JDEDATENONENONE

Event point for JDE Date.

cSupplyDemandExistsEV01charOPTNONE

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

Related Functions

B3401290 Cache, Process MRP Item Quantities

Related Tables

F35UI001 MPS/MRP Planning - Multiple Plant User Index