InventoryCostChangeEditGL

Inventory Cost Change Edit GL

Minor Business Rule

Object Name: B4100570

Parent DLL: COPBASE

Location: Client/Server

Language: C

Purpose
This function will read all Item Location records(F41021) affected by an inventory cost method change and call the 

F0911FSEditLine B0900049 to edit the journal entry information associated with the new value of the inventory.


Setup Notes and Prerequisites
Prior to calling this function OpenBatch B00000042 will need to be called to retrieve a batch number

The F0911FSBegin Document B0900049 will need to be called prior to calling this function


Data Structure

D4100570 - Inventory Cost Change Edit GL

Data Item Data Structure DescriptionI/O  Required

ITM        ItemNumberShort          I      Y
LITM        SecondItemNumber       I     Y

AITM        ThridItemNumber             I  Y

DSC1        ItemDescription             I    Y

MCU        BranchPlant             I  Y

LOCN        Location                   I      Y

LOTN        LotNumber                   I  Y

CLEV        CostLevel                   I    Y

UNCS        CostDifference             I  Y

UOM        UnitOfMeasure             I  Y 

MODE        ModeOfProcessing       I  Y

DCT        DocumentType             I  Y

EV01        BatchStatus             O  Y

GENLNG  Pointer to Error Link List O  N


^

Parameter NameData ItemData TypeReq/OptI/O/Both
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

szSecondItemNumberLITMcharNONENONE

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.

szThirdItemNumberAITMcharNONENONE

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.

szItemDescriptionDSC1charNONENONE

Brief information about an item; a remark or an explanation.

szBranchPlantMCUcharNONENONE

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.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotNumberLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cCostLevelCLEVcharNONENONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

mnCostDifferenceUNCSMATH_NUMERICNONENONE

The amount per unit, derived by dividing the total cost by the unit quantity.

szUnitOfMeasureUOMcharNONENONE

This should be the Primary UOM from the Item  Master.ab 

^

mnJobNumberJOBSMATH_NUMERICNONENONE

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

szComputerIDTERMcharNONENONE

The workstation ID number.

cRecordWrittenToGLWorkFileEV01charNONENONE

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

cCurrencyControlCRYRcharNONENONE

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.

cF0911ErrorEV01charNONENONE

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

cErrorCodeEV01charNONENONE

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.

cSuppressErrorMessageEV01charNONENONE

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

cAAIProcessingModeMODEcharNONENONE

Mode '1' uses 4134 & 4136 AAI's.  
Mode '2' uses 4172 & 4174 AAI's.   ab 


^

szDocumentTypeDCTcharNONENONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

cBatchStatusEV01charNONENONE

This parameter is used in mode  '2'.ab 

^

cModeEV01charOPTNONE

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

szGlCategoryGLPTcharOPTNONE

A user defined code (41/9) that identifies the G/L offset that system uses when it searches for the account to which it posts the transaction. If 
you do not want to specify a class code, you can enter **** (four asterisks) in this field. You can use automatic accounting instructions (AAIs) to 
predefine classes of automatic offset accounts for the Inventory Management, Procurement, and Sales Order Management systems. You 
might assign G/L class codes as follows:    IN20   Direct Ship Orders    IN60   Transfer Orders    IN80   Stock Sales  The system can generate 
accounting entries based upon a single transaction. For example, a single sale of a stock item can trigger the generation of accounting entries 
similar to the following:         Sales-Stock (Debit) xxxxx.xx     A/R Stock Sales (Credit) xxxxx.xx     Posting Category: IN80             Stock Inventory 
(Debit) xxxxx.xx     Stock COGS (Credit) xxxxx.xx The system uses the class code and the document type to find the AAI.

cFlexAccountingEV01charOPTNONE

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

Related Functions

B0000130 Retrieve Company From Business Unit
B0900049 Journal Entry
B4000150 Get Branch Constants
B4000350 Retrieve Distribution AAI
B4101090 Cache, Process Flex Inventory Accounting
X0903 Fiscal Date Edits +

Related Tables

F0901 Account Master
F41001 Inventory Constants
F41021 Item Location File