CallCustomCalUnitCost

Call Custom Calculate Unit Cost

Minor Business Rule

Object Name: B3900020

Parent DLL: CINV

Location: Client/Server

Language: C

Data Structure

D3900020A - Data Structure for Custom Calc Unit Cost

Parameter NameData ItemData TypeReq/OptI/O/Both
szCurrencyCodeFromCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

szValuationMethodSVVMcharOPTNONE

A two-character abbreviation for the methods that the system uses to determine the value of your company's stock for reporting and 
financial purposes. Examples include:     o FI (FIFO)     o F2 (FIFO Detail by Branch)     o LI (LIFO) When you run the Stock Valuation Extraction 
program, the system updates the Stock Valuation Detail tables for the assigned valuation methods.

mnFiscalYear999999999SVYRMATH_NUMERICOPTNONE

The fiscal year for the period being processed.

mnPeriodNumberCurrentPNCMATH_NUMERICOPTNONE

A number (from 1 to 14) that identifies the current accounting period . The system uses this number to generate error messages, such as 
PBCO (posted before cut off) and PACO (posted after cut off).

szItemPoolITPLcharOPTNONE

A user defined code (41/05) that indicates a group of items that are evaluated using the same set of valuation methods. You assign the item 
pool to the item and then set up valuation methods for the pool using the Pool Valuation Method Maintenance program.

mnIdentifierShortItemITMMATH_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

szCompanyCOcharOPTNONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szCostCenterMCUcharOPTNONE

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.

mnOpeningQuantityOPQTMATH_NUMERICOPTNONE

The Opening Quantity of inventory as calculated according to the Stock Valuation method.

mnAmountOpeningCostOPAMMATH_NUMERICOPTNONE

The extended cost of the opening inventory as defined by the Stock Valuation Method.

mnPeriodPurchasesQuantityPEPQMATH_NUMERICOPTNONE

The quantity of the incoming transactions for the period as defined by the Stock Valuation Method.

mnAmountPeriodPurchasesPEPAMATH_NUMERICOPTNONE

The cost of the incoming transactions for the period as defined by the Stock Valuation Method.

mnPeriodSalesPESLMATH_NUMERICOPTNONE

The quantity of outgoing transactions for the period as defined by the Stock Valuation Method.

mnAmountPeriodOutgoingPOAMMATH_NUMERICOPTNONE

The perpetual outgoing amount to be considered as outgoing inventory for the period.  It is used to determine the Cost of Goods Sold 
Adjustment between the Valuation method (LIFO, FIFO or Weighted Average) and the Perpetual value.

mnClosingQuantityCLQTMATH_NUMERICOPTNONE

The quantity of the closing inventory as defined by the Stock Valuation Method.

mnAmountClosingCLAMMATH_NUMERICOPTNONE

The cost of the closing inventory as defined by the Stock Valuation Method.

jdDtForGLAndVouch1DGLJDEDATEOPTNONE

A date that identifies the financial period to which the transaction is to be posted.  The company constants specify the date range for each 
financial period. You can have as many as 14 periods. Generally, period 14 is used for audit adjustments. The system validates this field for 
PBCO (posted before cutoff), PYEB (prior year ending balance), PACO (post after cutoff), and WACO (post way after cutoff) messages.

mnUnitCostPurchasingAMC3MATH_NUMERICOPTNONE

In the event the organization recognizes a unit cost that should be used other than current unit cost, this special purpose unit cost may be 
used.

szBusFuncNamUnit9BFNUcharOPTNONE

A business function that determines a unit cost for any valuation method within Stock Valuation.  A custom user-defined BSFN or the Stock 
Valuation BSFN can be used.

szErrorCodeDTAIcharOPTNONE

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.

Related Functions

None

Related Tables

None