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.
D0500330 - Get Approval Required
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szCompanyHome | HMCO | char | OPT | BOTH |
The company number where the employee records generally reside. | ||||
szCostCenterHome | HMCU | char | REQ | INPUT |
The number of the business unit in which the employee generally resides. | ||||
szApprovalType9 | APPTY | char | REQ | INPUT |
A user defined code (05/AP) that specifies the type of change that requires an approval. For example, the approval type code required to
| ||||
nLevelFrom | LVELF | integer | OPT | NONE |
The minimum numeric level above an employee that a manager must be for the manager to be included in the approval hierarchy. Any
| ||||
nLevelTo | LVELT | integer | OPT | NONE |
The maximum numeric level above an employee that a manager can be for the manager to be included in the approval hierarchy. Any
| ||||
mnRespondingSupervisor | ANAB | MATH_NUMERIC | OPT | NONE |
The supervisor responding to a request. | ||||
cErrorCode | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. |
None |
None |