Search Results psb_ws_acct2
Overview
PSB_WS_ACCT2 is a private PL/SQL package in the Oracle EBS Applications (APPS) schema that supports the budgeting and worksheet generation engine of Oracle Enterprise Planning and Budgeting / Public Sector Budgeting (PSB). Its central responsibility is to build the account (code combination) lines that make up a budgeting worksheet for a given budget group. As the header notes, the package "Create Worksheet Account Lines for Budget Group after applying all Account Parameters specified in the Parameter Set and distributing the Account Lines using the Allocation Rules."
The package maintains several package-level PL/SQL collection types and global variables that persist state across procedure calls within a session. These include g_deferred_ccids (a table of deferred code combination records with budget group, proposed years, code combination id, and start/end periods), g_sorted_ccids, g_dependent_ccids (a table capturing ccid-to-dependent-ccid relationships), and counters such as g_num_defccids, g_num_sortccids, and g_num_depccids. A public variable g_running_total was added under bug 3704360. The package is classified as OTHER and is referenced by four other packages, indicating it functions as a building block within the broader PSB/worksheet processing chain rather than as a standalone public API.
Key Procedures and Functions
- CREATE_WORKSHEET_ACCOUNTS — The package's flagship routine (initial version 1.0, created 05/16/1997 by Supriyo Ghosh, and revised several times). It generates the worksheet account lines for a budget group, applying account parameters from the parameter set and distributing the resulting account lines according to allocation rules. Its documented parameter is
p_return_status(standard FND_API–style status), alongside worksheet, rounding factor, stage set, service package, and start stage sequence inputs. - UPDATE_GL_BALANCES — Synchronizes general ledger balances associated with the worksheet accounts being processed.
- REVISE_ACCOUNT_PROJECTIONS — Adjusts projected (proposed-year) amounts for accounts, supporting the multi-year budgeting model.
- PROCESS_DEFERRED_CCIDS — Handles code combinations that cannot be resolved immediately and are stored in the deferred-ccid collection for later processing once dependent data is available.
- APPLY_ACCOUNT_PARAMETERS — Applies the filtering and selection rules defined in the parameter set to determine which accounts qualify for the worksheet.
- DISTRIBUTE_ACCOUNT_LINES — Spreads account amounts across periods or organizations using the allocation rules.
- CREATE_ROLLUP_TOTALS — Produces summary/rollup totals over the account hierarchies used in the budget.
- GET_DEBUG — Returns debug/diagnostic information, useful for troubleshooting worksheet generation.
Tables Accessed
The package reads and writes through APPS synonyms. It consults setup and control tables including FINANCIALS_SYSTEM_PARAMETERS, PSB_BUDGET_GROUPS, PSB_BUDGET_PERIODS, PSB_BUDGET_YEAR_TYPES, PSB_ENTITY, PSB_ENTITY_ASSIGNMENT, PSB_SERVICE_PACKAGES, and PSB_PARAMETER_FORMULAS. Account and allocation logic draws on GL_CODE_COMBINATIONS, GL_ACCOUNT_HIERARCHIES, PSB_ALLOCRULE_PERCENTS, PSB_SET_RELATIONS, and PSB_BUDGET_ACCOUNTS. Balance and budget data reside in PSB_GL_BUDGETS and PSB_GL_BUDGET_SETS. Together these tables provide the hierarchies, allocation percentages, projection rules, and account parameters required to construct and distribute worksheet account lines.
Usage Notes
Because the package is a private implementation and is referenced by four other packages, it is not intended for direct customer invocation. It is typically driven by the PSB worksheet generation flow — the budget worksheet form and its associated concurrent programs call the higher-level service package, which in turn invokes CREATE_WORKSHEET_ACCOUNTS. Customizations should call the public worksheet API rather than PSB_WS_ACCT2 directly. The package is compatible with both EBS 12.1.1 and 12.2.2, with its header last modified at version 120.5.
-
PACKAGE: APPS.PSB_WS_ACCT2
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WS_ACCT2, 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: APPS.PSB_WS_ACCT1
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WS_ACCT1, status:VALID,
-
SYNONYM: APPS.PSB_SUMMARY_TEMPLATES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_SUMMARY_TEMPLATES, status:VALID,
-
SYNONYM: APPS.PSB_GL_BUDGET_SETS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_GL_BUDGET_SETS, status:VALID,
-
SYNONYM: APPS.PSB_GL_BUDGETS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_GL_BUDGETS, status:VALID,
-
SYNONYM: APPS.GL_ACCOUNT_HIERARCHIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GL_ACCOUNT_HIERARCHIES, status:VALID,
-
SYNONYM: APPS.PSB_ALLOCRULE_PERCENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_ALLOCRULE_PERCENTS, status:VALID,
-
PACKAGE: APPS.GL_CODE_COMBINATIONS_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GL_CODE_COMBINATIONS_PKG, status:VALID,
-
PACKAGE: APPS.PSB_GL_BUDGET_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_GL_BUDGET_PVT, status:VALID,
-
SYNONYM: APPS.PSB_PARAMETER_FORMULAS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_PARAMETER_FORMULAS, status:VALID,
-
SYNONYM: APPS.PSB_ENTITY_ASSIGNMENT
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_ENTITY_ASSIGNMENT, status:VALID,
-
SYNONYM: APPS.PSB_BUDGET_ACCOUNTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_BUDGET_ACCOUNTS, 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,
-
SYNONYM: APPS.PSB_WS_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WS_LINES, status:VALID,
-
SYNONYM: APPS.PSB_BUDGET_YEAR_TYPES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_BUDGET_YEAR_TYPES, status:VALID,
-
PACKAGE: APPS.PSB_WORKSHEET
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PSB_WORKSHEET, status:VALID,
-
SYNONYM: APPS.PSB_SERVICE_PACKAGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_SERVICE_PACKAGES, 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_BUDGET_PERIODS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_BUDGET_PERIODS, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_ACCT1
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WS_ACCT1, status:VALID,
-
SYNONYM: APPS.PSB_ENTITY
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_ENTITY, status:VALID,
-
SYNONYM: APPS.PSB_SET_RELATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_SET_RELATIONS, status:VALID,
-
SYNONYM: APPS.PSB_WS_ACCOUNT_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WS_ACCOUNT_LINES, status:VALID,
-
PACKAGE BODY: APPS.PSB_WORKSHEET
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSB_WORKSHEET, status:VALID,
-
APPS.PSB_WS_ACCT_PVT SQL Statements
12.1.1
-
SYNONYM: APPS.PSB_BUDGET_GROUPS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_BUDGET_GROUPS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.PSB_WORKSHEETS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PSB_WORKSHEETS, status:VALID,
-
VIEW: APPS.PSB_SET_RELATIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PSB.PSB_SET_RELATIONS_V, object_name:PSB_SET_RELATIONS_V, status:VALID,
-
VIEW: APPS.PSB_PARAMETER_ASSIGNMENTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PSB.PSB_PARAMETER_ASSIGNMENTS_V, object_name:PSB_PARAMETER_ASSIGNMENTS_V, status:VALID,
-
PACKAGE: APPS.PSB_WS_ACCT_PVT
12.1.1
-
PACKAGE: APPS.FND_FLEX_KEYVAL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_FLEX_KEYVAL, status:VALID,
-
PACKAGE: APPS.PSB_WS_ACCT2
12.1.1
-
VIEW: APPS.PSB_BUDGET_GROUPS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PSB.PSB_BUDGET_GROUPS_V, object_name:PSB_BUDGET_GROUPS_V, status:VALID,
-
PACKAGE BODY: APPS.PSB_WS_ACCT_PVT
12.1.1
-
VIEW: APPS.PSB_WORKSHEETS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PSB.PSB_WORKSHEETS_V, object_name:PSB_WORKSHEETS_V, status:VALID,
-
SYNONYM: APPS.FINANCIALS_SYSTEM_PARAMETERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FINANCIALS_SYSTEM_PARAMETERS, status:VALID,
-
APPS.PSB_WS_POS_PVT dependencies on PSB_WS_ACCT2
12.1.1
-
APPS.PSB_WS_ACCT_PVT dependencies on PSB_WS_ACCT2
12.1.1
-
APPS.PSB_WS_ACCT1 dependencies on PSB_WS_ACCT2
12.1.1
-
APPS.PSB_WORKSHEET dependencies on PSB_WS_ACCT2
12.1.1
-
APPS.PSB_WS_ACCT2 dependencies on PSB_WS_ACCT2
12.1.1
-
PACKAGE: APPS.FND_FLEX_EXT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_FLEX_EXT, status:VALID,
-
SYNONYM: APPS.GL_CODE_COMBINATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:GL_CODE_COMBINATIONS, status:VALID,
-
PACKAGE: APPS.PSB_WORKSHEET
12.1.1
-
eTRM - PSB Tables and Views
12.1.1
description: User profiles for a worksheet ,
-
PACKAGE: APPS.PSB_WS_POS_PVT
12.1.1
-
PACKAGE BODY: APPS.PSB_WS_ACCT1
12.1.1