CheckUpdateF41112

F41112 - Check And Update

Major Business Rule

Object Name: B4100890

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose
 This business function CheckAs Of file (F41112) is used when it changed a quantity or amount value 
in

 Direct As Of Entry. Then this business function check if cumulative quantities and amounts it's 

correct. 


Setup Notes and Prerequisites

The Direct As Of File passes to the business function the index will be used. 
List of fields of the index:

1. DCT
2. ITM

3. MCU

4. LOTN

5. LOCN

6. GLPT

7. CTRY

8. FY 


Special Logic

None

Technical Specifications

When Call Type if equal "1" the business function calculate the cumulative quantity and amount. The 
program read the previous record of  the Item As Of file with the key (DCT, MCU, ITM, LOCN ,LOTN, GLPT, 

CTRY, FY).The previous record must have the same key except the fiscal year. The previous cumulative 

quantity is the sum of all period quantities plus the cumulative quantity of the year. The same thing 

is for previous cumulative amount. If the previous cumulative quantity and amount not equal to 

Variance Amount and Quantity send error message. In all case the business function return with the correct 

cumulative quantity and amount.

When Call Type if equal "2" the business function update the cumulative quantity and amount for all 

next years. The program read all next records of the Item As Of file with the key (DCT, MCU, ITM, LOCN, 

LOTN, GLPT, CTRY, FY).The next records must have the same key except the fiscal year. For this next 

records the cumulative quantity or amounts is the same value plus the Variance Quantity or Variance 

Amount. If next records don't exist, the program doesn't update anyone record and it doesn't send an 

error message.   



^

Data Structure

D4100890 - F41112 - Check and Update F41112

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

mnIdentifierShortItemITMMATH_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

szBusinessUnitMCUcharNONENONE

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.

szLotLOTNcharNONENONE

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

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szGLCategoryGLPTcharNONENONE

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.

mnCenturyCTRYMATH_NUMERICNONENONE

The calendar century associated with the year. Enter is the first two digits of the year. For example, 19 indicates any year beginning with 19 
(1998, 1999), 20 indicates any year beginning with 20 (2000, 2001), and so on.

mnFiscalYearFYMATH_NUMERICNONENONE

A number that identifies the fiscal year. Generally, you can either enter a number in this field or leave it blank to indicate the current fiscal 
year (as defined on the Company Setup form). Specify the year at the end of the first period rather than the year at the end of the fiscal period. 
For example, a fiscal year begins October 1, 1998 and ends September 30, 1999. The end of the first period is October 31, 1998. Specify the 
year 98 rather than 99.

cCallTypeEV01charNONENONE

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

mnAmountVarianceVARAMATH_NUMERICNONENONE

The variance amount of an inventory transaction for an inventory item.

mnQuantityVarianceQTYAMATH_NUMERICNONENONE

The number of units that you adjusted during the receipt routing.

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.

Related Functions

B9800100 Get Audit Information

Related Tables

F41112 Item ASOF File