CalculateCOGSVariance

Compute/Write COGS Variance

Major Business Rule

Object Name: B4302090

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

D4302090B - Calculate Cost of Sales Variance

Parameter NameData ItemData TypeReq/OptI/O/Both
cInvInterface_IVIIVIcharOPTNONE

A code that identifies the type of interface to the Inventory Management system. Valid values are:    Y The dollar or unit value of any activity 
containing this line type will be reflected in inventory. The system also edits the item that you enter to ensure that it is a valid item. Y is the 
default.    A The system recognizes the number that you enter as a G/L account number. The system uses this code in purchasing only.    B The 
system performs edits when using format 4 in purchase order entry.        The system retrieves price data from the inventory tables, but does not 
update the quantity on the purchase order. This code is valid only when you have set the G/L Interface field to Y (yes). Budget checking is 
fully functional when you use this interface code.    D The item in this line is an inventory item that will not affect availability or quantities.    N The 
item is not an inventory item. To verify whether the item exists in the Item Master file, use Inventory Interface N in conjunction with the flag, Edit 
the Item Master for Non-Stock Items.

mnTotalQOH_TQOHTQOHMATH_NUMERICOPTNONE

The total quantity on hand in the primary unit of measure for an item at the beginning of the cycle count.

mnMatchQuantity_UPTDUPTDMATH_NUMERICOPTNONE

The units paid to date on an invoice or voucher.

mnTotalVariance_VARCVARCMATH_NUMERICOPTNONE

The variance in the cost of an item that is written to the cardex record as the result of over- or under- payment at match time.

mnCOGSVariance_VARCVARCMATH_NUMERICOPTNONE

The variance in the cost of an item that is written to the cardex record as the result of over- or under- payment at match time.

cCallingApplication_CALLCALLcharOPTNONE

One-letter character that represents the application that is calling another APPL, NER, or BSFN. For example, "C" can represent 
Commitment Program and "P"can represent Purchasing.

szTransactionUOM_UOMUOMcharOPTNONE

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

mnUPTDInPrimaryUOM_TQCTTQCTMATH_NUMERICOPTNONE

The total quantity counted for the item in all locations.

szPrimaryUOM_UOM1UOM1charOPTNONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA 
(each) or KG (kilogram).

mnItemNumber_ITMITMMATH_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

szBranch_MCUMCUcharOPTNONE

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.

Related Functions

B0000083 Convert Math Numeric to String with Left Zero Pad
B0900049 Journal Entry
B4000350 Retrieve Distribution AAI

Related Tables

F43121 Purchase Order Receiver File
F43121T Purchase Order Receiver Tag File
WriteCOGSVariance

WriteCOGSVariance

Compute/Write COGS Variance

Major Business Rule

Object Name: B4302090

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

D4302090A - Compute/Write COGS  Variance

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompany_KCOOKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

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

szPODocType_DCTODCTOcharOPTNONE

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

szPOSuffix_SFXOSFXOcharOPTNONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

mnLineID_LNIDLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

mnNumberLines_NLINNLINMATH_NUMERICOPTNONE

A number representing the number of lines on either a purchase or sales order. or The number of receivers recorded during the receipts 
process.  This field will be used in Voucher Matching.

mnDocumentNumber_DOCDOCMATH_NUMERICOPTNONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

mnVarianceWithTax_AVCOAVCOMATH_NUMERICOPTNONE

The amount by which the average cost for an item was either increased or decreased due to an over- or under-payment at match time.

mnTotalVariance_VARCVARCMATH_NUMERICOPTNONE

The variance in the cost of an item that is written to the cardex record as the result of over- or under- payment at match time.

mnCOGSVariance_VARCVARCMATH_NUMERICOPTNONE

The variance in the cost of an item that is written to the cardex record as the result of over- or under- payment at match time.

mnCOGSTaxVariance_VARCVARCMATH_NUMERICOPTNONE

The variance in the cost of an item that is written to the cardex record as the result of over- or under- payment at match time.

mnTotalCOGSVariance_VARCVARCMATH_NUMERICOPTNONE

The variance in the cost of an item that is written to the cardex record as the result of over- or under- payment at match time.

cCurrencyProcessingFlag_CRYRCRYRcharOPTNONE

A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use: Codes are:    N Do not 
use multi-currency accounting. Use if you enter transactions in only one currency for all companies. The multi-currency fields will not appear 
on forms. The system supplies a value of N if you do not enter a value.    Y Activate multi-currency accounting and use multipliers to convert 
currency. The system multiplies the foreign amount by the exchange rate to calculate the domestic amount.    Z Activate multi-currency 
accounting and use divisors to convert currency. The system divides the foreign amount by the exchange rate to calculate the domestic amount.

cInvInterface_IVIIVIcharOPTNONE

A code that identifies the type of interface to the Inventory Management system. Valid values are:    Y The dollar or unit value of any activity 
containing this line type will be reflected in inventory. The system also edits the item that you enter to ensure that it is a valid item. Y is the 
default.    A The system recognizes the number that you enter as a G/L account number. The system uses this code in purchasing only.    B The 
system performs edits when using format 4 in purchase order entry.        The system retrieves price data from the inventory tables, but does not 
update the quantity on the purchase order. This code is valid only when you have set the G/L Interface field to Y (yes). Budget checking is 
fully functional when you use this interface code.    D The item in this line is an inventory item that will not affect availability or quantities.    N The 
item is not an inventory item. To verify whether the item exists in the Item Master file, use Inventory Interface N in conjunction with the flag, Edit 
the Item Master for Non-Stock Items.

mnTotalQOH_TQOHTQOHMATH_NUMERICOPTNONE

The total quantity on hand in the primary unit of measure for an item at the beginning of the cycle count.

cPosted_POSTPOSTcharOPTNONE

A code the system uses to determine whether a transaction is available for the post process. Valid codes 
are: Blank Unposted. D Posted. P Posted or posting. Depending on the type of transaction, this code has different meanings. If the code is assigned to an Account Ledger 
record (F0911), it indicates a posted status. If the code is assigned to any other transaction, it indicates that the system attempted to post the 
record but failed, due to an error it encountered.    M Model. The transaciton is a model journal entry.     

jdGLDate_DGJDGJJDEDATEOPTNONE

A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you 
assign to the company record. The system compares the date that you enter on the transaction to the fiscal date pattern assigned to the 
company to retrieve the appropriate fiscal period number, as well as to perform date validations.

szGLExplanation_EXREXRcharOPTNONE

A name or remark that describes the purpose for using an account or conveys any other information that the user wants about the 
transaction.

szComputerID_CTIDCTIDcharOPTNONE

szCallingApplicationName_PIDPIDcharOPTNONE

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.

szUserID_USERUSERcharOPTNONE

The code that identifies a user profile.

mnBatchNumber_ICUICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

szBatchType_ICUTICUTcharOPTNONE

A code that specifies the system and type of transactions entered in a batch. The system assigns the value when you enter a transaction. 
Valid values are set up in user defined code table 98/IT. You cannot assign new values. All batch types are hard coded.

jdBatchDate_DICJDICJJDEDATEOPTNONE

The date of the batch. If you leave this field blank, the system date is used.

mnGLJobNumber_JOBSJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

jdInvoiceDate_IVDIVDJDEDATEOPTNONE

The date the invoice was printed. The system updates this date when you run the invoice print program in the Sales Order Management 
system.

mnJournalEntryLineNo_JELNJELNMATH_NUMERICOPTNONE

A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes.

mnTaxJournalEntryLineNo_JELNJELNMATH_NUMERICOPTNONE

A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes.

szP4314Version_VERSVERScharOPTNONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

szPrimaryUOM_UOM1UOM1charOPTNONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA 
(each) or KG (kilogram).

Related Functions

B0000083 Convert Math Numeric to String with Left Zero Pad
B0900049 Journal Entry
B4000350 Retrieve Distribution AAI

Related Tables

F43121 Purchase Order Receiver File
F43121T Purchase Order Receiver Tag File