Search Results pa_moac_utils
Overview
PA_MOAC_UTILS is an Oracle EBS Applications (APPS) PL/SQL package body classified under the Projects (PA) module. Its name reflects its role as a utility layer for Multi-Organization Access Control (MOAC) within Oracle Projects. In EBS 12.1.1 and 12.2.2, MOAC enables a single responsibility and a single application session to operate against multiple operating units, replacing the earlier single-organization (SOAC) model driven by FND_CLIENT_INFO. PA_MOAC_UTILS centralizes the logic that Projects code uses to determine the current operating unit, resolve valid operating units for the session, and enforce access restrictions against the organizations defined in Oracle Projects implementation.
The package is internally focused: ETRM notes that it is not referenced by any database object in the dependency graph, but that it is referenced by 37 other packages, indicating it is a shared helper consumed broadly across Projects APIs and concurrent programs rather than a top-level entry point. It depends on foundation utilities including FND_API, FND_MESSAGE, FND_MSG_PUB, MO_GLOBAL, MO_UTILS, and GMS_INSTALL, which confirms it sits on top of the standard MOAC infrastructure and participates in the FND message stack for error reporting. It is a VALID object in the APPS schema.
Key Procedures and Functions
Nine documented program units make up the package:
- NAME — identifies the package/module for diagnostic and message purposes.
- GET_CURRENT_ORG_ID — returns the operating unit (organization_id) currently in effect for the session, typically derived from MO_GLOBAL.
- GET_OU_NAME — resolves the descriptive name of an operating unit from the organization definition.
- GET_OU_COUNT — returns the number of operating units accessible to the current user or session.
- GET_DEFAULT_OU — determines the default operating unit to be applied when no explicit selection exists.
- GET_VALID_OU — validates and returns an operating unit that the caller is permitted to use.
- INITIALIZE — performs package-level setup, caching policy context and initialization state for the session.
- SET_POLICY_CONTEXT — sets the MOAC policy context in the database session, aligning the active operating unit with the Projects policy.
- CHECK_ACCESS — verifies whether the current user or session has access to a given operating unit, returning an access determination rather than raising unconditionally.
Parameter lists are not reproduced here; callers should consult the package specification in the APPS schema.
Tables Accessed
The documented table references are limited and read-oriented:
- HR_ALL_ORGANIZATION_UNITS_TL — the translated organization units table, used to resolve operating unit names and language-specific descriptions for display and validation.
- PA_IMPLEMENTATIONS_ALL — the Oracle Projects implementation table, used to determine which operating units are enabled for Projects and therefore eligible for MOAC scoping.
- DUAL — used for scalar evaluations such as computing counts or testing session state.
No insert, update, or delete activity against these tables is documented; the package behaves as a read-only resolver.
Usage Notes
PA_MOAC_UTILS is invoked implicitly rather than directly by end users. Projects forms, concurrent programs, and the public Projects APIs call it to establish and verify operating unit context before performing transactional work. Custom extensions that query Projects data across organizations should call SET_POLICY_CONTEXT or INITIALIZE early in the session and use CHECK_ACCESS before exposing data, to remain consistent with standard MOAC behavior. Because the package draws on FND_MSG_PUB and FND_MESSAGE, callers should check the FND message stack after invocation. Given its breadth of reuse across 37 packages, changes to its behavior carry wide impact and should be regression-tested against Projects concurrent programs and forms in both 12.1.1 and 12.2.2.
-
PACKAGE BODY: APPS.PA_MOAC_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_MOAC_UTILS, status:VALID,
-
PACKAGE BODY: APPS.PA_MOAC_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_MOAC_UTILS, status:VALID,
-
PACKAGE: APPS.PA_MOAC_UTILS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_MOAC_UTILS, status:VALID,
-
PACKAGE: APPS.PA_MOAC_UTILS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_MOAC_UTILS, status:VALID,
-
PACKAGE BODY: APPS.GMS_INSTALL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GMS_INSTALL, status:VALID,
-
PACKAGE BODY: APPS.PA_WEBADI_TRX_XFACE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_WEBADI_TRX_XFACE, status:VALID,
-
PACKAGE BODY: APPS.GMS_INSTALL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GMS_INSTALL, status:VALID,
-
PACKAGE BODY: APPS.PA_TAX_CLIENT_EXTN_DRV
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_TAX_CLIENT_EXTN_DRV, status:VALID,
-
PACKAGE BODY: APPS.PA_PAFPEXRP_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_PAFPEXRP_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_WEBADI_TRX_XFACE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_WEBADI_TRX_XFACE, status:VALID,
-
PACKAGE BODY: APPS.PA_TAX_CLIENT_EXTN_DRV
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_TAX_CLIENT_EXTN_DRV, status:VALID,
-
PACKAGE BODY: APPS.PA_PERIODS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_PERIODS_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_PERIODS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_PERIODS_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_INTERFACE_UTILS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_INTERFACE_UTILS_PUB, status:VALID,
-
PACKAGE BODY: APPS.PA_CALC_OVERTIME
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_CALC_OVERTIME, status:VALID,
-
PACKAGE BODY: APPS.PA_CALC_OVERTIME
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_CALC_OVERTIME, status:VALID,
-
PACKAGE BODY: APPS.PA_SALESREPS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_SALESREPS, status:VALID,
-
PACKAGE BODY: APPS.PA_SALESREPS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_SALESREPS, status:VALID,
-
PACKAGE BODY: APPS.PA_PAFPEXRP_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_PAFPEXRP_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.HXC_RDB_POST_RETRIEVAL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HXC_RDB_POST_RETRIEVAL, status:VALID,
-
PACKAGE BODY: APPS.PA_CI_SECURITY_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_CI_SECURITY_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_ONESTEP_STREAMLINE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_ONESTEP_STREAMLINE_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_ONESTEP_STREAMLINE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_ONESTEP_STREAMLINE_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_CAPITAL_EVENTS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_CAPITAL_EVENTS_PVT, status:VALID,
-
PACKAGE BODY: APPS.PA_INTERFACE_UTILS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_INTERFACE_UTILS_PUB, status:VALID,
-
PACKAGE BODY: APPS.PA_CI_SECURITY_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_CI_SECURITY_PKG, status:VALID,
-
PACKAGE BODY: APPS.PATC
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PATC, status:VALID,
-
PACKAGE BODY: APPS.PA_EXP_COPY
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_EXP_COPY, status:VALID,
-
PACKAGE BODY: APPS.PA_MU_BATCHES_V_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_MU_BATCHES_V_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_MU_BATCHES_V_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_MU_BATCHES_V_PKG, status:VALID,
-
PACKAGE BODY: APPS.HXC_RDB_PRE_RETRIEVAL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HXC_RDB_PRE_RETRIEVAL, status:VALID,
-
PACKAGE BODY: APPS.PA_PAXALRUN_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_PAXALRUN_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_PAXALRUN_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_PAXALRUN_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_CAPITAL_EVENTS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_CAPITAL_EVENTS_PVT, status:VALID,
-
PACKAGE BODY: APPS.GMS_SUMMARIZE_BUDGETS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GMS_SUMMARIZE_BUDGETS, status:VALID,
-
PACKAGE BODY: APPS.PA_COST_RATE_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_COST_RATE_PUB, status:VALID,
-
PACKAGE BODY: APPS.PA_COST_RATE_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_COST_RATE_PUB, status:VALID,
-
PACKAGE BODY: APPS.GMS_SUMMARIZE_BUDGETS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GMS_SUMMARIZE_BUDGETS, status:VALID,
-
PACKAGE BODY: APPS.PA_EXP_COPY
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_EXP_COPY, status:VALID,
-
PACKAGE: APPS.GMS_INSTALL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GMS_INSTALL, status:VALID,
-
PACKAGE BODY: APPS.ENG_ATTACHMENT_IMPLEMENTATION
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ENG_ATTACHMENT_IMPLEMENTATION, status:VALID,
-
PACKAGE BODY: APPS.ENG_ATTACHMENT_IMPLEMENTATION
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ENG_ATTACHMENT_IMPLEMENTATION, status:VALID,
-
PACKAGE BODY: APPS.PA_ASSIGNMENT_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_ASSIGNMENT_UTILS, status:VALID,
-
PACKAGE BODY: APPS.PATC
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PATC, status:VALID,
-
PACKAGE BODY: APPS.GMS_AWARD_DIST_ENG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GMS_AWARD_DIST_ENG, status:VALID,
-
PACKAGE BODY: APPS.GMS_AWARD_DIST_ENG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GMS_AWARD_DIST_ENG, status:VALID,
-
PACKAGE BODY: APPS.PA_AP_INTEGRATION
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_AP_INTEGRATION, status:VALID,
-
PACKAGE BODY: APPS.PA_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_UTILS, status:VALID,
-
PACKAGE BODY: APPS.GMS_PA_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GMS_PA_API, status:VALID,
-
PACKAGE BODY: APPS.PA_BUDGET_FUND_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BUDGET_FUND_PKG, status:VALID,