B3100770CompletionsEditDoc

Work Order Completions MBF

Master Business Function

Object Name: B3100770

Parent DLL: CMFGBASE

Location: Client/Server

Language: C




• 




• 

• 


• 



• 

• 
• 














































































































































































Data Structure

D3100770A - Work Order Completions Edit Doc

Parameters

Data Item Data Structure DescriptionI/ORequiredNotes

EV01      Multi-Location Search CalledIN   Flag indicating P42053                       

                                   

                                                         Multi-Location Search was 

                                                         called.

UOM      Current UOM                  IN   Unit of Measure from WO 

                                                         Master F4801.  If 

                                                         quantity is already 

                                                         converted to primary pass 

                                                         in Item Master Primary 

                                                         Unit of Measure.  If 

                                                         parameter to Retrieve WO 

                                                         Master is '1' ,  Current 

                                                         UOM is retrieved from the 

                                                         WO Master.

UM      Transaction UOM            IY   Unit of Measure from 

                                                         screen.  Can be changed 

                                                         by the user. .  If 

                                                         quantity is already 

                                                         converted to primary pass 

                                                         in Item Master Primary 

                                                         Unit of Measure.

DOCO      Order Number            IY   Unit of Measure from 

                                                         screen WO Master 

                                                         DOCO.

SOQS      Trans Quantity CompletedIY   Quantity Completed, entered by 

                                                         user.  Required if 

                                                         processing completion 

                                                         quantity.

SOCN      Trans Quantity Scrapped      IY   Required is scrap 

                                                         quantity.  Quantity 

                                                         Scrapped, entered by 

                                                         user.  Required if 

                                                         processing scrap 

                                                         quantity.

RTG      Receipt Routing Result      I/ON   Routing Result Blank if 

                                                         not Process Mfg. '1' if 

                                                         Process Mfg.

EV02      Receipt Routing Flag      I/ON   Flag equals '1' if Index 

                                                         Flag, Location, Lot, or 

                                                         Line Number were passed 

                                                         into Interactive program 

                                                         "P31114".

UPIB      Receipt Routing Quantity I/ON   Can be passed in. 

            To Update                                    Quantity to update is 

                                                         retrieved if initiate 

                                                         routing flag is passed in 

                                                         as '1'.

LOTN      Transaction Lot Number      I N   Entered by user/screen 

                                                         value. If parameter to 

                                                         Retrieve WO Master is '1' 

                                                         ,  Transaction Lot Number 

                                                         is retrieved from the WO 

                                                         Master.

LOTS      Transaction Lot Status      IN   Entered by user/screen 

                                                         value.

MCU      Transaction Branch      IN   Entered by user/screen 

                                                         value. If parameter to 

                                                         Retrieve WO Master is '1' 

                                                         ,  Transaction Branch is 

                                                         retrieved from the WO 

                                                         Master.

EV01      Error Condition Exists      ON   Equals '1' if error 

                                                         occurred.

STRX      Transaction Date CompletedIN   Entered by user/screen 

                                                         value. If parameter to 

                                                         Retrieve WO Master is '1' 

                                                         , Transaction Date 

                                                         Completed is retrieved 

                                                         from the WO Master.

RCD      Transaction Reason Code      IN   Entered by user/screen 

                                                         value.

SOQS      Converted Transaction       ON   Transaction Quantity 

            Quantity Completed                           Completed converted to 

                                                         Primary UOM.

SOCN      Converted Transaction       ON   Transaction Quantity 

            Quantity Scrapped                            Scrapped converted to 

                                                         Primary UOM.

LOCN      Transaction Location      I/ON   Entered by user/screen 

                                                         value. If parameter to 

                                                         Retrieve WO Master is '1' 

                                                         , Transaction Location is 

                                                         retrieved from the WO 

                                                         Master.

LOTG      Transaction Lot Grade      IN   Entered by user/screen 

                                                         value. If parameter to 

                                                         Retrieve WO Master is '1' 

                                                         , Transaction Lot Grade 

                                                         is retrieved from the WO 

                                                         Master.

LOTP      Transaction Lot Potency      IN   Entered by user/screen 

                                                         value. If parameter to                       

                                                                                                      

                                                  

                                                         Retrieve WO Master is '1' 

                                                         , Transaction Lot Potency 

                                                         is retrieved from the WO 

                                                         Master.

DGL      General Ledger Date      IN   Entered by user/screen 

                                                         value. Required if 

                                                         processing journal 

                                                         entries.

ICU      Batch Number            I/ON   Required if processing 

                                                         Journal Entries.  Pass 
                                                         into EndDoc to 
                                                         update.
EV10      Suppress Error            IN   Pass in a '1' to suppress 

                                                         executing jdeErrorSet 

                                                         API's.

JOBS      F0911 Job Number            I/ON   Required if processing 

                                                         Journal Entries.  Pass 
                                                         into EndDoc to 
                                                         update.
CTID      Computer ID                  I/ON   Pass into EndDoc to 

                                                         update.
EV02      Initiate Receipt RoutingIN   Pass in a '1' to initiate 

                                                         Receipt Routing.  

                                                         Required for Receipt 

                                                         Routing processing.

VERS      Version Name            IY   Version name is used to 

                                                         retrieve processing 

                                                         options.  If passed in 

                                                         blank "ZJDE0001" will be 

                                                         used.

IST      Batch Status            ON   Required if processing 

                                                         Journal Entries.  Pass 
                                                         into EndDoc to 
                                                         update.
SOQS      Quantity Completed      IN   Process Mfg.  Quantity 

                                                         Completed passed into 
                                                         application.  
SOCN      Quantity Scrapped            IN   Process Mfg.  Quantity 

                                                         Scrapped passed into 
                                                         application.
LOCN      Location                  IN   Process Mfg.  Location 

                                                         passed into 
                                                         application.
LOTN      Lot                        IN   Process Mfg.  Lot Number 

                                                         passed into 
                                                         application.
LNID      Line Number                  IN   Line Number passed into 

                                                         application. This value 

                                                         is used as a key value in 

                                                         the cache to uniquely 

                                                         identify multiple 

                                                         transactions for the same 

                                                         work order. This value 

                                                         can be left zero if only 

                                                         one transaction related 

                                                         to this work order will 

                                                         be processed before the 

                                                         next call to F4801 End 

                                                         Doc.

                                                         Receipt routing may load

                                                         mutliple records to

                                                         cache; most other calls

                                                         load 1 record for each

                                                         call to End Doc call.

EV10      Process Mfg. Flag            I N   Equals '1' if Process 

                                          

Parameter NameData ItemData TypeReq/OptI/O/Both
cMultiLocationSearchCalledEV01charNONENONE

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

szCurrentUOMUOMcharNONENONE

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

szTransactionUOMUMcharNONENONE

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, 
cubic meter, liter, hour, and so on.

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.

mnTransactionQuantityCompletedSOQSMATH_NUMERICNONENONE

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.

mnTransactionQuantityScrappedSOCNMATH_NUMERICNONENONE

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.

cReceiptRoutingResultRTGcharNONENONE

A code to inhibit printing or the routing instructions on the work order.

cReceiptRoutingFlagEV02charNONENONE

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

szReceiptRoutingQtyToUpdateUPIBcharNONENONE

Indicates which quantity field in the Item Location table that the system updates when quantity is moved from one receipt routing operation 
to another. Valid values:        QTTR - Quantity in Transit         QTIN - Quantity in Inspection         QTO1 - Quantity in User-defined Operation 1         
QTO2 - Quantity in User-defined Operation 2        PQOH - Quantity on Hand PREQ - Quantity on Purchase Order

szTransactionLotNumberLOTNcharNONENONE

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

cLotStatusLOTScharNONENONE

A user defined code (41/L) that indicates the status of the lot. If you leave this field blank, it indicates that the lot is approved. All other codes 
indicate that the lot is on hold. You can assign a different status code to each location in which a lot resides on Item/Location Information or 
Location Lot Status Change.

szTransactionBranchMCUcharNONENONE

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.

cErrorConditionExistsEV05charNONENONE

A flag that indicates whether automatic spell check is turned on.

jdTransactionDateCompletedSTRXJDEDATENONENONE

The date that the work order or engineering change order is completed or canceled.

szReasonCodeRCDcharNONENONE

A user defined code (42/RC) that explains the purpose for a transaction. For example, you can indicate the reason that you are returning 
items.

szTransactionLocationLOCNcharNONENONE

The storage location from which goods will be moved.

mnTransactionLotPotencyLOTPMATH_NUMERICNONENONE

A code that indicates the potency of the lot expressed as a percentage of active or useful material (for example, the percentage of alcohol 
in a solution). The actual potency of a lot is defined in the Lot Master table (F4108).

szTransactionLotGradeLOTGcharNONENONE

A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:    A1   Premium 
grade    A2   Secondary grade  The grade for a lot is stored in the Lot Master table (F4108).

mnBatchNumberICUMATH_NUMERICNONENONE

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.

cSuppressErrorsEV01charNONENONE

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

mnF0911JobNumberJOBSMATH_NUMERICNONENONE

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

szComputerIDCTIDcharNONENONE

cInitiateReceiptRoutingEV02charNONENONE

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

szVersionNameVERScharNONENONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cBatchStatusISTcharNONENONE

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.

mnPassedInQuantityCompletedSOQSMATH_NUMERICNONENONE

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.

mnPassedInQuantityScrappedSOCNMATH_NUMERICNONENONE

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.

szPassedInLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szPassedInLotNoLOTNcharNONENONE

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

mnPassedInLineNoLNIDMATH_NUMERICNONENONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

cProcessMfgFlagEV10charNONENONE

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

cRetrieveWOmasterEV01charNONENONE

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

szTransactionStatusSRSTcharNONENONE

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.

mnConvTransQuantityCompletedSOQSMATH_NUMERICNONENONE

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.

mnConvTransQuantityScrappedSOCNMATH_NUMERICNONENONE

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.

mnJobNumberJOBSMATH_NUMERICNONENONE

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

jdLotExpirationDateEXPRJDEDATENONENONE

The expiration date of the log entry. For example, in the case of a submittal requirement for an insurance certificate,, the termination date for 
the policy would be entered in the Expired Date field. The termination date would then be used by the Submittal Status Update program to 
update the status field. If the Expired Date is earlier than the date that you run the program, the system sets the status to N for the log entry.

szMemoLot1LOT1charNONENONE

A higher classification or grouping of serial number or lot processed items,maintained within the Lot Master (F4108).

szMemoLot2LOT2charNONENONE

A higher classification or grouping of memo lot 1 maintained within the lot master (F4108).

cSalesUpdateDetailWarningEV01charNONENONE

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

mnPayPointOPSQOPSQMATH_NUMERICOPTNONE

A number used to indicate an order of succession. In routing instructions, a number that sequences the fabrication or assembly steps in the 
manufacture of an item. You can track costs and charge time by operation. In bills of material, a number that designates the routing step in the 
fabrication or assembly process that requires a specified component part. You define the operation sequence after you create the routing 
instructions for the item. The Shop Floor Management system uses this number in the backflush/preflush by operation process. In engineering 
change orders, a number that sequences the assembly steps for the engineering change. For repetitive manufacturing, a number that 
identifies the sequence in which an item is scheduled to be produced. Skip To fields allow you to enter an operation sequence that you want to begin 
the display of information. You can use decimals to add steps between existing steps. For example, use 12.5 to add a step between steps 
12 and 13.

mnPrevMatlOperSeqNumberPVSQMATH_NUMERICOPTNONE

Previous Sequence Number is used to store the previous pay point's Operation Sequence Number.

cMonthWeekDayHourMWDHcharOPTNONE

A code that determines the frequency of the schedule. Valid values are:    1   Monthly    2   Weekly    3   Daily    4   Per Shift (for future use)

mnWarehouseLineNumberLDSQMATH_NUMERICOPTNONE

The sequence number that identifies a record in the Location Detail table (F4602). The system uses this number to distinguish between the 
diffferent pallets, cases, and so forth, for the same item in the same location.

mnF3111JobNumberJOBSMATH_NUMERICOPTNONE

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

mnSecondaryQtyCompletedSSOQMATH_NUMERICOPTNONE

The number of units that have been completed, expressed in the secondary unit of measure.

szSecondaryUnitOfMeasureUOM2charOPTNONE

A user defined code (00/UM) that indicates an alternate unit of measure for the item.

cCalledFromSuperBackflushEV01charOPTNONE

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

jdLotEffectiveDateDLEJJDEDATEOPTNONE

The date on which a lot becomes available. The system uses this date for availability and commitment processing to indicate that the lot is 
available on or after the date that you specify. You must complete this field when inventory first becomes an on-hand quantity for the lot. If you 
leave this field blank, the system calculates the effective date of the lot by using the value for Effective Days in the Item Branch File table 
(F4102) or the current date if the value for Effective Days is zero.

jdSellByDateSBDJJDEDATEOPTNONE

The date by which a lot should be completely sold. The system uses this date as a "through" date for commitment processing. The system 
calculates the sell by date using the value in the Sell By Days field, which is contained in the Item Branch File table (F4102), when inventory 
becomes available on-hand.

jdBestBeforeDateBBDJJDEDATEOPTNONE

The last date on which the products in a lot should be consumed. The system calculates the date by retrieving the value from the Best 
Before Days field in the Item Master program (P4101). You can also use this date as a "through" date for commitment processing. You can 
commit a lot by this date by using the Commitment Date Method field in the Item Branch program (P41026).

jdBasedOnDateBODJJDEDATEOPTNONE

The date that the system uses in conjunction with the shelf life days to calculate the lot expiration date. You can enter this date during 
inventory completions. In addition to calculating the lot expiration date, the system uses the date that you enter in this field to calculate the following 
lot dates:   o Sell By Date   o Best Before Date   o Lot Effectivity Date   o User Lot Date 1   o User Lot Date 2   o User Lot Date 3   o User Lot Date 
4   o User Lot Date 5

jdUserLotDate1U1DJJDEDATEOPTNONE

A date that the system can use as a through date for commitment processing. The system stores this date in the Lot Master table (F4108). If 
you leave this field blank, the system can calculate the date by using the value for the User Lot Date 1 Default Days field, which is stored in 
the Item Branch File table (F4102).

jdUserLotDate2U2DJJDEDATEOPTNONE

A user-defined date that can be used for commitment purposes and is stored in the Lot Master table (F4108). Similar to the Lot Expiration 
Date, User Lot Date 2 is a through date for commitment processing. The User Lot Date 2 commitment option is available in the Commitment 
Date Method in the Item Branch table (F4102). The system uses the User Lot Date 2 Default Days from the Item Branch table (F4102) to 
calculate User Lot Date 2 when inventory first goes on hand.

jdUserLotDate3U3DJJDEDATEOPTNONE

A user-defined date that can be used for commitment purposes and is stored in the Lot Master table (F4108). Similar to Lot Expiration Date, 
User Lot Date 3 is a through date for commitment processing. The User Lot Date commitment option is available in the Commitment Date 
Method in the Item Branch table (F4102). The system uses the User Lot Date 3 Default Days from the Item Branch table (F4102) to calculate User 
Lot Date 3 when inventory first goes on hand.   

jdUserLotDate4U4DJJDEDATEOPTNONE

A user-defined date that can be used for commitment purposes and is stored in the Lot Master table (F4108). Similar to Lot Expiration Date, 
User Lot Date 4 is a through date for commitment processing.   The User Lot Date commitment option is available in the Commitment Date 
Method in the Item Branch table (F4102). The system uses the User Lot Date 4 Default Days from the Item Branch table (F4102) to calculate 
User Lot Date 4 when inventory first goes on hand.

jdUserLotDate5U5DJJDEDATEOPTNONE

A user-defined date that can be used for commitment purposes and is stored in the Lot Master table (F4108). Similar to Lot Expiration Date, 
User Lot Date 5 is a through date for commitment processing.   The User Lot Date 5 commitment option is available in the Commitment Date 
Method in the Item Branch table (F4102). The system uses the User Lot Date 5 Default Days from the Item Branch table (F4102) to calculate 
User Lot Date 5 when inventory first goes on hand.

mnLastComponentNoBCPNBMATH_NUMERICOPTNONE

A number that specifies how the system displays the sequence of components on a single-level bill of material. This number initially 
indicates the sequence in which a component was added to the bill of material. You can modify this number to change the sequence in which the 
components appear.

mnLastComponentNoCCPNBMATH_NUMERICOPTNONE

A number that specifies how the system displays the sequence of components on a single-level bill of material. This number initially 
indicates the sequence in which a component was added to the bill of material. You can modify this number to change the sequence in which the 
components appear.

szUniqueConfigurationIDCFGSIDcharOPTNONE

An identifier that represents a unique configuration. It is generated from an encryption algorithm.  Regardless of the number of segments or 
levels in the configured item, the system always converts the information into a 32-character digest. The digest is always a full 32 characters 
in length, consists of numbers and characters, and does not contain any blanks. You cannot determine the initial value from the digest, and it 
has no significant meaning.

szProgrmIdPIDcharOPTNONE

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

B0000130 Retrieve Company From Business Unit
B3100610 WO Variance Cost Roll Up
B3100620 Update F4111 Issues Records
B3103120 SO Detail Cache
B4000260 Line Type - Activity Rules
B4000310 Location Information
B4000520 Get Item UoM Conversion Factor
B4000610 Get Lot Master By Lot Number
B4000750 Get Item Branch Grade Potency
B4000920 Get Item Branch Mfg Data
B4000930 Update F4102 MRP Net Chg
B4100040 Write Cardex Record
B4100280 Get Item Location Detail
B4200210 Get F4211 Detail Information
B4200260 Write Sales History Or Ledger
B4200330 Update Misc F4211 Fields
X0010 Next Numbers
X4101 Validate and Retrieve Item Master
X4108 Lot Master Update
X41DUP Verify Duplicate Lot
X41LOT Assign Lot Number
XF41021 Update F41021 Locations
XF4105 Item Cost I/O
XF4106 Base Price Item

Related Tables

F0006 Business Unit Master
F3102 Production Cost
F3111 Work Order Parts List
F3201 Configurator Master Table
F3211 Configurator Segment Detail
F3215 Configurator Component Table
F40203 Order Activity Rules
F41001 Inventory Constants
F4101 Item Master
F4102 Item Branch File
F41021 Item Location File
F4105 Item Cost File
F4106 Item Base Price File
F4108 Lot Master
F4111 Item Ledger File
F4211 Sales Order Detail File
F42199 S.O. Detail Ledger File
F4801 Work Order Master File
F4801T Work Order Master Tag File
F4801Z1 Outbound Work Order Header
B3100770CompletionsEndDoc

B3100770CompletionsEndDoc

Work Order Completions MBF

Master Business Function

Object Name: B3100770

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Functional Description

Purpose

• 

This function will update the WO Master record with the Completion and/or Scrapped amounts.
•  It will also update the F4102, F41021, F4108, F4111.
'b7
Setup Notes and Prerequisites

• 
This function will be called from the OK Button Processing Done event of the Work Order 
Completions Fix/Inspect form.

• If the Multi-Location Search flag is on then the ER should call this function from within a 
While loop that retrieves all the records generated by Multi-location Search (P42053). After each 

record is retrieved, the ER should check that the record's Quantity Completed (SOQS) is not zero 

before calling the function.

'b7

Special Notes
• 
Underline text is additional editing for Plant Equipment Completions program P31112.
• Strikethrough text represents editing removed because it is duplicate editing contained in 
call to XT4111Z1.  Additional parameters added or any other changes related to XT4111Z1 call are 

represented by bold-italics.

• Process Manufacturing represented by italics.
• A71 to A73 Conversion represented in Blue text.
'b7Technical Specifications

//  Load Work Order Master (F4801) fields to update.


       Cache is read sequentially; perform the following for each record retrieved for this work 

order:

Values are copied from the cache record.

Load the WO Master Date Update (UPMJ) with the system date.
If the Transaction Date Completed is not blank then

Load the WO Master Date Completed (STRX) with the Transaction Date Completed.

Else

Load the WO Master Date Completed with the system date.

If the Transaction Status is not blank then

Load the WO Master Status (SRST) with the Transaction Status.

Load the WO Master Document Type (DCT) with the Inventory Completion Document Type (from 

processing options).

Move Calculated Quantity Completed passed in to W.O. Master Quantity Completed (SOQS).

Move Calculated Quantity Scrapped passed in to W.O. Master Quantity Scrapped (SOCN).

Move Calculated Unaccounted Labor Hours passed in to W.O. Master Unaccounted Labor Hours 

(CTS1).

// Warehouse Processing - This processing will be added when Warehouse Modules are complete

//  (FUTURE)


If Equipment Flag = '1', then

Call X4602 (Location Detail Update)
Call X46002 (Convert to Unit of Measure Structure)

Call X46170 (Create Requests)

If negative receipt call P4605 (Location Detail Selection)

If putaway mode is '1' or '2', retrieve F4600 record, while records exist convert 
requested 

quantity and add to workfield.
Call X46140R (Reverse Receipt/Request)

Call P4605 (Location Detail Selection) in mode '2'.

Else
If Receipt Routing flag is on, or Receipt Routing Result is not '1', or Receipt Routing 
Result is '1' and Receipt Routing Qty to Update is 'PQOH' then

Warehouse Processing.

End


// Update WO Master Record


Update the WO Master (F4801).


// Update Sales Order Detail Record


    If Equipment Flag  not equal to '1' and Process Mfg Flag not equal to '1', then

If Receipt Routing Result (RTG) is not '1' or the Receipt Routing Result is '1' and the Receipt 

Routing Quantity To Update (UPIB) is equal to 'PQOH' then

If Update Sales Detail (from processing options) is '1', SO Detail Update Warning flag is 

blank, and the WO Master Related Order Number is not blank or zero then

Load the SO Detail (F4211) Lot Number with the Saved Lot Number.

If the Update Sales Detail is '1' or the Update Sales Next Status is '1' then

Copy Sales Detail Next Status (NXTR) and Last Status (LTTR) to F4211.

Update the Sales Detail with Update Misc F4211 Fields (B4200330.C) using the 

WO Master Related Order Number, Related Order Type, Related Key Company, and Line Number 

as key fields.

If the Status Flow (F40205) Ledger Record (WRTH) is 'Y' and no errors returned on 

the SO Detail update then

Call Get F4211 Detail Info. 

Write the Sales Ledger (F42199) record with Write Sales Ledger or 

History (B4200260.C).

     End.


// Update Configured String History - When XF3294 is complete call will be added.


     If Equipment Flag not equal to '1' and Process Mfg. Flag not equal to '1', then

Update Configured String History File

If Item Branch Stocking Type is 'C' and WO Master Related Order Number is not blank and not 

zero then

Call Configured String History (XF3294) server with WO Master Related Order Number, 

Related Order Type, Related Key Company, and Line Number.

If record was found then

Scrub the Transaction Lot Number to Configured String's Lot Number and Update 

F32943 table.
End

End

     End.


// Receipt Routing Negative Completion - Editing added when X43092C is complete.


If Equipment Flag not equal to '1' and Process Mfg Flag not '1', then

If the Receipt Routing Negative Completion flag is '1' then

Call X43092C.

End


// Call Putaway Request - When X46170 is complete, update added.


Call Putaway Request (X46170) when completed.


// Call XT4111Z1 End Doc


    If Process Mfg. Flag not '1'

If WO Master Status (SRST) is '99' and WO Master Quantity Ordered (UORG) is not equal to WO 
Master Quantity Completed (SOQS) then

XT4111Z1 End Doc - UpdateMRPNetChange= '1'.

If Equipment Flag is '1' or Create Journal Entries PO is '1', then
XT4111Z1 End Doc - Process Journal Entries = '1';
XT4111Z1 End Doc - Write Cardex Record = '1';
XT4111Z1 End Doc - Computer ID= Computer ID passed in. 

XT4111Z1 End Doc - Document Number = Document Number passed in.

XT4111Z1 End Doc - F0911 Job Number  = F0911 Job Number passed in.

XT4111Z1 End Doc - Batch Number= Batch Number passed in.

XT4111Z1 End Doc - Batch Status= Batch Status passed in.

XT4111Z1 End Doc - Process Close Batch= '1'.

XT4111Z1 End Doc - Job Number= Job number passed in.


Call XT4111Z1 End Doc.

Call XT4114Z1 Clear Work File.
    End



Data Structure

D3100770B - W. O. Completions End Doc

Parameters
Data Item Data Structure DescriptionI/ORequiredNotes

EV01      Multi-Location Search CalledI   '1' if Multi-Location                                                                                       

                                                                 

                                                                                                                                                       

(P42053) was called.
DOCO      Document Number            IY   Entered by user/screen 

                                                                                                                                                        

value.
CTID      Computer ID                  IY   From Edit Doc for key to 

                                                                                                                                                        
workfile
JOBS      F0911 Job Number            I   Generated in EditDoc if 

                                                                                                                                                        
creating journal 
                                                                                                                                                        
entries.
ICU      Batch Number            I   Generated in EditDoc if 

                                                                                                                                                        
creating journal 
                                                                                                                                                        
entries.
IST      Batch Status            I   Generated in EditDoc if 

                                                                                                                                                        
creating journal 
                                                                                                                                                        
entries.
JOBS      Job Number                  IY   Generated in 

                                                                                                                                                        
EditDoc.
JOBS        mnF3111JobNumber              I     N        Job Number required for blind material 

issues.

^

Parameter NameData ItemData TypeReq/OptI/O/Both
cMultiLocationSearchCalledEV01charNONENONE

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

mnDocumentNumberDOCOMATH_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.

mnF0911JobNumberJOBSMATH_NUMERICNONENONE

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

szComputerIDCTIDcharNONENONE

mnBatchNumberICUMATH_NUMERICNONENONE

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.

cBatchStatusISTcharNONENONE

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.

mnJobNumberJOBSMATH_NUMERICNONENONE

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

szVersionVERScharNONENONE

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cClearCacheOnlyEV01charOPTNONE

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

szTransactionTypeTYTNcharOPTNONE

The qualifier used to identify a specific type of transaction.

cSubSystemUBEEV01charOPTNONE

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

mnF3111JobNumberJOBSMATH_NUMERICOPTNONE

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

Related Functions

B0000130 Retrieve Company From Business Unit
B3100610 WO Variance Cost Roll Up
B3100620 Update F4111 Issues Records
B3103120 SO Detail Cache
B4000260 Line Type - Activity Rules
B4000310 Location Information
B4000520 Get Item UoM Conversion Factor
B4000610 Get Lot Master By Lot Number
B4000750 Get Item Branch Grade Potency
B4000920 Get Item Branch Mfg Data
B4000930 Update F4102 MRP Net Chg
B4100040 Write Cardex Record
B4100280 Get Item Location Detail
B4200210 Get F4211 Detail Information
B4200260 Write Sales History Or Ledger
B4200330 Update Misc F4211 Fields
X0010 Next Numbers
X4101 Validate and Retrieve Item Master
X4108 Lot Master Update
X41DUP Verify Duplicate Lot
X41LOT Assign Lot Number
XF41021 Update F41021 Locations
XF4105 Item Cost I/O
XF4106 Base Price Item

Related Tables

F0006 Business Unit Master
F3102 Production Cost
F3111 Work Order Parts List
F3201 Configurator Master Table
F3211 Configurator Segment Detail
F3215 Configurator Component Table
F40203 Order Activity Rules
F41001 Inventory Constants
F4101 Item Master
F4102 Item Branch File
F41021 Item Location File
F4105 Item Cost File
F4106 Item Base Price File
F4108 Lot Master
F4111 Item Ledger File
F4211 Sales Order Detail File
F42199 S.O. Detail Ledger File
F4801 Work Order Master File
F4801T Work Order Master Tag File
F4801Z1 Outbound Work Order Header