Search Results psb_ws_acct1
Overview
PSB_WS_ACCT2 is a public PL/SQL package body in the APPS schema that supports the Oracle E-Business Suite Public Sector Budgeting (PSB) module. Operating under the Oracle Enterprise Technical Reference Model (ETRM) classification "OTHER," the package handles worksheet-level account processing. Its principal business function is to take budget group hierarchy definitions and generate, distribute, revise, and aggregate the account worksheet lines that budget analysts work with during the budget preparation cycle. The package works in close coordination with its companion package PSB_WS_ACCT1, which supplies shared global variables such as period table types and date range globals (for example, g_startdate_pp, g_enddate_cy, and the g_budgetperiod_tbl_type collections). PSB_WS_ACCT2 assembles account sets, GL account ranges, budget and actual balances, allocation rule percentages, and rollup totals into a coherent worksheet view for downstream processing and reporting.
Key Procedures and Functions
Nine documented procedures and functions comprise the public API of this package body:
- CREATE_WORKSHEET_ACCOUNTS — Builds the account lines that populate a budget worksheet for a given budget group.
- UPDATE_GL_BALANCES — Refreshes the General Ledger balance amounts associated with worksheet accounts.
- REVISE_ACCOUNT_PROJECTIONS — Recalculates projected account amounts, typically after changes to budget parameters or prior-period actuals.
- PROCESS_DEFERRED_CCIDS — Resolves deferred code combinations that were queued during worksheet creation and applies them to the working set.
- APPLY_ACCOUNT_PARAMETERS — Applies budget parameters and parameter formulas to account records.
- DISTRIBUTE_ACCOUNT_LINES — Spreads account amounts across applicable periods or organizational dimensions based on allocation rules.
- CREATE_ROLLUP_TOTALS — Aggregates account-level detail into rollup totals for higher-level budget group reporting.
- GET_DEBUG — Utility routine exposing internal debug state for troubleshooting.
Tables Accessed
The package reads and writes the following APPS synonyms.
- PSB_BUDGET_GROUPS — Source of budget group definitions; the
c_BudGrpcursor performs a hierarchical CONNECT BY traversal to obtain all groups in a hierarchy. - PSB_SET_RELATIONS (via
psb_set_relations_v) — Supplies account or position sets assigned to each budget group; thec_AccSetcursor filters onaccount_or_position_type = 'A'. - PSB_BUDGET_ACCOUNTS, PSB_BUDGET_PERIODS, PSB_BUDGET_YEAR_TYPES — Drive worksheet account and period structure.
- GL_CODE_COMBINATIONS, GL_ACCOUNT_HIERARCHIES, PSB_GL_BUDGETS, PSB_GL_BUDGET_SETS — Provide GL account validation, hierarchy groupings, and budget balance data used by UPDATE_GL_BALANCES and REVISE_ACCOUNT_PROJECTIONS.
- PSB_ALLOCRULE_PERCENTS, PSB_PARAMETER_FORMULAS, PSB_ENTITY, PSB_ENTITY_ASSIGNMENT, FINANCIALS_SYSTEM_PARAMETERS, PSB_SERVICE_PACKAGES — Support allocation distribution, parameter formulas, entity assignment, and system configuration.
Usage Notes
PSB_WS_ACCT2 is invoked primarily from the Public Sector Budgeting worksheet forms and from related concurrent programs that build or refresh budget worksheets. It is also referenced by four other packages in the PSB family, indicating its role as a shared service component. Because the package relies on globals initialized by PSB_WS_ACCT1, callers must ensure that the companion package is initialized before invoking PSB_WS_ACCT2 routines. The g_process_cy_estimates flag (introduced per Bug#3514350) controls whether current-year estimates are processed, allowing administrators to suppress this step where not required. Environments upgrading from 12.1.1 to 12.2.2 should verify that psb_set_relations_v and all referenced APPS synonyms remain valid after patching, since the package depends heavily on these views for cursor definitions.
-
PACKAGE BODY: APPS.PSB_WS_ACCT2
12.1.1
-
PACKAGE: APPS.PSB_WS_ACCT2
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WS_ACCT2, status:VALID,
-
APPS.PSB_WS_POS2 SQL Statements
12.1.1
-
PACKAGE: APPS.PSB_WS_POS1
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WS_POS1, status:VALID,
-
SYNONYM: APPS.PSB_BUDGET_GROUPS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_BUDGET_GROUPS, status:VALID,
-
APPS.PSB_SUBMIT_WORKSHEET_PVT SQL Statements
12.1.1
-
PACKAGE: APPS.PSB_WS_ACCT1
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WS_ACCT1, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_ACCT1
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_ACCT1, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_POS1
12.1.1
-
PACKAGE BODY: APPS.PSB_WS_POS2
12.1.1
-
SYNONYM: APPS.PSB_WS_ACCOUNT_LINES_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WS_ACCOUNT_LINES_S, status:VALID,
-
SYNONYM: APPS.PSB_WS_ACCOUNT_LINE_NOTES_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WS_ACCOUNT_LINE_NOTES_S, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_POSITION_FTE_O_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_POSITION_FTE_O_PVT, status:VALID,
-
SYNONYM: APPS.PSB_WS_SUBMIT_SERVICE_PACKAGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WS_SUBMIT_SERVICE_PACKAGES, status:VALID,
-
APPS.PSB_WS_POS1 SQL Statements
12.1.1
-
APPS.PSB_WS_OPS_PVT SQL Statements
12.1.1
-
SYNONYM: APPS.PSB_WORKSHEETS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WORKSHEETS, status:VALID,
-
PACKAGE: APPS.GL_CODE_COMBINATIONS_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GL_CODE_COMBINATIONS_PKG, status:VALID,
-
SYNONYM: APPS.PSB_ERROR_MESSAGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_ERROR_MESSAGES, status:VALID,
-
SYNONYM: APPS.PSB_CONSTRAINT_FORMULAS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_CONSTRAINT_FORMULAS, status:VALID,
-
SYNONYM: APPS.PSB_BUDGET_ACCOUNTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_BUDGET_ACCOUNTS, status:VALID,
-
SYNONYM: APPS.PSB_SERVICE_PACKAGES_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_SERVICE_PACKAGES_S, status:VALID,
-
SYNONYM: APPS.PSB_BUDGET_YEAR_TYPES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_BUDGET_YEAR_TYPES, status:VALID,
-
SYNONYM: APPS.PSB_WS_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WS_LINES, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_POS2
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_POS2, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_LINE_PERIOD_O_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_LINE_PERIOD_O_PVT, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_POS3
12.1.1
-
PACKAGE: APPS.PSB_WS_ACCT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WS_ACCT_PVT, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_LINE_YEAR_I_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_LINE_YEAR_I_PVT, status:VALID,
-
SYNONYM: APPS.PSB_WS_ACCOUNT_LINE_NOTES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WS_ACCOUNT_LINE_NOTES, status:VALID,
-
PACKAGE BODY: APPS.PSB_SUBMIT_WORKSHEET_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_SUBMIT_WORKSHEET_PVT, status:VALID,
-
PACKAGE: APPS.PSB_WORKSHEET
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WORKSHEET, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_YEAR_TOTAL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_YEAR_TOTAL, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_LINE_YEAR_O_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_LINE_YEAR_O_PVT, status:VALID,
-
PACKAGE BODY: APPS.PSB_PSBWSSUB_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_PSBWSSUB_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_LINE_PERIOD_I_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_LINE_PERIOD_I_PVT, status:VALID,
-
SYNONYM: APPS.PSB_BUDGET_STAGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_BUDGET_STAGES, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_OPS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_OPS_PVT, status:VALID,
-
PACKAGE BODY: APPS.PSB_POSITION_PAY_DISTR_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_POSITION_PAY_DISTR_PVT, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_POSITION_FTE_I_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_POSITION_FTE_I_PVT, status:VALID,
-
PACKAGE: APPS.PSB_FLEX_MAPPING_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_FLEX_MAPPING_PVT, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_POS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_POS_PVT, status:VALID,
-
SYNONYM: APPS.PSB_SERVICE_PACKAGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_SERVICE_PACKAGES, status:VALID,
-
PACKAGE: APPS.PSB_WS_POS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WS_POS_PVT, status:VALID,
-
SYNONYM: APPS.PSB_WS_LINES_POSITIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WS_LINES_POSITIONS, status:VALID,
-
SYNONYM: APPS.PSB_SET_RELATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_SET_RELATIONS, status:VALID,
-
PACKAGE BODY: APPS.PSB_WORKFLOW_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WORKFLOW_PVT, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_ACCT2
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_ACCT2, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_ACCT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_ACCT_PVT, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_POS1
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_POS1, status:VALID,