RollupCosts

Rollup Costs - Business Function

Minor Business Rule

Object Name: B31P0110

Parent DLL: CEPM

Location: Client/Server

Language: C

Functional Description
This business function accumulates Production (F3102) and Non-Production (F0911) costs associated with a Manufacturing Project 

into cost buckets identified in the 31P/CC UDC and updates the Work Order (F4801) and Work Order Tag (F4801) files with the 

calculated values.


Setup Notes and Prerequisites

The business function can be called in three modes:

1 = Calculation Mode Calculates costs and stores them in the Cost Cache

2 = Update Mode Reads the Cost Cache and updates the Work Order Master File and Work Order Tag File

3 = Calculate and ReturnCalculates costs and returns Planned and Estimates, without storing values in the Cost 

Cache 


Error and Warning messages are written to the B31P0200 Cache unless the cSuppressErrorMessages = '1'  is passed in.  If the 

error messages are not suppressed, the cache should be terminated with a call to B31P0200.


Technical Specifications

1.0   If cMode = 1

1.1 Rollup Costs

1.2Add record to Cost Cache

1.3Rollup Additional Costs

1.4Add record to Cost Cache


2.0   If cMode = 2

2.1Read each record in the Cost Cache and update F4801 and F4801T


3.0   If cMode = 3

3.1Rollup Costs

3.2Return Planned and Estimated Costs



Data Structure

D31P0110 - Rollup Costs - 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.

cRollupStandardToEstimateEV01charOPTNONE

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

cRollupPlannedToPlannedEV01charOPTNONE

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

cRollupActualToActualEV01charOPTNONE

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

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

mnProjectNumberPRJMMATH_NUMERICOPTNONE

A number that identifies an EPM project in the system. The project must be set up in the Add/Revise Project program (P31P011).

szWorkOrderBranchMMCUcharOPTNONE

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.

cErrorLevelEV01charOPTNONE

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

mnPlannedSpecialUnitsUMATH_NUMERICOPTNONE

The quantity of something that is identified by a unit of measure. For example, it can be the number of barrels, boxes, cubic yards, gallons, 
hours, and so on.

mnPlannedSpecialAmtMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

mnPlannedOtherMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

mnPlannedMaterialMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

mnPlannedLaborMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

mnEstimatedSpecialAmtMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

mnEstimatedOtherMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

mnEstimatedMaterialMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

mnEstimatedLaborMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

mnEstimatedSpecialUnitsUMATH_NUMERICOPTNONE

The quantity of something that is identified by a unit of measure. For example, it can be the number of barrels, boxes, cubic yards, gallons, 
hours, and so on.

mnParentItemNumberITMMATH_NUMERICOPTNONE

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

mnErrorLineNumberMATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

Related Functions

B31P0120 Cost Cache - Business Function

Related Tables

F0911 Account Ledger
F31P21 Cost Classification Table
F4801 Work Order Master File
F4801T Work Order Master Tag File