Search Results p_budget_id
Overview
APPS.PQH_BGT_BUS is the business-rule layer of the Oracle EBS Public Sector / Human Resources budget management subsystem, implemented as a package body on the APPS schema. It belongs to the PQH product family (Oracle Public Sector Payroll/HR budget objects) and is classified in ETRM as a general-purpose (OTHER) API rather than a formal PL/SQL interface API. The package enforces the integrity rules, primary key validation, and row-level validation logic that surround the PQH_BUDGETS table and its related budget, version, period, and worksheet tables. In the Oracle EBS 12.1.1 and 12.2.2 table-handler architecture, *_BUS packages sit between the underlying shared data handler (PQH_BGT_SHD, referenced in the package source via pqh_bgt_shd.api_updating, pqh_bgt_shd.constraint_error, and pqh_bgt_shd.g_old_rec) and the user-facing *_API layer. This package therefore encapsulates the authoritative business logic that determines whether a budget record may be inserted, updated, or deleted. The user query term p_budget_id corresponds directly to the primary key parameter validated in the internal chk_budget_id procedure, whose documented behaviour is to ensure the key is null on insert and immutable on update.
Key Procedures and Functions
ETRM documents four procedures or functions for APPS.PQH_BGT_BUS:
- RETURN_LEGISLATION_CODE — resolves and returns the legislation code associated with the budget context. Country-specific (legislative) rules in EBS HR and budget modules depend on this value, so this function supplies the legislation identifier used to drive downstream validation and business rules.
- INSERT_VALIDATE — performs pre-insert validation for a budget record. It confirms that the incoming row satisfies PK and integrity expectations before the physical insert is permitted. The internal
chk_budget_idhelper supports this behaviour by rejecting a non-null primary key during insert. - UPDATE_VALIDATE — performs pre-update validation, including verification that the primary key has not changed.
chk_budget_idcallspqh_bgt_shd.api_updatingand raisesPQH_BUDGETS_PKviaconstraint_errorwhen an update would alterp_budget_id, preserving key immutability. - DELETE_VALIDATE — performs pre-delete validation, confirming that the budget row may be removed without violating referential or business constraints.
The package also contains private helpers such as chk_budget_id, which is documented as internal table-handler use only. No parameter lists beyond those shown in the source excerpt are asserted here.
Tables Accessed
Through APPS synonyms, the package and its surrounding table handler reference eleven tables:
- PQH_BUDGETS — the primary budget entity managed by this package; the target of insert, update, and delete validation.
- PQH_BUDGET_DETAILS, PQH_BUDGET_PERIODS, PQH_BUDGET_VERSIONS — line, period, and version children that carry the budget's temporal and versioned structure and constrain valid maintenance of the parent budget.
- PQH_WORKSHEETS, PQH_WORKSHEET_DETAILS, PQH_WORKSHEET_PERIODS — the worksheet staging tables from which budget data is prepared and validated.
- FND_CURRENCIES, GL_BUDGETS — currency and General Ledger budget references used for cross-validation and code resolution.
- PAY_CALENDARS, PER_TIME_PERIODS, PER_SHARED_TYPES — payroll calendar, period, and shared lookup definitions that anchor budget period derivation and legislation-based rules.
Usage Notes
PQH_BGT_BUS is invoked indirectly: forms, concurrent programs, and custom code call the corresponding API and DML layers, which in turn call the *_BUS validation routines before rows reach PQH_BUDGETS. The package is referenced by three other packages, confirming its role as a shared validation dependency rather than a directly called entry point. Because it is classified as OTHER and marked internal in places, customizations should not call chk_budget_id or other private helpers directly; supported integration is through the public *_API surface. When extending budget functionality in 12.1.1 or 12.2.2, developers should preserve primary key immutability (the purpose of the p_budget_id check) and validate against the same legislative, currency, calendar, and period data this package already consults.
-
APPS.OZF_THRESHOLD_PVT SQL Statements
12.1.1
-
APPS.OZF_THRESHOLD_PVT SQL Statements
12.2.2
-
APPS.PQH_BUDGETS_API SQL Statements
12.2.2
-
APPS.PQH_BUDGETS_API SQL Statements
12.1.1
-
APPS.PQH_BUDGET_GL_FLEX_MAPS_API SQL Statements
12.2.2
-
PACKAGE BODY: APPS.PQH_BGT_BUS
12.2.2
-
APPS.HRI_OPL_BDGTS SQL Statements
12.1.1
-
PACKAGE BODY: APPS.PQH_BGT_BUS
12.1.1
-
APPS.PQH_BGT_BUS SQL Statements
12.1.1
-
APPS.PQH_BGT_BUS SQL Statements
12.2.2
-
APPS.PQH_BUDGET_GL_FLEX_MAPS_API SQL Statements
12.1.1
-
APPS.PQH_WORKSHEETS_API SQL Statements
12.2.2
-
APPS.PQH_BDGT_CMMTMNT_ELMNTS_API SQL Statements
12.2.2
-
APPS.PQH_WORKSHEETS_API SQL Statements
12.1.1
-
APPS.PQH_BUDGET_VERSIONS_API SQL Statements
12.2.2
-
PACKAGE BODY: APPS.PQH_BUDGETS_API
12.1.1
-
PACKAGE BODY: APPS.PQH_BUDGETS_API
12.2.2
-
PACKAGE BODY: APPS.PQH_BUDGET_GL_FLEX_MAPS_API
12.2.2
-
PACKAGE BODY: APPS.PQH_BUDGET_GL_FLEX_MAPS_API
12.1.1
-
APPS.PQH_BDGT_CMMTMNT_ELMNTS_API SQL Statements
12.1.1
-
APPS.PQH_BUDGET_VERSIONS_API SQL Statements
12.1.1
-
APPS.PQH_BCE_BUS SQL Statements
12.2.2
-
APPS.PQH_BDGT SQL Statements
12.2.2
-
PACKAGE BODY: APPS.PER_PERRPRBD_XMLP_PKG
12.1.1
-
APPS.PQH_BDGT SQL Statements
12.1.1
-
APPS.PQH_BCE_BUS SQL Statements
12.1.1
-
APPS.PQH_WKS_INS SQL Statements
12.1.1
-
APPS.PQH_WKS_INS SQL Statements
12.2.2
-
PACKAGE: APPS.PQH_BUDGETS_BK3
12.1.1
-
APPS.PQH_BVR_UPD SQL Statements
12.1.1
-
APPS.PQH_BUDGETS_BK3 SQL Statements
12.1.1
-
APPS.PQH_BVR_UPD SQL Statements
12.2.2
-
APPS.PQH_BUDGET_GL_FLEX_MAPS_BK2 SQL Statements
12.1.1
-
APPS.PQH_BUDGET_GL_FLEX_MAPS_BK2 SQL Statements
12.2.2
-
APPS.PQH_BUDGETS_BK3 SQL Statements
12.2.2
-
PACKAGE: APPS.PQH_BUDGET_GL_FLEX_MAPS_BK1
12.1.1
-
PACKAGE: APPS.PQH_BUDGETS_BK3
12.2.2
-
PACKAGE BODY: APPS.PQH_WORKSHEETS_API
12.1.1
-
PACKAGE: APPS.PQH_BUDGET_GL_FLEX_MAPS_BK1
12.2.2
-
APPS.PQH_BGT_SHD SQL Statements
12.1.1
-
PACKAGE BODY: APPS.PER_PERRPRBD_XMLP_PKG
12.2.2
-
APPS.PQH_BGT_SHD SQL Statements
12.2.2
-
PACKAGE BODY: APPS.PQH_BDGT_CMMTMNT_ELMNTS_API
12.1.1
-
PACKAGE BODY: APPS.PQH_BUDGET_VERSIONS_API
12.1.1
-
PACKAGE BODY: APPS.PQH_BUDGET_VERSIONS_API
12.2.2
-
APPS.PQH_WKS_BUS SQL Statements
12.1.1
-
APPS.PQH_WKS_BUS SQL Statements
12.2.2
-
PACKAGE BODY: APPS.PQH_BUDGETS_BK3
12.1.1
-
PACKAGE BODY: APPS.PQH_BUDGETS_BK3
12.2.2
-
PACKAGE: APPS.PQH_BUDGET_GL_FLEX_MAPS_BK2
12.1.1