DetermineReportsForIndividual

Determine Reports for Individual

Minor Business Rule

Object Name: N0800173

Parent DLL: CHRM

Location: Client/Server

Language: NER

Functional Description

Purpose

The NER determines whether an individual has employees reporting to him/her.  If requested, and 
depending on the report view, it determines the number of direct reports or all reports underneath the 

individual.


Setup Notes and Prerequisites

The required inputs are the address number of the individual, the compensation review type, model 

name, the model owner, and the report view.


Report view of '1' means direct reports.  Report view of '2' means all reports (direct and indirect 

reports.

 

To request the number of reports, pass a '1' in the input field, cDetermineNumberOfReports. 


The outputs are a flag of '1' is passed in the output field, cReportsFoundFlag, and if the number of 

reports is requested, the number of reports is passed in the output field, mnNumberOfReports.


Special Logic

The business view, V08830WFJA, is a joined business view, joining F08830WF, and F05840, by AN8.  The 

supervisor and relationship level in F05840, are used for selecting reports under the individual.  If 

direct reports is requested,  the relationship level being considered is only 1.


Employee records in F08830WF with model type 'T' are not considered, as these employees are to be 

removed from compensation review, after being terminated.  



Technical specification

If the report view is '1' //Direct reports//

• Select V08830WFJC, where supervisor (F05840) = the address number passed in, model name = model name 
passed in, review type = review type passed in, model name = model name passed in, model type <> 'T', 

the relationship level (F05840) = 1, and supervisor # (F08830WF) <> 0

Else

• Select V08830WFJC, where supervisor (F05840) = the address number passed in, model name = model name 
passed in, review type = review type passed in, model name = model name passed in, model type <> T 

and, supervisor # (F08830WF) <> 0. 

End


FetchNext V8830WFJC

If not requesting number of reports,

• If file I/O is successful, set the output field, cReportsFoundFlag = '1'. Otherwise, set '0' for the 
flag


else //requesting number of reports//

• While file I/O is successful
• Increment the number of reports by 1
• Fetchnext V08830WFJC
• EndWhile 
• If the number of reports > 0, set '1' for output field, cReportsFoundFlag.  Otherwise, set '0' for 
the flag


End

Data Structure

D0800173 - Determine Reports for Individual

Parameter NameData ItemData TypeReq/OptI/O/Both
mnSupervisorANPAMATH_NUMERICREQINPUT

The address book number of the supervisor.

cReportViewRVIEWcharREQINPUT

Flag to indicate Report View. UDC table (08/RV) is attached to this item.

cDetermineNumberOfReportsEV01charOPTINPUT

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

cReportsFoundFlagEV01charOPTOUTPUT

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

mnNumberofreportsRPTNBMATH_NUMERICOPTOUTPUT

This field indicates the number of reports.

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.

mnModelOwnerMOWNRMATH_NUMERICREQINPUT

The address book number of the person creating the model.

Related Functions

None

Related Tables

None