CallHoursAndQuantitiesMBF

Call Hours and Quantities MBF

Minor Business Rule

Object Name: N3101043

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER


Call Hours And Quantities MBF

Purpose of the function

The purpose of creating the N3101043 function is to simplify the interaction between the Work Order Hours and Quantities MBF and the Payroll 

application.


Call Hours and Quantities MBF function is designed support calling Work Order Hours and Quantities Master Business Function (B3101040).  The 

B3101040 function needs to be called from Payroll Time Entry to validate manufacturing time entry records and to add or update records to the Work 

Order Time Transactions table (F31122).  The NER will process calls depending on a Processing Mode.  



Special Logic


ModeProcessing  = '1'  call F31122BeginDoc.  The F31122BeginDoc is called with a flag cCreateCache equal to '1' which means to create a cache.


ModeProcessing  = '2'  call F31122EditLine.  The  F31122EditLine can be called several times, depending on the information that need to be validated 

and added to the cache.  If input parameters are Hours, Quantity and Equipment Hours, then the Edit Line function will be called three times to 

validate all three pieces separately since Hours, Quantity and Equipment Hours are stored as different type of records in F31122 table.  See Special Logic 

section for details.


ModeProcessing  = '3' and '4'
  call F31122EditDoc and F31122EndDoc accordingly.  The F31122EditDoc function is called to update the cache.  The 
F31122EndDoc is called to update the F31122 table based on the cache.


ModeProcessing  = '5'
  call F31122EndDoc.  The F31122EndDoc is called to only clear all caches.


Data Structure

D3101043 - Call Hours and Quantities MBF

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeProcessing_MODEMODEcharOPTNONE

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

mnBatchNumber_JOBSJOBSMATH_NUMERICOPTNONE

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

cLineActionCode_ACTNACTNcharOPTNONE

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

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.

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

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.

szCacheName_DSONDSONcharOPTNONE

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

szComputerID_CTIDCTIDcharOPTNONE

szProgramId_PIDPIDcharOPTNONE

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.

szUserId_USERUSERcharOPTNONE

The code that identifies a user profile.

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.

mnUKIDEquip_UKIDUKIDMATH_NUMERICOPTNONE

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

mnUKIDQty_UKIDUKIDMATH_NUMERICOPTNONE

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

mnUKIDHours_UKIDUKIDMATH_NUMERICOPTNONE

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

mnEmployeeNumber_AN8AN8MATH_NUMERICOPTNONE

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

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

jdWorkDate_DGLDGLJDEDATEOPTNONE

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.

cTypeOfHours_TYRTYRcharOPTNONE

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)

mnQuantityShipped_SOQSSOQSMATH_NUMERICOPTNONE

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

mnHoursWorked_HRWHRWMATH_NUMERICOPTNONE

The number of hours associated with each transaction.

mnEquipmentHours_HREQHREQMATH_NUMERICOPTNONE

The number of hours the unit/rig was operated.

cShiftCode_SHFTSHFTcharOPTNONE

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.

szUnitOfMeasure_UOMUOMcharOPTNONE

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

mnEmployeeRate_HRTHRTMATH_NUMERICOPTNONE

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.

szOrderType_DCTODCTOcharOPTNONE

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

szOperationStatusCode_OPSTOPSTcharOPTNONE

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.

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.

mnBillingRateEquip_EBRTEBRTMATH_NUMERICOPTNONE

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.

szStatusCodeWo_SRSTSRSTcharOPTNONE

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.

mnAmountGrossPay_GPAYGPAYMATH_NUMERICOPTNONE

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.

mnAmountEntered_EPAYEPAYMATH_NUMERICOPTNONE

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.

szEmployeeName_DL01DL01charOPTNONE

A user defined name or remark.

szBusinessUnit_MCUMCUcharOPTNONE

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.

szDocumentType_DCTDCTcharOPTNONE

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 

szBranchPlant_MMCUMMCUcharOPTNONE

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.

mnItemNumberShort_KITKITMATH_NUMERICOPTNONE

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.

szItemNumber3rd_KITAKITAcharOPTNONE

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.

szItemNumber2nd_KITLKITLcharOPTNONE

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.

szLineIdentifier_LINELINEcharOPTNONE

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

jdDateUpdated_UPMJUPMJJDEDATEOPTNONE

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

nCacheRowNumber_INT01INT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

szVersion_VERSVERScharOPTNONE

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.

mnAssetNumber_NUMBNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

mnPayrollGridRow_MATH01MATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

mnTimeOfDay_TDAYTDAYMATH_NUMERICOPTNONE

The computer clock in hours:minutes:seconds.

szReasonCode_RCDRCDcharOPTNONE

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.

Related Functions

None

Related Tables

None