UpdateWOTimeTransactions

Update WO Time Transactions

Minor Business Rule

Object Name: B3100590

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description
The Functional Description section is to be cut from the Word document and pasted into the Notes 
section of the Business Function.


1.1Purpose
To update/add/delete records to the Shop Floor Control WO Time Transactions (F31122).

1.2Setup Notes and Prerequisites

• Set on "Suppress Error Messages" to suppress the runtime error message handling. Otherwise, if an 
error occurs the error message will be displayed on the message line.

• The user passes to the business function the number of the index they want to use and the number of 
key fields within that index that will be used.

List of Indexes:
1. YST, AN8, DGL -(Index 1, Keys 3)
2. YST, USER, UPMJ, PBDT -(Index 2, Keys 4)

3. YST, DOCO, DGL, OPSQ, TYR-(Index 3, Keys 5)

4. PRTR, YST, TYR-(Index 4, Keys 3)

5. YST, SUMR, DOCO, DCTO, OPSQ, TYR-(Index 5, Keys 6)

6. UKID-(Index 6, Key 1)


'b7The file pointer to the F31122 record (GENLNG) will be used if a record needs to be added 

(copied).

'b7The Mode will determine if a record is to be updated, added, or deleted.

Mode 1 - Update the F31122 record retrieved by the index and key combination with the values for 

the designated update fields.

Mode 2 - Add the F31122 record based on the record referenced by the F31122 file pointer.

Mode 3 - Delete the F31122 record retrieved by the index and key combination.


1.3Special Logic

None.

2.Technical Specifications


2.4Processing 


Fetch the Shop Floor Control WO Time Transactions Record corresponding to the index and keys entered 
by the user. 

 

If the fetch failed, the DS Suppress Error Message is not equal to '1', and the Mode is '1' or '3', 

SetGBRError where error message is '0002' ( Record Invalid ).


If the fetch was successful, the DS Suppress Error Message is not equal to '1', and the Mode is '2', 

SetGBRError where the error message is '2463' (Record Exists).


If the fetch was successful and Mode is '1':

Allocate memory for the WO Time Transactions Record.
If Memory Allocation is successful, Assign DS F31122 Pointer = Address of WO Time Transactions 

Record.

If Memory Allocation is not successful, return error messages.

Assign DS Error Message ID = '4365' (No Memory).

If DS Suppress Error Message is not equal to '1', SetGBRError where error message is '4365'.

Update the WO Time Transactions record with the values of PRTR, HRW, PBTM, PETM, SOQS, UOM, TYR, and 

GPAY that are passed in.


If the fetch was successful and Mode is '3':

Delete the WO Time Transactions record.

If the fetch was not successful and the Mode is '2':

Create a record in the WO Time Transactions that is a duplicate of the record pointer passed in.
Change the values in the new record to the values of the PRTR, HRW, PBTM, PETM, SOQS, UOM, TYR, and 

GPAY that are passed in.



Returns:

If the Mode is equal to '1' or '3' and the fetch fails, return Error Message ID '0002' (Record 
Invalid).

If the Mode is equal to '2' and the fetch is successful, return Error Message ID '2463' (Record 

Exists).


^

Data Structure

D3100590 - Update WO Time Transactions

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeMODEcharNONENONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

cSuppressErrorMessagesEV01charNONENONE

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

szIndexDTAIcharNONENONE

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.

szKeysDTAIcharNONENONE

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.

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.

idF31122PointerGENLNGIDNONENONE

General purpose ID variable.

cProcessedCodeYSTcharNONENONE

A code used to indicate whether a payroll transaction has been processed through the payroll cycle.  This value is held within various files 
within the payroll system.  Valid values are: Blank Unprocessed. 1 Processed.   P Processed and checks have been printed (F07350 
Only). ************************************************************ The F07351 contains values as they relate to the printed payment.  For the F07351, valid 
values are: Blank Not Printed. I Interim Printed. 1 Non-Interim Printed.

mnAddressNumberAN8MATH_NUMERICNONENONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

jdWorkDateDGLJDEDATENONENONE

A date that identifies the financial period to which the transaction is to be posted.  The company constants specify the date range for each 
financial period. You can have as many as 14 periods. Generally, period 14 is used for audit adjustments. The system validates this field for 
PBCO (posted before cutoff), PYEB (prior year ending balance), PACO (post after cutoff), and WACO (post way after cutoff) messages.

szUserIDUSERcharNONENONE

The code that identifies a user profile.

jdDateUpdatedUPMJJDEDATENONENONE

The date that specifies the last update to the file record.

jdTimeClockStartPBDTJDEDATENONENONE

Date associated with the time clock start time. The date associated with the ending clock time is the work date.

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

mnOperationSequenceNoOPSQMATH_NUMERICNONENONE

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.

cTypeOfHoursTYRcharNONENONE

A code that indicates the type of time entered. Valid values are:    1   Run Labor Hours    2   Setup Labor Hours    3   Machine Hours    4   
Quantities Completed    5   Quantities Scrapped    9   Miscellaneous (such as piece rate bonus)

mnTransactionNoPRTRMATH_NUMERICNONENONE

A unique number that the system assigns to each timecard. You can use this field in the Time Entry By Job program to retrieve a specific 
timecard for display. This field is also used to tie a timecard to each Actual Burden audit record created for the timecard during the Actual 
Burden Journaling process.

cSummaryRecordSUMRcharNONENONE

Identifies records containing summarized detail information.

szOrderTypeDCTOcharNONENONE

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

mnUniqueKeyIDUKIDMATH_NUMERICNONENONE

This field is a unique number used to identify a record in a file.

mnHoursWorkedHRWMATH_NUMERICNONENONE

The number of hours associated with each transaction.

mnBeginningTimePBTMMATH_NUMERICNONENONE

A field that is used to enter the beginning time of the operation sequence for the work center operation on the routing.

mnEndingTimePETMMATH_NUMERICNONENONE

A field that is used to enter the ending time of the operation sequence for the work center operation on the routing.

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

szUnitOfMeasureUOMcharNONENONE

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

mnMiscPayGPAYMATH_NUMERICNONENONE

The actual gross pay amount for an employee. This amount is different from the distributed gross pay amount used for labour 
distribution. On Work Order Time Entry, use this field to record miscellaneous pay for an employee, such as piece rate bonus.

Related Functions

B4000460 Free Ptr To Data Structure

Related Tables

F31122 Work Order Time Transactions