ShopFloorActivityCalculation

Shop Floor Activity Calculation - Business Function

Minor Business Rule

Object Name: B3104130

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Functional Description

Purpose

The purpose of this function is to calculate the routing costs associated with a work order and to call the ShopFloorCostsCache (B3104410) to add the 

costs to the Shop Floor Costs cache.    


Setup Notes and Prerequisites


Business Function Paramenters:

1.  cMode - Not currently used.                               

2.  szCacheJobNumber - This unique job number is passed to the ShopFloorCostsCache to create a unique cache instance.                

3.  cSuppressErrorMessage - Passing a '1' through this parameter indicates that errors encountered during processing should not be set in the  

   message center.               

4.  szErrorMessage - The error ID for errors encountered during processing is returned from the function via this parameter.  The error ID is  

     returned regardless of the value in the cSuppressErrorMessage parameter.                  

5.  idhCursor - Not currently used.                           

6.  mnWorkOrderDocumentNumber - Indicates the work order for which shop floor costs should be calculated.  This parameter is used to  

 retrieve records from the Routing (F3112) table.    

7.  szOrderType - The work order Order Type.    

8.  szBranch - The Branch containing the work order.                

9.  idMfgConstantsPtr -   A pointer to the Manufacturing Constants for the Work Order Branch.


Technical Specifications

Retrieve the Mfg. Constants

Retrieve the First Routing record (B3103050).

While Routing records exist

Retrieve Work Center Rates (B3000030) and (B3000150)

Calculate Routing Costs

Store Routing Costs in Shop Floor Costs Cache (B3104410)

Close the Work Order Routing table (B3103050).


Data Structure

D3104130 - Shop Floor Activity Calculation - Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeEV01charOPTINPUT

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

szCacheJobNumberJOBNcharOPTINPUT

The code that identifies the work station ID that executed a particular job.

cSuppressErrorMessageEV01charOPTINPUT

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

szErrorMessageDTAIcharOPTOUTPUT

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.

idhCursorGENLNGIDOPTBOTH

General purpose ID variable.

mnWorkOrderDocumentNumberDOCOMATH_NUMERICOPTNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrderTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szBranchMMCUcharOPTNONE

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.

idMfgConstantsPtrGENLNGIDOPTNONE

General purpose ID variable.

Related Functions

B3000030 Get WC Data
B3000150 Get WC Rates Data
B3000450 Get MFG Constants Data
B3103050 F3112 Retrieve Work Order Routing Records

Related Tables

None