1.Functional Description
1.1Purpose
This business function accesses a Work Order's parent item Material Cost (A1) or Scrap Cost (A2)
record in the Work Order Cost Variance table F3102, and resets either the material cost amount or the
scrap cost amount to the cost sent into this business function. If a WO Cost Variance record does not
exist for the Work Order, Parent Relationship, Item, and Cost Type, a new row is inserted into the table.
Current Cost amount and Current Units are usually updated, however for Kit or Configured items ('K'
or 'C' stocking type), Standard Cost amount and Standard Units are updated.
1.2Setup Notes and Prerequisites
Prior to execution, total material cost or scrap cost for the WO parent item should be calculated,
usually from initially attached parts list records, and before manufacturing accounting has been
executed, using business function B3100560-UpdateComponentCosts.
Stocking Type should also be sent to the function. Stocking Type controls which cost amount and
unit values should be updated. If the stocking type is Kit "K" or Configured "C", standard amount
(IGOPAT) and standard units(IGOPUN) are updated. For all other stocking types, current amount (IGCCCA) and
current units (IGCCCU) are updated in F3102.
The Cost Type sent in controls which cost type to access and update in the F3102 WO Cost Variance
table. If Cost Type "A1" is sent in, only Material Cost "A1" is updated. If Cost Type "A2" is sent in,
only Scrap Cost "A2" is updated. If both need to be updated, call the function separately for each
cost type. Send in the proper total cost for material or scrap amount.
Additional data sent in includes:
Parent item Unit of Measure
Work Order Number (or rate Schedule Number)
Short, second & third item numbers
1.3Special Logic
This business function updates different amounts and units depending on the data passed in:
(IGCCCU)
For cost type A2: update Scrap cost values for Current Amount (IGCCCA) and Current Units
(IGCCCU)
(IGOPUN)
For cost type A2: update Scrap cost values for Standard Amount (IGOPAT) and Standard Units
(IGOPUN)
2.Technical Specifications
2.4Processing
Item Number (IGITM = Input ITM) and Cost Type (IGCOST = Input COST).
2.If Stocking Type (STKT) = 'K' or 'C'
IGOPUN = Input UORG/* assign standard units
IGCCCU = Input UORG/* assign current units
3.If record was found
IGDOCO=Input DOCO/* Work Order Number
IGITM=Input ITM/* Short Item Number
IGPART=PART='P'/* Parent/Child Relationship
IGCOST=Input COST/* Cost Type
IGLITM=Input LITM/* Second Item
IGAITM= Input AITM/* Third Item
IGUSER=Input USER/* User ID
IGJOBM=Input JOBN/* Job Number
IGUPMJ=Input UPMJ/* Date
IGTDAY=Input TDAY/* Time of Day
IGPID=Input PID/* Program ID (calling program)
D3100750 - Update Material Or Scrap Amount
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnWorkOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
sz2ndItemNumber | LITM | char | NONE | NONE |
A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to
| ||||
sz3rdItemNumber | AITM | char | NONE | NONE |
The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item
| ||||
szCostType | COST | char | NONE | NONE |
A code that designates each element of cost for an item. Examples of the cost object types are:
o A1 Purchased raw material
o B1
| ||||
mnCurrentAmount | CCCA | MATH_NUMERIC | NONE | NONE |
The current amount to produce a given amount of product. | ||||
mnUnitsOrdered | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
szUnitOfMeasure | UM | char | NONE | NONE |
A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box,
| ||||
szUserID | USER | char | NONE | NONE |
The code that identifies a user profile. | ||||
szJobNumber | JOBN | char | NONE | NONE |
The code that identifies the work station ID that executed a particular job. | ||||
jdSystemDate | UPMJ | JDEDATE | NONE | NONE |
The date that specifies the last update to the file record. | ||||
mnTimeOfDay | TDAY | MATH_NUMERIC | NONE | NONE |
The computer clock in hours:minutes:seconds. | ||||
szProgramID | PID | char | NONE | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | NONE |
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
| ||||
cStockingType | STKT | char | NONE | NONE |
A user defined code (41/I) that indicates how you stock an item, for example, as finished goods or as raw materials. The following stocking
|
None |
F3102 Production Cost |