ProcessCPRJobCache

CPR Cache and Other Functions

Minor Business Rule

Object Name: B0700068

Parent DLL: CPAY

Location: Client/Server

Language: C

Function Name: Process CPR Job Cache

Object Name: B0700068


Object Desc: CPR Cache and Other Functions


Parent DLL: CHRM


Location Client/Server


Language: C


Functional Description


Purpose:

This function will create and retrieve valid job classification records into a cache.  The job classification records are first read from the F06923 (valid job 
type/step constant), within the certified payroll register UBE.


Parameters:

Data Item Data Structure Description   I/ORequiredNotes

PID  szJobCodeStepCache     IRequired

MCU  szCostCenter    IRequired

UN  szUnionCode    IRequired

JBCD  szJobCategory    IRequired

JBST  szJobStep    IRequired

CEDT  cCertifiedEditFlag    I/ORequired

AJBC  szAlternateJobCategory    I/ORequired
AJBS  szAlternateJobStep    I/ORequired

EV01  cProcessingMode    IRequired


Related Tables:



Called Functions: 
 

Source NameFunction Name


Error Messages: 
 

Data ItemDescription

3143Cache can not be accessed



Special Logic/Notes:


This function is called in one of two methods.


With the processing mode set to '0', a record will be added/updated to the job type/step cache.  This 

cache contains the list of valid job types and steps.


With the processing mode set to '1', the alternate job category, alternate job step and certified 

edit flag will be returned for a valid job category and step.


^

Data Structure

D0700068A - DS for Process CPR Job Cache

There are two methods to populate the data structure parameters.  The first is when loading a record 
to the cache.  The second is retrieving a record from the cache.


Load record to cache


Job Code Step Cache     - Input

Business Unit           - Input

Union Code              - Input

Job Category            - Input

Job Step                - Input

Certified Edit Flag     - Input

Alternate Job Category  - Input

Alternate Job Step      - Input

Processing Mode         - Input


Retrieve record from cache


Job Code Step Cache     - Input

Business Unit           - Input

Union Code              - Input

Job Category            - Input

Job Step                - Input

Certified Edit Flag     - Output

Alternate Job Category  - Output

Alternate Job Step      - Output

Processing Mode         - Input


^

Parameter NameData ItemData TypeReq/OptI/O/Both
szJobCodeStepCachePIDcharOPTNONE

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.

szCostCenterMCUcharOPTNONE

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.

szUnionCodeUNcharOPTNONE

A user defined code (06/UN) that represents the union or plan in which the employee or group of employees work or participate.

szJobCategoryJBCDcharOPTNONE

A user defined code (07/G) that defines the jobs within your organization. You can associate pay and benefit information with a job type and 
apply that information to the employees who are linked to that job type.

szJobStepJBSTcharOPTNONE

A user defined code (07/GS) that designates a specific level within a particular job type. The system uses this code in conjunction with job 
type to determine pay rates by job in the Pay Rates table.

cCertifiedEditFlagCEDTcharOPTNONE

A code which specifies the type of information to be printed on the Certified Payroll Register for the Job Type and Job Step. The codes are:  
  N Do not print any information related to this Job Type/Job Step on the Certified Payroll Register.    Y Print all information related to this Job 
Type/Job Step on the Certified Payroll Register.    H Print Hours Only for this Job Type/Job Step on the Certified Payroll Register.

szAlternateJobCategoryAJBCcharOPTNONE

A user defined code (system 06, type G) that identifies a job classification that will replace the job type code on certain reports.  A value 
here replaces the code in the Job Type field.

szAlternateJobStepAJBScharOPTNONE

A user defined code (system 06, type G) that identifies a step within the job classification that will replace the job step code on certain 
reports.  A value here replaces the code in the Job Step field.

cProcessingModeEV01charOPTNONE

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

Related Functions

None

Related Tables

None
ProcessCPRTaxDedCache

ProcessCPRTaxDedCache

CPR Cache and Other Functions

Minor Business Rule

Object Name: B0700068

Parent DLL: CPAY

Location: Client/Server

Language: C

Function Name: Process CPR Tax/Ded Cache

Object Name: B0700068


Object Desc: CPR Cache and Other Functions


Parent DLL: CHRM


Location Client/Server


Language: C


Functional Description


Purpose:

This function will create and retrieve tax and deduction records into a cache.  The tax records are first read from the F06166 (pay check history tax ledger), 
within the certified payroll register UBE.  The tdeduction records are read from the F0719 (DBA transaction detail history), within the certified payroll 

register UBE.


Parameters:

Data Item Data Structure Description   I/ORequiredNotes

PID  szTaxDeductionCache     IRequired

EV01  cTaxorDeduction    I/ORequiredRequired on input

TARA  szTaxAreaWork    I/ORequiredRequired on input

PTAX  szPayrollTaxType    I/ORequiredRequired on input

PDBA  mnPayDeductBenAccType I/ORequiredRequired on input

DSCA  szTaxDeductionDescrip    I/ORequired

G301  mnAmountTaxDeduction    I/ORequired
EV01  cProcessingMode    IRequired


Related Tables:



Called Functions: 
 

Source NameFunction Name


Error Messages: 
 

Data ItemDescription

3143Cache can not be accessed



Special Logic/Notes:


This function is called in one of two methods.


With the processing mode set to '0', a record will be added/updated to the tax/deduction cache.  If 

the record being added is a tax record, the PDBA code must be passed in as a zero (0).  If the record 

being added is a  deduction record, TARA and PTAX must be passed in as a blank.b types and steps.  Both 

tax and deduction records use DSCA for their description and G301 for their amount.


With the processing mode set to '1', the tax or deduction description and amount will be returned 

from the cache.  There is no key for lookup into the cache for retrieval purposes.  The function simply 

returns the first record in the cache, and then removes the record from the cache.



^

Data Structure

D0700068B - DS for Process CPR Tax/Ded Cache

There are two methods to populate the data structure parameters.  The first is when loading a record 
to the cache.  The second is retrieving a record from the cache.


Load record to cache


Tax Deduction Cache     - Input

Tax or Deduction        - Input

Work Tax Area           - Input

Payroll Tax Type        - Input

DBA Code                - Input

DBA or Tax Description  - Input

DBA or Tax Amount       - Input

Processing Mode         - Input


Retrieve record from cache


Tax Deduction Cache     - Input

DBA or Tax Description  - Output

DBA or Tax Amount       - Output

Processing Mode         - Input


  ** All other parameters are ignored **


^

Parameter NameData ItemData TypeReq/OptI/O/Both
szTaxDeductionCachePIDcharOPTNONE

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.

cTaxorDeductionEV01charOPTNONE

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

szTaxAreaWorkTARAcharOPTNONE

A code that identifies a geographical location and the tax authorities for an employee work site, including employee and employer statutory 
requirements. In the Vertex payroll tax calculation software, the tax area code is synonymous with GeoCode. To determine the valid codes 
for your location, refer to the documentation for the tax calculation software that you are using.

szPayrollTaxTypePTAXcharOPTNONE

A code that specifies the type of payroll tax being processed. This is a user defined code (07/TX). To set up state minimum wage amounts, 
you must enter MW in this field. To do so, you must first add MW to UDC 07/TX. However, you should not change the codes and definitions 
that J.D. Edwards provides with the software.

mnPayDeductBenAccTypePDBAMATH_NUMERICOPTNONE

A code that defines the type of pay, deduction, benefit, or accrual. Pay types are numbered from 1 to 999. Deductions and benefits are 
numbered from 1000 to 9999.

szTaxDeductionDescriptionDSCAcharOPTNONE

A description for the data items. Enter text in upper and lower case. The system uses this name to search for similar data items. To enter an 
alpha description, follow these conventions: Dates Begin all date fields with the word, Date. Amounts Begin all amount fields with the word, 
Amount. Units Begin all unit, quantity, and volume fields with the word, Units. Name Begin all 30-byte description fields with the word, 
Name. Prompt Begin any Y/N prompting field with the word, Prompt. Address Number  Begin all address numbers (employee, customer, owner) with the 
word, Address Number.

mnAmountTaxDeductionG301MATH_NUMERICOPTNONE

The amount of tax withheld/paid to each tax authority.

cProcessingModeEV01charOPTNONE

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

Related Functions

None

Related Tables

None
RetrieveDayofWeek

RetrieveDayofWeek

CPR Cache and Other Functions

Minor Business Rule

Object Name: B0700068

Parent DLL: CPAY

Location: Client/Server

Language: C

Function Name: Retrieve Day of Week

Object Name: B0700068


Object Desc: CPR Cache and Other Functions


Parent DLL: CHRM


Location Client/Server


Language: C


Functional Description


Purpose:

This function will take a date, and return the numeric day of the week (0-6) and its' corresponding description (Sunday-Saturday).


Parameters:

Data Item Data Structure Description   I/ORequiredNotes

BDOWLD jdDate     IRequired

DOW   mnDayofWeek    O

DS20   szDayofWeekDesc    O



Related Tables:



Called Functions: 
 

Source NameFunction Name


Error Messages: 
 

Data ItemDescription



Special Logic/Notes:



Pass the function a valid date, and the numeric value for day of the week will be returned along with 

the day of the week description.


Day of WeekDay of Week

Numeric ValueDescription

------------------------

0Sunday

1Monday

2Tuesday

3Wednesday

4Thursday

5Friday

6Saturday

Data Structure

D0700068C - DS for Retrieve Day of Week

There is one method to populate the data structure parameters.

Retrieve Day of Week


Date                    - Input

Day of Week             - Output

Day of Week Description - Output


^

Parameter NameData ItemData TypeReq/OptI/O/Both
jdDateBDOWLDJDEDATEOPTNONE

The beginning date of the range in a search. If you do not specify a beginning date, the system uses the current date.

mnDayofWeekDOWMATH_NUMERICOPTNONE

A one digit code that is used to represent the day of the week. This field must be left blank unless you invoice your customer on the same 
day each week. That is, this field is only filled in for the Weekly Invoicing Calculation Rule. This is a user defined code field.

szDayofWeekDescDS20charOPTNONE

A 20 character generic description.

Related Functions

None

Related Tables

None