GetVariances

Get Variances

Minor Business Rule

Object Name: B3100830

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function gets the Variances from the Work Order Variance File F3102. In mode ' ', it gets the 
record with a complete key. In mode 1, it get the first record following the partial key passed.


1.2Setup Notes and Prerequisites
1.3Special Logic

2.Technical Specifications


2.4 Processing 

First Amount = 0
First Unit = 0

Second Amount = 0

Second Unit = 0

Third Amount = 0

Third Unit = 0


In mode ' ',


Read F3102 with Order Number, Parent/Child, Short Item, Parent/Child and Cost Type passed

If record not found,

Record Found = 0
Else

Record found = 1

Unit of Measure = F3102 Unit of Measure
• If First Transaction Type = "P"
First Amount = F3102 Planned Amount
First Units = F3102 Planned Units

• If First Transaction Type = "A"
First Amount = F3102 Actual Amount
First Units = F3102 Actual Units

• If First Transaction Type = "C"
First Amounts = F3102 Completed Amount
First Units = F3102 Completed Units

• If First Transaction Type = "S"
First Amount  = F3102 Scrap Amount
First Units = F3102 Scrap Units

• If First Transaction Type = "T"
First Amount  = F3102 Standard Amount
First Units = F3102 Standard Units

• If Second Transaction Type = "P"
Second Amount = F3102 Planned Amount
Second Units = F3102 Planned Units

• If Second Transaction Type = "A"
Second Amount = F3102 Actual Amount
Second Units = F3102 Actual

• If Second Transaction Type = "C"
Second Amounts = F3102 Completed Amount
Second Units = F3102 Completed Units

• If Second Transaction Type = "S"
Second Amount  = F3102 Scrap Amount
Second Units = F3102 Scrap Units

• If Second Transaction Type = "T"
Second Amount  = F3102 Standard Amount
Second Units = F3102 Standard Units

•  If Third Transaction Type = "P"
Third Amount = F3102 Planned Amount
Third Units = F3102 Planned Units

• If Third Transaction Type = "A"
Third Amount = F3102 Actual Amount
Third Units = F3102 Actual

• If Third Transaction Type = "C"
Third Amounts = F3102 Completed Amount
Third Units = F3102 Completed Units

• If Third Transaction Type = "S"
Third Amount  = F3102 Scrap Amount
Third Units = F3102 Scrap Units

• If Third Transaction Type = "T"
Third Amount  = F3102 Standard Amount
Third Units = F3102 Standard Units



In mode 1,


Read F3102 with Order Number, Parent/Child, Short Item and Cost type greater than Cost Type passed

If no record found for this Work Order, Parent/Child and Item

Record Found = 0
Else

Record found = 1

Unit of Measure = F3102 Unit of Measure
• Cost Type = F3102 Cost Type
• If First Transaction Type = "P"
First Amount = F3102 Planned Amount
First Units = F3102 Planned Units

• If First Transaction Type = "A"
First Amount = F3102 Actual Amount
First Units = F3102 Actual Units

• If First Transaction Type = "C"
First Amounts = F3102 Completed Amount
First Units = F3102 Completed Units

• If First Transaction Type = "S"
First Amount  = F3102 Scrap Amount
First Units = F3102 Scrap Units

• If First Transaction Type = "T"
First Amount  = F3102 Standard Amount
First Units = F3102 Standard Units

• If Second Transaction Type = "P"
Second Amount = F3102 Planned Amount
Second Units = F3102 Planned Units

• If Second Transaction Type = "A"
Second Amount = F3102 Actual Amount
Second Units = F3102 Actual

• If Second Transaction Type = "C"
Second Amounts = F3102 Completed Amount
Second Units = F3102 Completed Units

• If Second Transaction Type = "S"
Second Amount  = F3102 Scrap Amount
Second Units = F3102 Scrap Units

• If Second Transaction Type = "T"
Second Amount  = F3102 Standard Amount
Second Units = F3102 Standard Units

• If Third Transaction Type = "P"
Third Amount = F3102 Planned Amount
Third Units = F3102 Planned Units

• If Third Transaction Type = "A"
Third Amount = F3102 Actual Amount
Third Units = F3102 Actual

• If Third Transaction Type = "C"
Third Amounts = F3102 Completed Amount
Third Units = F3102 Completed Units

• If Third Transaction Type = "S"
Third Amount  = F3102 Scrap Amount
Third Units = F3102 Scrap Units

• If Third Transaction Type = "T"
Third Amount  = F3102 Standard Amount
Third Units = F3102 Standard Units






^

Data Structure

D3100830 - Get Variances

Parameter NameData ItemData TypeReq/OptI/O/Both
cRecordFoundEV01charNONENONE

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

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

mnItemNumberShortITMMATH_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

cParentChildRelationPARTcharNONENONE

An option that specifies whether the system displays parent records or child records. If you turn on this option, the system displays parent 
records for the address book number entered. Also a field that indicates whether a record is a parent or child. For the field, valid values 
are: P Parent   C Child  

szCostTypeCOSTcharNONENONE

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.

cFirstTransactionTypeEV01charNONENONE

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

mnFirstUnitsOPUNMATH_NUMERICNONENONE

The standard units to produce a given amount of product.

mnFirstAmountOPATMATH_NUMERICNONENONE

The standard amount to produce a given amount of product.

cSecondTransactionTypeEV01charNONENONE

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

mnSecondUnitsOPUNMATH_NUMERICNONENONE

The standard units to produce a given amount of product.

mnSecondAmountOPATMATH_NUMERICNONENONE

The standard amount to produce a given amount of product.

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

cSuppressErrorMessageEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

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.

cThirdTransactionTypeEV01charNONENONE

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

mnThirdUnitsOPUNMATH_NUMERICNONENONE

The standard units to produce a given amount of product.

mnThirdAmountOPATMATH_NUMERICNONENONE

The standard amount to produce a given amount of product.

cModeEV01charNONENONE

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

Related Functions

None

Related Tables

F3102 Production Cost