InitializeF31UI002

Initialize F31UI002

Minor Business Rule

Object Name: B3100820

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This function reads all records of the Variance File F3102 for one Work Order and  Parent Item 

passed. For each reading, it creates or update the User Index F31UI002. A flag is passed back to determine 

if records have been found in F3102 or not.


1.2Setup Notes and Prerequisites

1.3Special Logic


2.Technical Specifications

2.4Processing 


Read F3102 for Work Order passed and Parent/Child = 'P' .
If no record is found, "no record flag = 0

Else

"no record" flag = 1
While it exists,

         Create F31UI002 with Work Order Passed, Item, Cost Type, Standard Amount, Standard 

Units, UOM from F3102, other amounts initialize to zero.


Data Structure

D3100820 - Initialize F31UI002

Parameter NameData ItemData TypeReq/OptI/O/Both
cRecordFoundEV02charNONENONE

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

mnJobNumberJOBSMATH_NUMERICNONENONE

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

szComputerIDCTIDcharNONENONE

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.

szUserIDUSERcharNONENONE

The code that identifies a user profile.

Related Functions

None

Related Tables

F3102 Production Cost
F31UI002 User Index - Variances