F3102VarianceCache

F3102 Variance Cache

Major Business Rule

Object Name: B3101630

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

The purpose of this business function is to store/maintain F3102 and F30026 values in a cache.  The 

cache is accessed/updated by R31802 (Manufacturing Accounting Journal Entries).  When R31802 finishes, 

B3101630 is called in mode '4'.  The necessary units and amounts in F3102 are updated with the cache 

amounts and the cache is destroyed.


1.2Setup Notes and Prerequisites

Call B3101630 in Mode '1' to initial the cache with existing F3102 records


2.4Processing 


1.0If the mode of processing MODE is equal to '1' - Initialize the cache with existing F3102 

values

            While Read F3102 is successful

                If it is a "Parent" item

                   Fetch the F30026 record to get the Frozen Cost

                     If the Fetch is successful and them item is not configured

                         Accumulate the Frozen Cost Values

                         Add the record to the Cache

                     Else

                         Add the record to cache

       End If

                Else

                    Add the Record to Cache

                End if

  If Frozen Costs do no exist

      Calculate them and add to cache

  End If

            End While

       End if Mode = '1'


2.0.If the mode of processing MODE is equal to '2' - Read the Cache

If the lpDS->Cost Type is " " 

      Use two keys to fetch the cache (DOCO, ITM)

End if

        End If Mode = '2'


3.0.If the mode of processing MODE is equal to '3' - Update the Cache

Read the cache

If the read is successful

     Update the Cache

Else

     Add to the Cache

End if

         End if Mode = '3'


4.0   If the mode of processing MODE is equal to '4' - Update the table and Delete the cache

While successful cache read

                    Read the cache

      If successful

          Read F3102 with key values from cache

                        If successful

                Update the F3102

         Else

 Add to the F3102

                       End If

      End Successful Cache Read

End While

               Terminate the cache

        End^

Data Structure

D3101630 - F3102 Variance Cache Data Stucture

2.Technical Specifications

2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes
EV01      Mode                         IY      Processing Mode

                                                            1= Initial Cache

                                                            2= Read Cache

                                                            3= Update Cache

                                                            4= Update F3102/Delete                    

                                             Cache

DOCO      Work Order Number            I/OY      Used in cache key

DCTO      Order Type                  I/ON

OPSQ      Sequence No Operations      I/ON

ITM      Short Item Number            I/OY      Used in cache key

LITM      Second Item Number      I/ON

AITM      Third Item Number            I/ON

COST      Cost Type                  I/ON      Used in cache key

PART      Parent/Child RelationshipI/OY      Used in cache key

XTCR      Variance Code            I/ON

OPUN      Standard Units            I/ON

OPAT      Standard Amount            I/ON

CLUN      Actual Units            I/ON

CLAT      Actual Amount            I/ON

CCCU      Current Units            I/ON

CCCA      Current Amounts            I/ON

PLUN      Planned Units            I/ON

PLAT      Planned Amount            I/ON

CPUN      Completed Units            I/ON

CPAT       Completed Amount            I/ON

SLUN      Scrapped Units            I/ON

SLAT      Scrapped Amount            I/ON

CCUU      Current Unaccounted UnitsI/ON

CCUA      Current Unaccounted AmountI/ON

UNPA      Unpostable Units            I/ON

UNPU      Unpostable Amount            I/ON

UOM      Unit of Measure            I/ON

ENGV      Engineering Variance      I/ON

PLNV      Planned Variance            I/ON

VACT       Actual Variance            I/ON

OTHV      Other Variance            I/ON

NETV       Net Variance            I/ON

USER      User ID                  I/ON

PID      Program ID                  I/ON

UPMJ      Data Updated            I/ON

TDAY      Time of Day                  I/ON

JOBN      Job Number                  I/ON

UORG      Order Quantity            I/ON

MMCU      Branch                  I/ON

CONV      Conversion Factor            I/ON

EV01      Manufactured or PurchasedI/ON

ACQ      Accounting Cost QuantityI/ON

GENLNGGeneric Long            I/ON

EV01      Suppress Error Message       I/ON      1 = Suppress 

                                                            " "  = Do Not                             

                                     Suppress

SOQS      Quantity Shipped            I/ONF4801 Amount

STDC      Standard Cost            I/ONF30026 Amount

STKT      Stocking Type            I/ONF4102  Amount



^

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeEV01charOPTNONE

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

mnWorkOrderNumberDOCOMATH_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

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.

mnShortItemNumberITMMATH_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

szSecondItemNumberLITMcharOPTNONE

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.

szThirdItemNumberAITMcharOPTNONE

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.

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.

cParentOrChildPARTcharOPTNONE


cVarianceCodeXTCRcharOPTNONE

Future use

mnStandardUnitsOPUNMATH_NUMERICOPTNONE

The standard units to produce a given amount of product.

mnStandardAmountOPATMATH_NUMERICOPTNONE

The standard amount to produce a given amount of product.

mnActualUnitsCLUNMATH_NUMERICOPTNONE

The actual units to produce a given amount of product.

mnActualAmountCLATMATH_NUMERICOPTNONE

The actual amount to produce a given amount of product.

mnCurrentUnitsCCCUMATH_NUMERICOPTNONE

The current units to produce a given amount of product.

mnCurrentAmountCCCAMATH_NUMERICOPTNONE

The current amount to produce a given amount of product.

mnPlannedUnitsPLUNMATH_NUMERICOPTNONE

Future Use.

mnPlannedAmountPLATMATH_NUMERICOPTNONE

The planned amount to produce a given amount of product.

mnCompletedUnitsCPUNMATH_NUMERICOPTNONE

The units completed for the work order.

mnCompletedAmountCPATMATH_NUMERICOPTNONE

The amount completed for the work order.

mnScrappedUnitsSLUNMATH_NUMERICOPTNONE

The units scrapped for the work order.

mnScrappedAmountSLATMATH_NUMERICOPTNONE

The amount scrapped for the work order.

mnCurrentUnaccountedUnitsCCUUMATH_NUMERICOPTNONE

The current units reported but not yet posted to the general ledger.

mnCurrentUnaccountedAmountCCUAMATH_NUMERICOPTNONE

The current amount reported but not yet posted to the general ledger.

mnUnpostableUnitsUNPUMATH_NUMERICOPTNONE

The current units reported but not yet posted to the general ledger.

mnUnpostableAmountUNPAMATH_NUMERICOPTNONE

A number that specifies the amount of scrap that is unaccounted for and is not reported to the general ledger through the Manufacturing 
Accounting system. The system populates the Unpostable Amount field in the Production Cost table (F3102) with this amount when you complete 
a work order for an actual costed item. When the system writes journal entries, it clears the Unpostable Amount field in the F3102 table.

szUnitOfMeasureAsInputUOMcharOPTNONE

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

mnEngineeringVarianceENGVMATH_NUMERICOPTNONE

This field contains the posted engineering variance amount that is calculated by Variance Journal Entries (P31804) when run in Final mode. 
The calculated amount is equal to the Current Amount minus the Standard Amount. The amount is determined by changes to the bill of 
materials, routing or work center rates after the last cost simulation and update.

mnPlannedVariancePLNVMATH_NUMERICOPTNONE

This field contains the posted planned variance amount, calculated in the last run of P31804 (Final mode). It is equal to Planned amount - 
Current amount It is caused by differences between the parts list and the bill of materials or general routing values and specific work order/rate 
values.

mnActualVarianceVACTMATH_NUMERICOPTNONE

This field contains the posted actual variance amount that is calculated by Variance Journal Entries (P31804) when run in Final mode. The 
calculated amount is equal to the Actual Amount - Planned Amount field. The amount is determined by reporting units or hours which differ from 
the parts list or specific work order/rate values.

mnOtherVarianceOTHVMATH_NUMERICOPTNONE

This field contains the posted other variance amount, which is calculated in the last run of Variance Journal Entries (P31804) when run in 
Final mode. The calculated amount is equal to the Standard amount, minus the Completed amount,plus the scrap amounts. The amount is 
determined by completing quantities different from the accounting cost quantity, over/under completions, and frozen cost changes.

mnNetVarianceNETVMATH_NUMERICOPTNONE

This field contains the posted Net variance amount, calculated in the last run of P31804 (Final mode). It is equal to Actual amount - 
Complete + scrap amount It is caused by reporting units/hours which differ from the standard cost for the item. This is the net variance which will be 
reflected in the accounting entries.

szProgramIdPIDcharOPTNONE

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.

szErrorMsgIDDTAIcharOPTNONE

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.

szCacheJobNumberJOBNcharOPTNONE

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

mnWorkOrderQtyUORGMATH_NUMERICOPTNONE

The quantity of units affected by this transaction.

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.

mnWOConversionFactorCONVMATH_NUMERICOPTNONE

The factor that the system uses to convert one unit of measure to another unit of measure.

mnAcctingCostQtyACQMATH_NUMERICOPTNONE

An amount that the system uses in the Cost Rollup program to determine the allocation of setup costs. The system totals the setup costs 
and divides the sum by this quantity to determine a unit setup cost. The default is 1.

idhCursorGENLNGIDOPTNONE

General purpose ID variable.

cSuppressErrMsgEV01charOPTNONE

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

mnUnitsQuantityShippedSOQSMATH_NUMERICOPTNONE

The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this 
item. In the Manufacturing system and Work Order Time Entry, this field can indicate completed or scrapped quantities. The quantity type is 
determined by the type code entered.

mnStandardCostSTDCMATH_NUMERICOPTNONE

The cost of the item as calculated by the Simulate Cost Rollup program (P30820) and updated by the Frozen Cost Update program 
(P30835). You can also manually maintain this cost.

cStandardCostingFlagEV01charOPTNONE

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

cUpdateStandardEV01charOPTNONE

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

cUpdateActualEV01charOPTNONE

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

cUpdateCurrentEV01charOPTNONE

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

cUpdatePlannedEV01charOPTNONE

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

cUpdateCompletedEV01charOPTNONE

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

cUpdateScrappedEV01charOPTNONE

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

cUpdateUnaccountedEV01charOPTNONE

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

cUpdateUnpostableEV01charOPTNONE

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

cStoreDataPtrEV01charOPTNONE

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

szWorkCenterMCUcharOPTNONE

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.

szWorkCenterBranchWMCUcharOPTNONE

This is the branch/plant to which the work center belongs and must exist in the business unit master (F0006) and branch plant constants file 
(F41001).

cFixedOrVariableQtyFORQcharOPTNONE

A code that indicates if the quantity per assembly for an item on the bill of material varies according to the quantity of the parent item 
produced or is fixed regardless of the parent quantity. This value also determines if the component quantity is a percent of the parent quantity. Valid 
values are:    F Fixed Quantity    V Variable Quantity (default)    %   Quantities are expressed as a percentage and must total 100%For 
fixed-quantity components, the Work Order and Material Requirements Planning systems do not extend the component's quantity per assembly 
value by the order quantity.

mnPercentOfScrapSCRPMATH_NUMERICOPTNONE

The percentage of unusable component material that is created during the manufacture of a particular parent item.  During DRP/MPS/MRP 
generation, the system increases gross requirements for the component item to compensate for the loss. Note: Shrink is the expected loss of 
parent items (and hence, components) due to the manufacturing process. Shrink and scrap are compounded to figure the total loss in the 
manufacture of a particular item. Accurate shrink and scrap factors can help to produce more accurate planning calculations. Enter percentages 
as whole numbers: 5 percent as 5.0

cCostByWorkCenterCWCcharOPTNONE

A code, maintained in the Manufacturing Constants program (P3009), that indicates whether the system tracks cost variances for discrete 
and process items on a summarized level in the Item Cost Component Add-Ons table (F30026) or on a detailed level in the Item Cost 
Component Detail table (F300261). Valid values are: Y Yes. Maintain costs on a detailed level by cost component and work center. N No. Maintain costs 
on a summarized level by cost component only.

Related Functions

None

Related Tables

None