UpdateStatusCodesForPayCyclePara

Update status codes for Pay Cycle Parameters

Minor Business Rule

Object Name: N0700035

Parent DLL: CPAY

Location: Client/Server

Language: NER

Functional Description

Purpose

The purpose of this NER is to update the Pay Cycle Parameters file status codes (PPST, CHKS, ADEF, 
JEST, ROST,FUST and ADAS) with the proper status code depending upon the processing code entered.  The 

file can be updated in different ways.  To access an existing record the Payroll ID (PAYD) is used as 

the key.  A Processing Mode (EV02) should also be selected as well, if this is left blank the NER will 

show an error.


The Processing Mode (EV01) will have the following codes passed into it for processing:

'0 or Null' Error, no record is updated

'1' Update the Pre-payroll status code

'2' Update the Check status code

'3' Update the Auto Deposit status code

'4' Update the Journal status code

'5' Update the Reports Only status code

'6' Update the Final Update status code

'7' Update the Auto Deposit advice Status

The Return Code (EV01) will have the following codes returned:

'0' Record does exist 

'1' Record does not exist



Setup Notes and Prerequisites


Special Logic




Technical Specification


Parameters


Data Item Data Structure DescriptionI/ORequiredTableNotes

PAYDszPayrollIDIYPayroll ID

PPSTcPrePayrollStatusONPre-Payroll Status

CHKScCheckStatusONCheck Status

ADEFcAutoDepositStatusONAuto Deposit Status 

JESTcJournalEntryStatusONJournal Entry Status

ROSTcReportsOnlyStatusONReports Only Status 

FUSTcFinalUpdateStatusONFinal Update Status

ADAScAutoDepositAdviceStatusONAuto Deposit Advice 

EV01cReturnCodeONReturn Code

EV02cProcessingModeIYProcessing Mode


Related Tables/Business Views


Table Table Description
F07210Pay Cycle Parameters


Processing 


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

//     Update the Status Codes of F07210

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

// 

If BF cProcessingMode is equal to "1" 

F07210.Update
If SV File_IO_Status is equal to CO ERROR 

BF cReturnCode = "1"
End If
Else
If BF cProcessingMode is equal to "2" 
F07210.Update
If SV File_IO_Status is equal to CO ERROR 

BF cReturnCode = "1"
End If
Else
If BF cProcessingMode is equal to "3" 
F07210.Update
If SV File_IO_Status is equal to CO ERROR 

BF cReturnCode = "1"
End If
Else
If BF cProcessingMode is equal to "4" 
F07210.Update
If SV File_IO_Status is equal to CO ERROR 

BF cReturnCode = "1"
End If
Else
If BF cProcessingMode is equal to "5" 
F07210.Update
If SV File_IO_Status is equal to CO ERROR 

BF cReturnCode = "1"
End If
Else
If BF cProcessingMode is equal to "6" 
F07210.Update
If SV File_IO_Status is equal to CO ERROR BF 
cReturnCode = "1"

      End If
Else

       If BF cProcessingMode is equal to "7" 

    F07210.Update
   If SV File_IO_Status is equal to CO ERROR BF 
cReturnCode = "1"

   End If
          End If

             End If
            End If
            End If
            End If
           End If



^

Data Structure

D0700035 - Update status codes for Pay Cycle Parameters

Parameter NameData ItemData TypeReq/OptI/O/Both
szPayrollIDOWPAYDcharOPTNONE

A code that identifies a group of employees for whom you are processing payroll. Use this ID to process each step of the payroll 
cycle. This code is also used to identify the interim ID that you select when you enter interim payments.

cPrePayrollStatusPPSTcharOPTNONE

A code that indicates the current status of pre-payroll processing for this payroll cycle. Valid values are:    Blank Not executed for this payroll 
ID    A        Active or in the job queue    1       Completed    E       Canadian Corporate Tax ID not set up    S       Scheduling lock You cannot 
change the status of pre-payroll processing to complete.

cCheckStatusCHKScharOPTNONE

A code that indicates the current status of the checks for this payroll cycle. Valid values are:    Blank Not executed for this payroll ID, or no 
checks exist for this payroll ID    A        Active    0       Ready to Print    1       Completed

cAutoDepositStatusADEFcharOPTNONE

A code that indicates the current status of the automatic deposits for this payroll cycle. Valid values are:    Blank Not executed for this payroll 
ID, or no automatic deposits exist for this payroll ID    1       Completed    A       Active, or in the job queue    S      Scheduling lock

cJournalEntryStatusJESTcharOPTNONE

A code that indicates the current status of the journal entries for this payroll cycle. Valid values are:    Blank Not executed for payroll ID    A        
Active, or in the job queue    1       Completed    S       Scheduling lock

cReportsOnlyStatusROSTcharOPTNONE

A code that indicates the current status of the reports only step of this payroll cycle. Valid values are:    Blank Not executed for this payroll ID   
 1       Completed    A       Active, or in the job queue    S       Scheduling lock 

cFinalUpdateStatusFUSTcharOPTNONE

A code that indicates the current status of the final update for this payroll cycle. Valid values are:    Blank  Not executed for this payroll ID    A    
     Active, or in the job queue  You cannot change status of final update to complete. When the final update is complete, the system clears 
the status codes for all of the steps.

cProcessingModeEV01charOPTNONE

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

cReturnCodeEV02charOPTNONE

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

cAutoDepositAdviceStatusADAScharOPTNONE

A code that indicates the current status of the automatic deposit advice slips for this version. Valid codes are:    Blank Not executed for 
payroll ID, or no automatic deposit advice slips exist    A        Active    0       Ready to Print    1       Completed

Related Functions

None

Related Tables

None