ProcessSubmitReturnCompReview

Process Submit/Return of Compensation Review

Minor Business Rule

Object Name: N0800176

Parent DLL: CHRM

Location: Client/Server

Language: NER

Functional Description

Purpose

The NER process Submit or Return request of a particular supervisor's compensation review. 

Setup Notes and Prerequisites

The input fields required are the supervisor number, model name, review type, model owner, and the 

submit or return flag.  Other input fields are the message text, and the highest authority for approval 

of compensation review.  The message text is used as the text for the message sent to the work center. 

 To request a processing of a submit, pass '1' as the submit/return flag.  To request a processing of 

a return, pass '2' as the submit/return flag.


The output field is an error flag, cErrorFlag.


Special Logic

When a submit is processed successfully, the NER does the followings:

• Updates all reports of the passed supervisor in F08830WF with the person submitting/approving, the 
date submitted/approved, and approval status of '1'.

• Update the supervisor's record in F08830WF, the field 'JTTRS' with '1' to indicate that he/she has 
submitted his/her work. 

• Writes a approval record for each report of the supervisor, to F08542. (Approval type used is 'COMP'
• Sends a message (using template, LM08801), to the work center, notifying the next supervisor above, 
of the submission of the supervisor's compensation review. 

• If the last level supervisor (i.e the supervisor has no upper level supervisor) submitted his/her 
work, the NER sends the message to the highest level authority for the last approval.    

 

When a return is processed successfully, the NER does the followings:

• Updates all reports of the passed supervisor in F08830WF with the person returning/rejecting, the 
date returned/rejected, and approval status of '2'.

• Updates the supervisor's record in F08830WF, the field 'JTTRS' with '2' to indicate that the 
individual has his/her work returned.

• Writes a rejected record for each report of the supervisor, to F08542.  (Approval Type used is 
'COMP')

• Sends a message (using template, LM08802), to work center, notifying the supervisor that his/her 
work has been returned.



The business view used in the NER is V08830WFJC, which joins F08830WF, and F05840. The business view 

contains all the reports (direct and indirect) of a particular supervisor.  Compensation review of all 

reports are to be submitted or returned at one time.  The functionality does not allow submitting or 

returning of compensation review of selected reports at different times.


Employee records in F08830WF with Model Type 'T' are to be omitted, as they are terminated employees, 

who are to be removed from the compensation review process.


Technical Specification

Get audit information
Get the address number of the user id.

Get the mailing name of the user id.


If submit/return flag <> '1' and '2'  //Invalid submit/return flag//
• Set cErrorgflag = '1'
• Return
End 


If submit/Return flag = '2'  //Request is return//
• Select V08830WF, where the supervisor # (F05840) = supervisor number passed in, the model name = 
model name passed in, review type = review type passed in, model owner = model owner passed in, and the 

model type <> 'T'

• FethNext V08830WF, getting the employee number
• While file I/O is successful,
• Update the employee record in F08830WF, with the approval status of '2', the person 
returning/rejecting, and the date returned/rejected.

• FetchNext V08830WF, getting the next employee or report.
• EndWhile

• Update the supervisor's record in F08830WF, with '2' in the field, 'JTTRS', to indicate a return of 
his/her work.

• Send a work center message to the supervisor whose work was returned.


Else  //Else request is not return//

• If submit/Return flag = '1'  //request is submit//
• Select V08830WF, where the supervisor # (F05840) = supervisor number passed in, the model name = 
model name passed in, review type = review type passed in, model owner = model owner passed in, and 

the model type <> 'T'

• FethNext V08830WF, getting the employee number
• While file I/O is successful,
• Update the employee record in F08830WF, with the approval status of '1', the person 
submitting/approving, and the date submitted/approved.

• FetchNext V08830WF, getting the next employee or report.
• EndWhile
 
• If the supervisor record exists in F08830WF,
• Update the supervisor's record in F08830WF, with '1' in the field, 'JTTRS', to indicate 
submission of his/her work.

• Else  //else the supervisor has no record in F08830WF//
• Insert a record in F08830WF, with '1' in the field, 'JTTRS' and the supervisor field 'ANPA' = 
0.  //This is possible, if the supervisor submitting, is the last level supervisor, and the last 

level supervisor is usually not in the compensation review process as the other employees//

• End 
  
• Get the next supervisor above (call 'Next Previous Supervisor' NER)
• If there is a supervisor above, 
• Send a work center message to the supervisor above, notifying the submission of compensation 
review

• Else  //else no supervisor above//
• If the highest authority for approval is passed in, send the work center message to the 
highest authority passed in.

• End
• End
End



Data Structure

D0800176 - Process Submit/Return of Compensation Review

Parameter NameData ItemData TypeReq/OptI/O/Both
mnSupervisorANPAMATH_NUMERICREQINPUT

The address book number of the supervisor.

cSubmitReturnFlagEV01charREQINPUT

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

szModelName9MNAMEcharREQINPUT

The model name. Valid values are:    MASTER is a model name to be used for the Final Submitted Compensation.    PUBLIC model is 
controlled by a UDC Table.  Must use entry from the UDC Table.    PRIVATE model could have any name the owner chooses.

cReviewTypeRWTYPcharREQINPUT

A code that indicates the last compensation review type.

cErrorFlagEV01charOPTOUTPUT

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

mnHighestAuthorityANHAMATH_NUMERICOPTINPUT

The final authority in the approval process. This could be an individual or a department.

szMessageTextDL01charOPTINPUT

A user defined name or remark.

mnModelOwnerMOWNRMATH_NUMERICREQINPUT

The address book number of the person creating the model.

Related Functions

None

Related Tables

None