F31122BeginDoc

F31122 WO Hours & Quantities Master Business Function

Master Business Function

Object Name: B3101040

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Data Structure

D3101040A - F31122 Begin Doc Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
mnBatchNumberJOBSMATH_NUMERICNONENONE

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

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.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cProcessEditsEV01charNONENONE

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

cCreateCacheEV02charNONENONE

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

szComputerIDCTIDcharNONENONE

cLineActionCodeACTNcharNONENONE

A code that specifies the action that is performed. Valid values are: A Add C Change

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.

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.

szOrderDescriptionDESCcharNONENONE

A description, remark, name, or address.

szBranchPlantMMCUcharNONENONE

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.

szWOStatusCodeSRSTcharNONENONE

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.

mnShortItemITMMATH_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

szF4801UnitOfMeasureUOMcharNONENONE

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

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

szEmployeeNameDL01charNONENONE

A user defined name or remark.

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

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.

cDisplayFlagEV03charNONENONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

cDataDictionaryValidationEV04charNONENONE

PeopleSoft event point processing flag 04.

szPrimaryItemNumberUITMcharNONENONE

A number that the system assigns to an item. It can be in short, long, or third item number format.

szItemDescription1DSC1charNONENONE

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

szItemDescription2DSC2charNONENONE

A second, 30-character description, remark, or explanation.

szDocumentTypeDCTcharNONENONE

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 

cQtyAtOperationFlagEV05charNONENONE

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

cEmployeeRateFlagEV06charNONENONE

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

szCacheNameDSONcharNONENONE

The object name of the data structure used for identifying the error message substitution variables.

Related Functions

B0000021 Format Subledger
B3000150 Get WC Rates Data
B3100110 Verify Routing Exists
B3100310 Get Work Order Data I
B3100340 Get Parts List Detail
B3100450 Verify And Get Routing Instructions
B3100490 Get Next Unique ID For Mfg.
B3100500 Get Generic Rate F00191
B3100520 Update Hours And Quantities
B3100580 Verify And Get WO Time Transactions
B3101140 F3112 Get Previous or Next Operation Sequence
B4000450 Convert Short Item To Long Item
B4000520 Get Item UoM Conversion Factor
B4000670 Get Item Units Of Measure
B4000880 Verify And Get Address Book for OP
B4001040 Get Item Master Description UOM
N1300220 F1301 Retrieve Equipment Billing Rate
X0909 Validate Subledger
X4101 Validate and Retrieve Item Master
X4801T F4801T Get Work Order Master Tag Record
XF4105 Item Cost I/O

Related Tables

F1301 Equipment Rates
F3112 Work Order Routing
F31122 Work Order Time Transactions
F31122EditDoc

F31122EditDoc

F31122 WO Hours & Quantities Master Business Function

Master Business Function

Object Name: B3101040

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

 Part C.F31122EditDoc
Purpose:
Function will read Cache records and perform the following edits until EOF.  

'b7  If Quantity field is not equal to 0 when Type of Hours is equal to 1, 2 or 3, Quantity and UOM 

will be copied to new  Type of Hours = 4 record.  The new record will be added to the Cache. The 

original record will then be updated in the cache to remove the quantity value and UOM.  (P311221 only)

'b7 Audit Info is added to record

'b7 Performs Update to F3112 and Cache.   (P311221 only)

'b7 Validates Qty At Operation for each Grid Row that has not been validated in Edit Line


Setup Notes:

'b7 P311221- Function called on OK Button Pushed Processing if Qty At Operation Flag = '1'.  Set 

Process Edits = Special Edits.  The function will fetch each Cache record and it will Validate the Qty At 

Operation for each record that has a change flag = 0


'b7 P311221- Function called on OK Button Done Processing.  The function will fetch each Cache record 

and it will check if Qty field is not 0 for Type of Hours = 1,2,3.  If this condition is met then a 

Type of Hours = 4 record will be created and the current record will be updated in the Cache.  If 

Update Flag = 1, F3112 will be updated and the Cache record will be updated with Process Code (YST) = "P".  

Error messages will not display.


Special Logic:

none
Function Outline:

I3101040_EditDocInitStructures
Copy to Internal Data Structure: Process Edits, Batch Number, Row Counter, 

 Calling Function = EDIT_DOC
Initialize to zero/blank: Error Message ID, Error Code
I3101040_GetHuser

I3101040_CreateCache

If Input Process Edits = Special Edits and Qty at Operation Flag = 1 and Mode does not = ADD
Note: If in add mode it is not necessary to Validate here because each line has already been

 validated.

//*************************************
// I3101040_ValidateMultiQtyAtOperation

//*************************************

 While Read Cache does not = EOF and Return Code = Success

If Current Cache records Validation Flag does not = 1
If Fetched Order Number does not = Saved Order Number

Load Work Cache Flag = '1'

Else

Copy Current DS to Previous DS and Next DS to Current DS

End If
//********************************
// I3101040_ValidateQtyAtOperation
//********************************

See Edit Line for Code details
End Call to I3101040_ValidateQtyatOperation

End If cache record was not validated in Edit Line

End While 

End Qty at Operation Validation

End Process Edits = Special

While Read Cache does not = EOF and Return Code = Success

//*****************************
// I3101040_EditDocLoadAuditInfo

//*****************************

User ID, Work Station ID, Date Updated, Time Of Day, Batch Number

If Program ID in the Cache is blank 

copy input Program ID
End If
If Cache Explanation = blank
//************************

// I3101040_LoadExplanation
//************************

If Display Flag = 1
Copy Order Description to Explanation

Else

Copy Employee Name to Explanation

End If

End IF

If Update Flag = 1

//*********************

// I3101040_UpdateF3112

//*********************
Call B3100520 - F3112 Update And Quantities

Input: Document Number, Parent Item Number, Branch, Operation Sequence 
  Number, Operation Status, Document Type, Hours Worked, Gross Pay,
  Quantity Shipped, Quantity Scrapped, UOM, Program ID, Super Backflush 

    Flag, Suppress Error, Type of Hours
Output: Error Message ID

If Error Message ID == blank 

Set Output Process Code = 'P'

Else

Set Error 013H - Update Unsuccessful

set Error Flag

End If // F3112 Update Error Blank
End If // Update Flag = 1

If Process Edit = Partial Edit or Full Edit
If Type of Hours = 1, 2, 3 and Quantity does not = blank

//*************************

// I3101040_CreateTypeFour
//*************************

Increment Input Cache Index Number

Set Type of hours = 4

Set Quantity Complete = Input Quantity 

Clear Begin, End Time and Hours

If Update Flag = 1
Call B3100520 - F3112 Update And Quantities
Input: Document Number, Parent Item Number, Branch, 

  Operation Sequence  Number, Operation Status, Document Type,
  Hours Worked, Gross Pay, Quantity Shipped, Quantity Scrapped,

  UOM, Program ID, Super Backflush  Flag, Suppress Error, 

  Type of Hours

Output: Error Message ID
If Error Message ID == blank 

Set Process Code = 'P'

End If

End If // Update F3112

// **********************************
// I3101040_AddRecordtoCache
// **********************************
If Row index = 0

set Error 026P - Addition of Record(s) Failed

set Error Flag

Else

Add Record to Cache

End If

If Add unsuccessful

Set Error 4374 - No Memory

set Error Flag

End If// Unique Key Error Blank

End If// Type of Hours and Qty

End If// Process Edit != 0


If processing successful
I3101040_UpdateRecordToCache

End If 
End While

copy Row Counter to Output


Data Structure

D3101040C - F31122 Edit Doc Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
mnBatchNumberJOBSMATH_NUMERICNONENONE

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

szComputerIDCTIDcharNONENONE

szUserIDUSERcharNONENONE

The code that identifies a user profile.

mnTimeOfDayTDAYMATH_NUMERICNONENONE

The computer clock in hours:minutes:seconds.

jdDateUpdatedUPMJJDEDATENONENONE

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

cUpdateF3112FlagEV02charNONENONE

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

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.

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.

cProcessEditsEV01charNONENONE

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.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

nRowCounterINT01integerNONENONE

Number of Days in Future to Query for Responses Due. 

cDisplayFlagEV03charNONENONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

szCacheNameDSONcharNONENONE

The object name of the data structure used for identifying the error message substitution variables.

cQtyAtOperationFlagEV04charNONENONE

PeopleSoft event point processing flag 04.

nRowNumberErrorINT02integerNONENONE

Number of Days in the Past to Query for Quote Requests Received. 

cPayPointStatusPPRFcharOPTNONE

A code that indicates whether the operation should be taken to a status of complete or partially complete. Valid values are:    Blank Not 
reported    P        Partially complete    C        Completed 

Related Functions

B0000021 Format Subledger
B3000150 Get WC Rates Data
B3100110 Verify Routing Exists
B3100310 Get Work Order Data I
B3100340 Get Parts List Detail
B3100450 Verify And Get Routing Instructions
B3100490 Get Next Unique ID For Mfg.
B3100500 Get Generic Rate F00191
B3100520 Update Hours And Quantities
B3100580 Verify And Get WO Time Transactions
B3101140 F3112 Get Previous or Next Operation Sequence
B4000450 Convert Short Item To Long Item
B4000520 Get Item UoM Conversion Factor
B4000670 Get Item Units Of Measure
B4000880 Verify And Get Address Book for OP
B4001040 Get Item Master Description UOM
N1300220 F1301 Retrieve Equipment Billing Rate
X0909 Validate Subledger
X4101 Validate and Retrieve Item Master
X4801T F4801T Get Work Order Master Tag Record
XF4105 Item Cost I/O

Related Tables

F1301 Equipment Rates
F3112 Work Order Routing
F31122 Work Order Time Transactions
F31122EditLine

F31122EditLine

F31122 WO Hours & Quantities Master Business Function

Master Business Function

Object Name: B3101040

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Data Structure

D3101040B - F31122 Edit Line Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDUKIDMATH_NUMERICNONENONE

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

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.

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

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

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)

mnQuantityGenericQT01MATH_NUMERICNONENONE

Quantity field in the Batch Receiver Destination Quantity table (F4012Z) that is used to process multiple ship to locations. This function is 
only valid for EDI transactions.

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

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

mnHoursHRWMATH_NUMERICNONENONE

The number of hours associated with each transaction.

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

mnEmployeeRateHRTMATH_NUMERICNONENONE

This is the employee's hourly rate as retrieved, entered or calculated during time entry.  (See also GRT, PWRT, BRT.) In the Employee 
Master file, this is the employee's base hourly rate. In the Union Rates file, this is the straight time rate. ***Special Note*** If you change the value 
of the DATA DISPLAY DECIMALS for this field, you must also change the field GRT to have exactly the same data display decimals.

mnEquipmentRateEBRTMATH_NUMERICNONENONE

A code that represents the amount that you want to charge the job. Each piece of equipment can have numerous billing rates based on the 
rate code. The equipment billing rate can be composed of up to ten different rates. For example: Billing Rate = 200        100 Rate 1 (Ownership 
Component)         25 Rate 2 (Operating Component)         50 Rate 3 (Maintenance Component)         25 Rate 4 (Other Costs Component) When 
you post time entries to the general ledger, the system recognizes credits in revenue accounts for each of the rate components. This allows 
you to separate portions of the equipment billing by type of cost. Note: You are not required to use rate components.

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

mnShortItemITMMATH_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

mnBeginTimePBTMMATH_NUMERICNONENONE

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

mnEndTimePETMMATH_NUMERICNONENONE

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

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

szWOStatusCodeSRSTcharNONENONE

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.

szEmployeeNameDL01charNONENONE

A user defined name or remark.

szBusinessUnitMCUcharNONENONE

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.

szBranchPlantMMCUcharNONENONE

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.

cDisplayFlagEV02charNONENONE

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

szExplanationEXRcharNONENONE

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

szOrderDescriptionDSC1charNONENONE

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

mnParentItemNumberKITMATH_NUMERICNONENONE

The system provides for three separate item numbers.    1.   Item Number (short) - An eight-digit, computer assigned, completely 
non-significant item number.    2.   2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3.   3rd Item Number - Another 
25-digit, free form, user defined alphanumeric item number.

sz2ndItemNumberKITLcharNONENONE

The system provides for three separate item numbers.    1.   Item Number (short) - An eight-digit, computer assigned, completely 
non-significant item number.    2.   2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3.   3rd Item Number - Another 
25-digit, free form, user defined alphanumeric item number. This is used in a parts list as either a parent or component number. In the Equipment 
Management system, this item is used for memo purposes only.

sz3rdItemNumberKITAcharNONENONE

The system provides three separate item numbers:    1. Item Number (short) - An eight-digit, computer assigned, completely non-significant 
item number.    2. 2nd Item Number - The 25-digit, free form, user defined alphanumeric item number.    3. 3rd Item Number - Another 25-digit, 
free form, user defined alphanumeric item number.

mnBatchNumberJOBSMATH_NUMERICNONENONE

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

szComputerIDCTIDcharNONENONE

szUserIDUSERcharNONENONE

The code that identifies a user profile.

mnTimeOfDayTDAYMATH_NUMERICNONENONE

The computer clock in hours:minutes:seconds.

jdDateUpdatedUPMJJDEDATENONENONE

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

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.

cProcessEditsEV01charNONENONE

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

cLineActionCodeACTNcharNONENONE

A code that specifies the action that is performed. Valid values are: A Add C Change

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cWriteFlagEV03charNONENONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

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.

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.

cDataDictionaryValidationEV04charNONENONE

PeopleSoft event point processing flag 04.

mnMiscPayEPAYMATH_NUMERICNONENONE

An adjustment amount or extension of hours multiplied by the rate that the user actually enters on the time entry screen. This amount is 
maintained separately from the extended amount computed by the system when the user enters only the hours (or hours and rate). See also 
GPAY.

szF4801UnitOfMeasureUOM1charNONENONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA 
(each) or KG (kilogram).

nCacheRowNumberINT01integerNONENONE

Number of Days in Future to Query for Responses Due. 

szDocumentTypeDCTcharNONENONE

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 

szOperationStatusCodeOPSTcharNONENONE

User defined code system 31, type OS. The operation status code that identifies the current status of a work order or engineering change 
order as the operation steps in the routing are completed.

cQtyAtOperationFlagEV05charNONENONE

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

szCacheNameDSONcharNONENONE

The object name of the data structure used for identifying the error message substitution variables.

mnOldOperationNumberPVSQMATH_NUMERICNONENONE

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

mnOldOrderNumberDOC4MATH_NUMERICNONENONE

A number that identifies a document such as an order number, invoice, etc.

cProcessedCodeYSTcharOPTNONE

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.

cShiftCodeSHFTcharOPTNONE

A user defined code (00/SH) that identifies daily work shifts. In payroll systems, you can use a shift code to add a percentage or amount to 
the hourly rate on a timecard. For payroll and time entry: If an employee always works a shift for which a shift rate differential is applicable, 
enter that shift code on the employee's master record. When you enter the shift on the employee's master record, you do not need to enter the 
code on the timecard when you enter time. If an employee occasionally works a different shift, you enter the shift code on each applicable 
timecard to override the default value.

szLineLINEcharOPTNONE

A number that defines a production line or cell. Detailed work center operations can be defined inside the line or cell.

szUnitNumber_APIDAPIDcharOPTNONE

A 12-character alphanumeric code used as an alternate identification number for an asset. This number is not required, nor does the 
system assign a number if you leave the field blank when you add an asset. If you use this number, it must be unique. For equipment, this is 
typically the serial number.

mnPayrollTransactionNo_PRTRPRTRMATH_NUMERICOPTNONE

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.

mnAssetNumber_NUMBNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

mnEquipmentHours_HREQHREQMATH_NUMERICOPTNONE

The number of hours the unit/rig was operated.

cPayrollFlag_EV01EV01charOPTNONE

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

nPayrollGridRow_INT01INT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

szReasonCodeRCDcharOPTNONE

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.

szActivityCodeACTBcharOPTNONE

The aggregation of actions performed within an organization that are useful for purposes of activity-based costing.

Related Functions

B0000021 Format Subledger
B3000150 Get WC Rates Data
B3100110 Verify Routing Exists
B3100310 Get Work Order Data I
B3100340 Get Parts List Detail
B3100450 Verify And Get Routing Instructions
B3100490 Get Next Unique ID For Mfg.
B3100500 Get Generic Rate F00191
B3100520 Update Hours And Quantities
B3100580 Verify And Get WO Time Transactions
B3101140 F3112 Get Previous or Next Operation Sequence
B4000450 Convert Short Item To Long Item
B4000520 Get Item UoM Conversion Factor
B4000670 Get Item Units Of Measure
B4000880 Verify And Get Address Book for OP
B4001040 Get Item Master Description UOM
N1300220 F1301 Retrieve Equipment Billing Rate
X0909 Validate Subledger
X4101 Validate and Retrieve Item Master
X4801T F4801T Get Work Order Master Tag Record
XF4105 Item Cost I/O

Related Tables

F1301 Equipment Rates
F3112 Work Order Routing
F31122 Work Order Time Transactions
F31122EndDoc

F31122EndDoc

F31122 WO Hours & Quantities Master Business Function

Master Business Function

Object Name: B3101040

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Part D.F31122EndDoc
Purpose:
'b7 Writes Cache records to the F31122.


Setup Notes:

'b7 P311221 - Function called on OK Button Processing Done.  Error Messages will not display.

'b7 P31123  - Function called through Super Backflush Master Business Function.


Special Logic:

none
Function Outline:

I3101040_EndDocInitStructures
Copy to Internal Data Structure: Process Edits, Batch Number, Calling Function = END_DOC
Initialize to zero/blank: Error Message ID, Error Code

I3101040_GetHuser

I3101040_CreateCache


If (Process Edits != '0')

//*****************************

// I3101040_WriteCacheToF31122

//*****************************

Open Table F31122
While Cache does not = EOF

Retrieve record from Cache
If Process Edits = 2
//****************************

// I3101040_LoadF31122Output

//***************************

Load Batch Number, Order Number, Employee Number, Time Of Day, Operation Sequence, 
Parent Item Number, Hours, Employee Rate, Equipment Rate, Gross Pay, Quantity Completed, 

Quantity Scrapped, Status Code, 3rd Item Number, 2nd Item Number, Business Unit, Branch 

Plant, UOM, Order Type, Explanation, User ID, Program ID, Computer ID, Work Date, Date 

Updated, Process Code, Type of Hours

I3101040_FormatTime

Multiply Time fields by 100 to add seconds back
If Unique Key ID is blank
Call B3100490 - Unique Key, Get Next Key for Mfg.
Input: Table Name = F31122, Suppress Error = 1
Output: Unique Key, Error Message ID

If Error Message ID != blank
set Error 4456 - Next Number Failure
set Error Flag

End If 
End If

Add Cache record to F31122
Else // Process Edits does not = 2
Retrieve record from F31122
I3101040_LoadF31122Output  (same as above)

If record  found in F31122
Update record in F31122 with Cache record

If not successful

set Error 013H - Update Unsuccessful
set Error Flag

Else
Add record to F31122 with Cache record
If not successful

set Error 017E - Insert Unsuccessful
set Error Flag

End If
End If// Process Edits  = 2

End While
Close Table

End If// Process Edits does not = 0


If processing Successful

I3101040_Destroy Cache
Copy Batch Number to Key Structure
Delete all records from Cache

Terminate Cache and Work Cache

Close Cursors

End If


Data Structure

D3101040D - F31122 End Doc Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
cProcessEditsEV01charNONENONE

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.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

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.

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.

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.

szCacheNameDSONcharNONENONE

The object name of the data structure used for identifying the error message substitution variables.

Related Functions

B0000021 Format Subledger
B3000150 Get WC Rates Data
B3100110 Verify Routing Exists
B3100310 Get Work Order Data I
B3100340 Get Parts List Detail
B3100450 Verify And Get Routing Instructions
B3100490 Get Next Unique ID For Mfg.
B3100500 Get Generic Rate F00191
B3100520 Update Hours And Quantities
B3100580 Verify And Get WO Time Transactions
B3101140 F3112 Get Previous or Next Operation Sequence
B4000450 Convert Short Item To Long Item
B4000520 Get Item UoM Conversion Factor
B4000670 Get Item Units Of Measure
B4000880 Verify And Get Address Book for OP
B4001040 Get Item Master Description UOM
N1300220 F1301 Retrieve Equipment Billing Rate
X0909 Validate Subledger
X4101 Validate and Retrieve Item Master
X4801T F4801T Get Work Order Master Tag Record
XF4105 Item Cost I/O

Related Tables

F1301 Equipment Rates
F3112 Work Order Routing
F31122 Work Order Time Transactions
F31122UpdatePayrollTransactionNo

F31122UpdatePayrollTransactionNo

F31122 WO Hours & Quantities Master Business Function

Master Business Function

Object Name: B3101040

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

F31122UpdatePayrollTransactionNo  

The purpose of the function is to update records in the cache  as well as in the F31122 tablewith Payroll Transaction Number. The function is called from 

F061161EditDoc, B0500002.c.


Special Logic 


1.Initialize cache.  If the cache is not empty, then open Cursor
2.Cache Fetch Position with partial key where dsCacheKey is loaded with

Batch Number
Order Number

Operation Sequence


3.Loop through the cache and 


if(dsCache.nPayrollGridRow_INT01 == dsInternal.nGridRowNumber_INT01)








Data Structure

D3101040E - F31122 Update Payroll Transaction Number

Parameter NameData ItemData TypeReq/OptI/O/Both
mnBatchNumber_JOBSJOBSMATH_NUMERICOPTNONE

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

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

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

mnGridRowNumber_MATH01MATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

mnPayrollTransactionNo_PRTRPRTRMATH_NUMERICOPTNONE

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.

szErrorMessageID_DTAIDTAIcharOPTNONE

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.

cErrorCode_ERRCERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

Related Functions

B0000021 Format Subledger
B3000150 Get WC Rates Data
B3100110 Verify Routing Exists
B3100310 Get Work Order Data I
B3100340 Get Parts List Detail
B3100450 Verify And Get Routing Instructions
B3100490 Get Next Unique ID For Mfg.
B3100500 Get Generic Rate F00191
B3100520 Update Hours And Quantities
B3100580 Verify And Get WO Time Transactions
B3101140 F3112 Get Previous or Next Operation Sequence
B4000450 Convert Short Item To Long Item
B4000520 Get Item UoM Conversion Factor
B4000670 Get Item Units Of Measure
B4000880 Verify And Get Address Book for OP
B4001040 Get Item Master Description UOM
N1300220 F1301 Retrieve Equipment Billing Rate
X0909 Validate Subledger
X4101 Validate and Retrieve Item Master
X4801T F4801T Get Work Order Master Tag Record
XF4105 Item Cost I/O

Related Tables

F1301 Equipment Rates
F3112 Work Order Routing
F31122 Work Order Time Transactions
eractive 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.

cProcessEditsEV01charNONENONE

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.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

nRowCounterINT01integerNONENONE

Number of Days in Future to Query for Responses Due. 

cDisplayFlagEV03charNONENONE

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

szCacheNameDSONcharNONENONE

The object name of the data structure used for identifying the error message substitution variables.

cQtyAtOperationFlagEV04charNONENONE

PeopleSoft event point processing flag 04.

nRowNumberErrorINT02integerNONENONE

Number of Days in the Past to Query for Quote Requests Received. 

cPayPointStatusPPRFcharOPTNONE

A code that indicates whether the operation should be taken to a status of complete or partially complete. Valid values are:    Blank Not 
reported    P        Partially complete    C        Completed 

Related Functions

B0000021 Format Subledger
B3000150 Get WC Rates Data
B3100110 Verify Routing Exists
B3100310 Get Work Order Data I
B3100340 Get Parts List Detail
B3100450 Verify And Get Routing Instructions