MRPWriteOtherBranchDemandtoCache

MRP,Write Other Branch Demand to Cache

Minor Business Rule

Object Name: B3500020

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This function should ONLY be used by R3483. It will read F3411 records by Item and Supply 

Branch(MMMMCU), calculate the Other Branch Demand quantity and write the quantity to the Quantities Cache.


1.2Setup Notes and Prerequisites


1.3Special Logic


2.Technical Specifications

1.Open F3411 using two request handles - first is for selecting and reading, the second for 
deleting..

2.Select Records from F3411 using MMITM=Input Item, MMMMCU=Input Branch and MMDRQJ <= Input End 

Date. (Use Index 7 to select)

3.Wk Exit Flag = '0'

4.While Wk Exit Flag <> '1'

5. Fetch from F3411

6. If Fetch Failed then 

7. Exit While Loop

8. End If

9. If MMSTRT = 0 then

10. Continue

11. End If

12. Call B3401290 in mode '1' to fetch cache record using Input Branch, 'ID', and 

MMSTRT.

13. If Cache Code Error = '0'

14. Add MMTRQT to quantity from cache record and Call B341290 in mode '3' to 

update.

15. Else

16. Call B3401290 in mode '2' to Add a new cache record with Input Branch,  'ID', 

MMSTRT and MMTRQT.

17. End If

18. If MMSTRT > Input $$MSGD then

19. Using MMUKID from current record, delete the record from F3411 using the 

second request handle (use Index 1 to delete).

20. End If

21.End While

22.Close both request handles

23.Close user handle


Data Structure

D3500020 - MRP, Write Other Branch Demand to Cache-DS

Parameter NameData ItemData TypeReq/OptI/O/Both
mnIdentifierShortItemITMMATH_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

szCostCenterMCUcharNONENONE

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.

jdDate01DATE01JDEDATENONENONE

Event point for JDE Date.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

szJobNumberJOBcharNONENONE

Job Number

jdMessageTimeFenceDateDATE01JDEDATENONENONE

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

F3411 MPS/MRP/DRP Message File