F31UI002UpdateProcessItem

F31UI002 Update Process Item

Minor Business Rule

Object Name: B3101050

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function reads all Co/By's in F31UI002. It accumulates Completed and Scrap Amounts by Cost Type 
and Update or create F31UI002 for the Process Item.




1.2Setup Notes and Prerequisites

1.3Special Logic


2.Technical Specifications


2.4Processing 


Read F31UI002 for the Work Order passed. 


Selection: Read all records for Parent/Child relationship = P  (PART) and Short Item Number 

different than the short Item Number passed.


Sort sequence: Order Number (DOCO), Cost Component (COST).


Accumulate Completed and Scrap Amount:

Total Completed Amount  =  Total Completed Amount + Co/By Completed Amount (CPAT)

Total Scrap Amount = Total Scrap Amount + Co/By Scrap Amount (SLAT)


When there is a break on Cost Component 

Read F31UI002 with 

   Work Order passed (DOCO), Parent/Child Relationship = P (PART), Item Passed (ITM),


Cost Component Break.

If exists,

F31UI002 (CPAT) Completed Amount = Total Completed Amount
F31UI002 (CPUN) Completed Units = 0

F31UI002 (SLAT)  Scrap Amount = Total Scrap Amount

F31UI002 (SLUN)  Scrap Units = 0

Update F31UI002


Else, 

   Create F31UI002 with 

          Work Order passed, Short Item passed, 

          Parent/Child relationship = P, 

          Cost Component of the break, 

          UOM passed, 

          new Completed Amount and Scrap Amount. 


^

Data Structure

D3101050 - F31UI002 Update Process Item

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

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

szParentUnitOfMeasureUOMcharNONENONE

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

szJobNumberJOBNcharNONENONE

The code that identifies the work station ID that executed a particular job.

szComputerIDCTIDcharNONENONE

cSuppressErrorMessagesEV01charNONENONE

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.

szProgramIDPIDcharNONENONE

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.

Related Functions

B9800100 Get Audit Information

Related Tables

F31UI002 User Index - Variances