Search Results get_approval_status
Overview
The APPS.BEN_CWB_APPROVALS package body is a PL/SQL component of the Oracle E-Business Suite Advanced Benefits (BEN) module, specifically within the Compensation Workbench (CWB) subsystem. Its primary business function is to manage the approval routing for Compensation Workbench worksheets. When an organization configures manager-level approvals for compensation plans, this package identifies the appropriate approvers in the management hierarchy and applies the necessary approval actions against person tasks. The package header comment block ($Header: bencwbap.pkb 120.1 2005/12/23) indicates it has been part of the EBS codebase since early Release 12 development and remains present in both 12.1.1 and 12.2.2. It is classified as an OTHER API, meaning it is an internal helper rather than a formally published public interface.
Key Procedures and Functions
The ETRM metadata documents two callable units within the package body:
- APPROVE_ALL_MANAGERS — The principal procedure in the package. It performs a bulk approval operation, iterating over the set of managers associated with a person group hierarchy and applying an approval action to each manager's worksheet task. The procedure takes parameters identifying the group person-in-learner entry, plan, plan option, the task being approved, an effective date, and the login person identifier. Internally it uses a cursor (getManagers) to select group records from BEN_CWB_PERSON_GROUPS joined against the group hierarchy tables, filtering on manager relationships (
lvl_num = 0) and excluding groups already in certain approval states (for example, approval codes 'AP' or 'PR'). Additional cursors retrieve task object version numbers and approval task identifiers before the approval is committed. - GETNEXTAPPROVER — A supporting function that determines the next approver in the approval chain for a given worksheet or group. It is used to resolve routing when the current approval level is satisfied and the workflow must advance to the next manager in the hierarchy.
Tables Accessed
The package reads and writes several Compensation Workbench tables through their APPS synonyms:
- BEN_CWB_PERSON_GROUPS — Stores the person group records, including approval codes and object version numbers, which govern whether a group requires approval.
- BEN_CWB_GROUP_HRCHY — Holds the manager-to-employee hierarchy levels used to identify managers and their relative positions in the approval chain.
- BEN_CWB_PERSON_INFO — Provides person-level details used to resolve manager identities (relevant to the user's search term, "get_manager_name").
- BEN_CWB_PERSON_TASKS — Stores task records, including status codes and object version numbers, which are updated when an approval is applied.
- BEN_CWB_WKSHT_GRP — Associates worksheets with groups, used to locate the correct worksheet context for approval.
Usage Notes
BEN_CWB_APPROVALS is invoked from within the Compensation Workbench approval workflow rather than being called directly by end users. It is typically triggered by forms and concurrent processes that submit worksheet approvals, and it may also be referenced by custom code extending CWB approval routing. The package is not referenced by any other documented packages, indicating a contained scope within the CWB approval feature set. Because it manipulates object version numbers and task statuses, callers should invoke it within a controlled transaction scope and respect the effective date and login person parameters to ensure audit trail integrity.
-
PACKAGE BODY: APPS.BEN_CWB_APPROVALS
12.2.2
-
PACKAGE BODY: APPS.IGI_EXP_HOLD
12.1.1
-
PACKAGE BODY: APPS.IGI_EXP_HOLD
12.2.2
-
PACKAGE BODY: APPS.BEN_CWB_APPROVALS
12.1.1
-
PACKAGE BODY: APPS.PO_QUOTES_SV
12.2.2
-
PACKAGE BODY: APPS.PO_QUOTES_SV
12.1.1
-
PACKAGE: APPS.PO_QUOTES_SV
12.1.1
-
PACKAGE: APPS.PO_QUOTES_SV
12.2.2
-
PACKAGE: APPS.AP_INVOICE_LINES_UTILITY_PKG
12.1.1
-
PACKAGE: APPS.AP_INVOICE_LINES_UTILITY_PKG
12.2.2
-
PACKAGE: APPS.PO_SOURCING_SV
12.2.2
-
PACKAGE BODY: APPS.IGI_EXP_HOLDS
12.1.1
-
PACKAGE: APPS.PO_SOURCING_SV
12.1.1
-
PACKAGE BODY: APPS.IGI_EXP_HOLDS
12.2.2
-
PACKAGE: APPS.HXC_TIMESTORE_DEPOSIT_UTIL
12.1.1
-
PACKAGE: APPS.AP_INVOICES_UTILITY_PKG
12.1.1
-
PACKAGE: APPS.HXC_TIMESTORE_DEPOSIT_UTIL
12.2.2
-
PACKAGE: APPS.AP_INVOICES_UTILITY_PKG
12.2.2
-
PACKAGE: APPS.OKL_SETUPPRODUCTS_PVT
12.2.2
-
PACKAGE: APPS.OKL_SETUPPRODUCTS_PVT
12.1.1
-
PACKAGE: APPS.PAY_IN_TAX_DECLARATION
12.1.1
-
PACKAGE: APPS.PAY_IN_TAX_DECLARATION
12.2.2
-
APPS.PO_QUOTES_SV dependencies on PO_MESSAGE_S
12.1.1
-
PACKAGE BODY: APPS.AP_INVOICE_LINES_UTILITY_PKG
12.1.1
-
PACKAGE BODY: APPS.HXC_TIMESTORE_DEPOSIT_UTIL
12.1.1
-
PACKAGE BODY: APPS.AP_INVOICE_LINES_UTILITY_PKG
12.2.2
-
APPS.PO_QUOTES_SV dependencies on PO_MESSAGE_S
12.2.2
-
APPS.PAY_IN_TAX_DECLARATION dependencies on PER_ASSIGNMENT_EXTRA_INFO
12.1.1
-
APPS.PAY_IN_TAX_DECLARATION dependencies on PER_ASSIGNMENT_EXTRA_INFO
12.2.2
-
APPS.IGI_EXP_HOLDS dependencies on STANDARD
12.1.1
-
APPS.OKL_SETUPPRODUCTS_PVT dependencies on OKC_K_HEADERS_V
12.1.1
-
APPS.OKL_SETUPPRODUCTS_PVT dependencies on OKC_K_HEADERS_V
12.2.2
-
PACKAGE BODY: APPS.OKL_SETUPPRODUCTS_PVT
12.1.1
-
PACKAGE BODY: APPS.OKL_SETUPPRODUCTS_PVT
12.2.2
-
PACKAGE BODY: APPS.PO_REQ_DOCUMENT_CHECKS_PVT
12.1.1
-
APPS.IGI_EXP_HOLDS dependencies on STANDARD
12.2.2
-
APPS.IGI_EXP_HOLDS dependencies on FND_MESSAGE
12.2.2
-
APPS.IGI_EXP_HOLDS dependencies on FND_MESSAGE
12.1.1
-
PACKAGE BODY: APPS.AP_INVOICES_UTILITY_PKG
12.2.2
-
PACKAGE BODY: APPS.PO_REQ_DOCUMENT_CHECKS_PVT
12.2.2
-
APPS.PAY_IN_TAX_DECLARATION dependencies on PER_ASSIGNMENT_EXTRA_INFO
12.1.1
-
PACKAGE: APPS.AP_INVOICES_PKG
12.2.2
-
PACKAGE BODY: APPS.HXC_TIMESTORE_DEPOSIT_UTIL
12.2.2
-
APPS.PAY_IN_TAX_DECLARATION dependencies on PER_ASSIGNMENT_EXTRA_INFO
12.2.2
-
APPS.BEN_CWB_APPROVALS dependencies on BEN_CWB_PERSON_GROUPS
12.2.2
-
APPS.BEN_CWB_APPROVALS dependencies on BEN_CWB_PERSON_GROUPS
12.1.1
-
PACKAGE: APPS.AP_INVOICES_PKG
12.1.1
-
APPS.PO_QUOTES_SV dependencies on PO_QUOTES_SV
12.1.1
-
APPS.PO_QUOTES_SV dependencies on PO_QUOTES_SV
12.2.2
-
PACKAGE BODY: APPS.AP_INVOICES_UTILITY_PKG
12.1.1