UpdateWOCurrentCostVariance

Update WO Current Cost Variance

Minor Business Rule

Object Name: B3100440

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This business function will create/update the Current Cost Variances (B1-XX) in the WO Variance table 
(F3102) for a given Work Order and Cost Type.


1.2Setup Notes and Prerequisites

• None.

1.3Special Logic

None.

2.Technical Specifications

2.4Processing 
The following actions have to be performed by the Business Function.
1. Load ITM, MMCU, LOCN(=Blanks), LOTN(=Blanks), LEDG(='07') and COST into the keys for reading the 

Cost Component table (F30026).

2.  Read the row from the F30026 table using the above keys.

     If row found,

Work CCCU = Input CCCU

Work CCCA = Input CCCA.

If  IECOST = 'C1'/'C3'/'C4' and If  Input CCCA = 0

Work CCCU = 0

Work CCCA = 0.

Endif

If  Substr(IECOST,0,1) <> 'B'/'A'

Work CCCA = Input TRQT* IESTDC

Work CCCU = Input UORG.

Endif

Read F3102 table using Input DOCO,ITM and COST (=IECOST) as the key

If row found

IGCCCU = Work CCCU

IGCCCA = Work CCCA

Update F3102 row

Else

IGPART = 'P'

IGDOCO = Input DOCO

IGITM  = Input ITM

IGLITM = Input LITM

IGAITM = Input AITM

IGUOM = Input UOM

IGCOST = IECOST

IGCCCU = Work CCCU

IGCCCA = Work CCCA

Load Audit information

Write F3102 row.

Endif


Returns:

If  any errors occur,  the function will return '1' in the Error Code field, and '0' if there are no 
errors.


^

Data Structure

D3100440 - Update WO Current Cost Variance

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentNumberDOCOMATH_NUMERICNONENONE

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.

mnShortItemNumberITMMATH_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

sz2ndItemNumberLITMcharNONENONE

A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
alternative item numbers. The three types of item numbers are: Item Number (short) An 8-digit, computer-assigned item number. 2nd Item Number A 
25-digit, user defined, alphanumeric item number. 3rd Item Number  Another 25-digit, user defined, alphanumeric item number. In addition to 
these three basic item numbers, the system provides an extensive cross-reference search capability. You can define numerous 
cross-references to alternative part numbers. For example, you can define substitute item numbers, replacements, bar codes, customer numbers, or 
supplier numbers.

sz3rdItemNumberAITMcharNONENONE

The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
numbers are as follows: 1.  Item Number (short) - An 8-digit, computer-assigned item number. 2.  2nd Item Number - The 25-digit, free-form, user 
defined alphanumeric item number. 3.  3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item number.  In addition to 
these three basic item numbers, an extensive cross-reference search capability has been provided (see XRT). Numerous cross references to 
alternate part numbers can be user defined, such as substitute item numbers, replacements, bar codes, customer numbers, or supplier 
numbers.

szBranchMMCUcharNONENONE

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.

szUnitOfMeasureUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

mnPrimaryOrderQtyTRQTMATH_NUMERICNONENONE

A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and 
backorders. You enter this value in the Branch/Plant Constants program (P41001).

mnOrderQuantityUORGMATH_NUMERICOPTNONE

The quantity of units affected by this transaction.

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).

mnDirectLaborHoursCTS1MATH_NUMERICNONENONE

The number of unaccounted direct labor hours associated with a specific operation for a work order.

mnDirectLaborCostCTS4MATH_NUMERICNONENONE

The amount of unaccounted direct labor associated with a specific operation for a work order.

mnSetupHoursCTS2MATH_NUMERICNONENONE

The number of unaccounted setup labor hours associated with a specific operation for a work order.

mnSetupCostCTS5MATH_NUMERICNONENONE

The amount of unaccounted setup labor associated with a specific operation for a work order.

mnDirectMachineHoursCTS3MATH_NUMERICNONENONE

The number of unaccounted machine hours associated with a specific operation for a work order.

mnDirectMachineCostCTS6MATH_NUMERICNONENONE

The amount of unaccounted machine dollars associated with a specific operation for a work order.

mnLaborEfficiencyCostCTS4MATH_NUMERICNONENONE

The amount of unaccounted direct labor associated with a specific operation for a work order.

mnFixedMachineOHCostCTS5MATH_NUMERICNONENONE

The amount of unaccounted setup labor associated with a specific operation for a work order.

mnVarMachineOHCostCTS6MATH_NUMERICNONENONE

The amount of unaccounted machine dollars associated with a specific operation for a work order.

mnFixedLaborOHHoursCTS1MATH_NUMERICNONENONE

The number of unaccounted direct labor hours associated with a specific operation for a work order.

mnFixedLaborOHCostCTS4MATH_NUMERICNONENONE

The amount of unaccounted direct labor associated with a specific operation for a work order.

mnVarLaborOHHoursCTS1MATH_NUMERICNONENONE

The number of unaccounted direct labor hours associated with a specific operation for a work order.

mnVarLaborOHCostCTS4MATH_NUMERICNONENONE

The amount of unaccounted direct labor associated with a specific operation for a work order.

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szCostTypeCOSTcharOPTNONE

A code that designates each element of cost for an item. Examples of the cost object types are:   o  A1  Purchased raw material   o  B1  
Direct labor routing rollup   o  B2  Setup labor routing rollup   o  C1  Variable burden routing rollup   o  C2  Fixed burden routing rollup   o  Dx  Outside 
operation routing rollup   o  Xx  Extra add-ons, such as electricity and water  The optional add-on computations usually operate with the type 
Xx extra add-ons. This cost structure allows you to use an unlimited number of cost components to calculate alternative cost rollups. The 
system then associates these cost components with one of six user defined summary cost buckets.

mnSequenceNoOperationsOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

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

Related Functions

B9800100 Get Audit Information

Related Tables

F30026 Item Cost Component Add-Ons
F3102 Production Cost