GetApprovalRequired

Get Approval Required

Minor Business Rule

Object Name: N0500330

Parent DLL: CFND

Location: Client/Server

Language: NER

Functional Description
The purpose of this business function is to get supervisor levels needed for approval from table F05844.   The BSFN will first search for the exact record 
and then for more and more generic records. 


Technical Specifications


Parameters

Data ItemRequiredI/ODescription

HMCONI/OHome Company
HMCUYIHome Business Unit

APPTYYIApproval Type

LVELFNOLevel From

LVELTNOLevel To

ANABNOHighest Authority

EV01NOError



Related Tables 

Table Table Description

F05844Approval Hierachy

Processing

First a record will be searched for using the full key, Home Company, Home Business Unit, and Approval Type.  
If no record is found then search on Home Company, Approval Type, and where Home Business Unit is blank. 

If no record is found then search on Home Company equal to '00000', Approval Type, and where Home Business Unit is blank.

If no record is found then send back an error, EV01 = 1.

Data Structure

D0500330 - Get Approval Required

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyHomeHMCOcharOPTBOTH

The company number where the employee records generally reside.

szCostCenterHomeHMCUcharREQINPUT

The number of the business unit in which the employee generally resides.

szApprovalType9APPTYcharREQINPUT

A user defined code (05/AP) that specifies the type of change that requires an approval. For example, the approval type code required to 
approve a compensation change is COMP.

nLevelFromLVELFintegerOPTNONE

The minimum numeric level above an employee that a manager must be for the manager to be included in the approval hierarchy. Any 
manager with a numeric level between the value in LVELF and LVELT will be included in the approval hierarchy. Note: LVELF is not used in 
Basic Compensation Approval Type COMP.

nLevelToLVELTintegerOPTNONE

The maximum numeric level above an employee that a manager can be for the manager to be included in the approval hierarchy. Any 
manager with a numeric level between the value in LVELF and LVELT will be included in the approval hierarchy. Note: LVELT is not used in 
Basic Compensation Approval Type COMP.

mnRespondingSupervisorANABMATH_NUMERICOPTNONE

The supervisor responding to a request.

cErrorCodeEV01charOPTNONE

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

Related Functions

None

Related Tables

None