WorkOrderProcessing

Work Order Processing

Minor Business Rule

Object Name: B3104170

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This business function is used by the Manufacturing Journal Entries UBE (R31802A).  It is called for each work order contained within the UBE data 

selection.  Its purpose is to peform all work order level processing by calling external functions to calculated Production Costs (Planned, Actual 

Completed, and Scrapped) and to peform F0911 Edit Line processing for material issues, reported hours and quantities, and completed and scrapped units.  


Setup Notes and Prerequisites

There are no special prerequisites or setup notes for this function



Technical Specifications

Retrieve the Work Order Company (B0000130)

Initialize the F3102 Variance Cache with existing F3102 table records (B3101630)

If Costing by Work Center (Mfg. Constants Flag)

Load the Work Center Cache (B3003870)

Recalculate the Work Order Restated Quantity

Retrieve the Project Number for the Work Order (F4801T)

If the Work Order is part of a Project

Retrieve the Poject Attributes(N31P0040)

Determine the Subledger and Subledger Type (B0000021)

Call the Material Issues Business Function (B3104180)

Call the Shop Floor Business Function (B3104190)

If the Item is a Process

Call the Co-By Processing Business Function (B3104200)

If the Item is Discrete

Call the Discrete Processing Business Function (B3104210)

Process Order Level Errors and Warnings (BLM0078) and (B0100011)

If Detail Journal Entries are requested and an Edit Line error occurred

Delete all F0911 cache records (B3103040, B0900049, and B3104300) Note: the cache will only contain records for current work order.

If Summarized Journal Entries are requested and an Edit Line error occured

Delete only F0911 cache records for the current work order (B3103040, B0900049, and B3104300) Note: cache will containe records for 

all work orders processed up to this point in the processing.

If Detailed Journal Entries are requested and no Edit Line errors occured, and the report is run in Final Mode

Perform F0911 Edit Doc and F0911 End Doc processing (B0400049)

If in Final Mode and no errors have occured

 Update the Work Order Status (B3100960) 

Clear the Unaccounted Units (B3104260) 

Update the Item Ledger (N3103080) 

Update F3102 (B3101630)


Data Structure

D3104170 - Work Order Processing

Parameter NameData ItemData TypeReq/OptI/O/Both
mnWorkOrderNumberDOCOMATH_NUMERICOPTNONE

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.

mnDocumentNumberDOCMATH_NUMERICOPTNONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szOrderTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

jdGLDateDGJDEDATEOPTNONE

A date that identifies the financial period to which the transaction is to post. The company constants table for general accounting specifies 
the date range for each financial period. You can have up to 14 periods. Generally,period 14 is for audit adjustments.

szDocumentTypeDCTcharOPTNONE

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 

szScrapDocumentTypeDCTcharOPTNONE

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 

szShopFloorDocumentTypeDCTcharOPTNONE

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 

szWorkOrderStatusCodeSRSTcharOPTNONE

A user defined code (00/SS) that describes the status of a work order, rate schedule, or engineering change order. Any status change from 
90 through 99  triggers the system to automatically update the completion date.

cDefaultSubledgerFlagEV01charOPTNONE

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

cSummarizeWithinWOEV01charOPTNONE

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

cSummarizeAcrossWOEV01charOPTNONE

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

cFlexAccountingFlagEV01charOPTNONE

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

cChargeToCCFlageEV01charOPTNONE

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

szErrorMessageIDDTAIcharOPTNONE

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.

mnJobNumberScrapJOBSMATH_NUMERICOPTNONE

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

mnJobNumberCompJOBSMATH_NUMERICOPTNONE

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

mnJobNumberHoursJOBSMATH_NUMERICOPTNONE

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

mnJobNumberIssuesJOBSMATH_NUMERICOPTNONE

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

szPrimaryUOMUOMcharOPTNONE

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

cStockingTypeSTKTcharOPTNONE

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 
types are hard-coded and you should not change them:    0   Phantom item    B Bulk floor stock    C Configured item    E Emergency/corrective 
maintenance    F Feature    K Kit parent item    N Nonstock  The first character of Description 2 in the user defined code table indicates if the item 
is purchased (P) or manufactured (M).

mnAcctingCostQtyACQMATH_NUMERICOPTNONE

An amount that the system uses in the Cost Rollup program to determine the allocation of setup costs. The system totals the setup costs 
and divides the sum by this quantity to determine a unit setup cost. The default is 1.

szParentGLCategoryGLPTcharOPTNONE

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.

mnWorkOrderQtyUORGMATH_NUMERICOPTNONE

The quantity of units affected by this transaction.

szWorkOrderUOMUOMcharOPTNONE

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

szWorkOrderBusinessUnitMCUcharOPTNONE

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.

szWorkOrderSubsidiarySUBcharOPTNONE

A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account.

szWorkOrderBranchMMCUcharOPTNONE

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

mnQuantityScrappedSOCNMATH_NUMERICOPTNONE

The number of units canceled in Sales Order or Work Order Processing, using either the entered or the primary unit of measure defined for 
this item. In manufacturing, this can also be the number of units scrapped to date.

mnUnaccParentUnitsCTS1MATH_NUMERICOPTNONE

The number of unaccounted direct labor hours associated with a specific operation for a work order.

mnParentItemNumberITMMATH_NUMERICOPTNONE

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

szCacheJobNumberJOBNcharOPTNONE

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

szLocationLOCNcharOPTNONE

The storage location from which goods will be moved.

mnBatchNumberICUMATH_NUMERICOPTNONE

A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either 
assign a batch number or let the system assign it using the Next Numbers program.

szBatchTypeICUTcharOPTNONE

A code that specifies the system and type of transactions entered in a batch. The system assigns the value when you enter a transaction. 
Valid values are set up in user defined code table 98/IT. You cannot assign new values. All batch types are hard coded.

cFinalModeEV01charOPTNONE

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

cCurrencyConverYNARCRYRcharOPTNONE

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.

szCompanyCOcharOPTNONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szComputerIDCTIDcharOPTNONE

szUserIdUSERcharOPTNONE

The code that identifies a user profile.

cPrevBatchStatusISTcharOPTNONE

A user defined code (98/IC) that indicates the posting status of a batch. Valid values are: Blank    Unposted batches that are pending 
approval or have a status of approved. A        Approved for posting. The batch has no errors, and is in balance, but has not yet been posted. D       
Posted. The batch posted successfully. E        Error. The batch is in error. You must correct the batch before it can post. P        Posting. The system 
is in the process of posting the batch to the general ledger. The batch is unavailable until the posting process is complete. If errors occur 
during the post, the batch status changes to E (error). U        In use. The batch is temporarily unavailable because someone is working with it, or 
the batch appears to be in use because a power failure occurred while the batch was open.

jdDateDTEJDEDATEOPTNONE

You can enter a date with or without slashes (/) or dashes (-) as separators. If you leave a date entry field blank, the system supplies the 
current date.

mnTimeOfDayTDAYMATH_NUMERICOPTNONE

The computer clock in hours:minutes:seconds.

szProgramIdPIDcharOPTNONE

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.

jdBatchDateDICJJDEDATEOPTNONE

The date of the batch. If you leave this field blank, the system date is used.

szLanguagePreferenceLNPOWcharOPTNONE

The language that you want to use to print reports or documents, or to view information on the form.

mnQuantityCancScrapSOCNMATH_NUMERICOPTNONE

The number of units canceled in Sales Order or Work Order Processing, using either the entered or the primary unit of measure defined for 
this item. In manufacturing, this can also be the number of units scrapped to date.

mnQuantityShippedSOQSMATH_NUMERICOPTNONE

The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this 
item. In the Manufacturing system and Work Order Time Entry, this field can indicate completed or scrapped quantities. The quantity type is 
determined by the type code entered.

mnSummaryJobNumberJOBSMATH_NUMERICOPTNONE

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

mnConversionFactorCONVMATH_NUMERICOPTNONE

The factor that the system uses to convert one unit of measure to another unit of measure.

szParentCostMethodLEDGcharOPTNONE

A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards 
use.

szWorkStationIdJOBNcharOPTNONE

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

cWriteUnitsToJEEV01charOPTNONE

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

cOutsideOpHeaderStackEV01charOPTNONE

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

cPotencyControlEV01charOPTNONE

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

szParentSecondItemNumberLITMcharOPTNONE

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.

szParentThirdItemNumberLITMcharOPTNONE

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.

szStdUOMConversionTFLAcharOPTNONE

Allows you to bypass the item-specific unit of measure and use the standard unit of measure. Valid values are:    blank Use the item-specific 
unit of measure    1       Bypass the item-specific unit of measure and use the standard unit of measure

szWorkOrderStatusSRSTcharOPTNONE

A user defined code (00/SS) that describes the status of a work order, rate schedule, or engineering change order. Any status change from 
90 through 99  triggers the system to automatically update the completion date.

mnDecimalsNDECMATH_NUMERICOPTNONE

The number of digits to the right of the decimal point.

mnStandardPotencySTDPMATH_NUMERICOPTNONE

The percentage of active ingredients normally found in an item.

szChargeToCCMCUcharOPTNONE

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.

szCompDocumentTypeDCTcharOPTNONE

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 

cProcessOrDiscreteEV01charOPTNONE

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

szParentExplanationEXRcharOPTNONE

A name or remark that describes the purpose for using an account or conveys any other information that the user wants about the 
transaction.

cMfgOrPurchaseEV01charOPTNONE

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

cVarianceFlagEV01charOPTNONE

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

cDuplicateJEsEV01charOPTNONE

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

mnProjectNumberPRJMMATH_NUMERICOPTNONE

A number that identifies an EPM project in the system. The project must be set up in the Add/Revise Project program (P31P011).

cChargeToProjectCHPRcharOPTNONE

A code that specifies whether the system charges the work order costs to the project account rather than to a finished goods account. Valid 
values are: 0 Do not charge work order costs to project accounts.    1 Charge work order costs to project accounts using the project G/L class 
code.

cCostByWCEV01charOPTNONE

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

cWCAccrualJEsEV01charOPTNONE

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

cSumWithinWORptEV01charOPTNONE

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

szItemDescriptionDSC1charOPTNONE

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

cSumAcrossWORptEV01charOPTNONE

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

idPPATPointerGENLNGIDOPTNONE

General purpose ID variable.

cIssueGLClassCodeEV01charOPTNONE

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

Related Functions

None

Related Tables

None