Results for “apply_non_rate_base_precedence”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PA_FP_CALC_PLAN_PKG is a core PL/SQL package in the Oracle EBS Projects (PA) module that underpins the financial planning calculation engine. Its primary business function is to compute, roll up, and persist planning amounts for financial plans — budgets, forecasts, and resource-based plan versions — within Oracle Project Management and Project Financial Planning. The package translates resource assignment quantities and rates into monetary amounts, applies rate bases and non-rate bases, converts transactional currency values, and stages the results for downstream budget and forecast generation.
The package operates as a shared internal engine rather than a user-facing API. It is classified as OTHER in the ETRM 12.2.2 metadata and resides in the APPS schema with a status of VALID. It coordinates closely with temporary staging tables, budget version and budget line tables, and resource assignment data to produce plan amounts that are ultimately committed to project budgets and forecasts. Its reach is broad: it is referenced by seventeen other packages, indicating that it sits at a central point in the financial planning call graph.
Key Procedures and Functions
The package exposes nineteen documented procedures and functions. Grouped by purpose, they include:
- Reporting and staging setup: INIT_REPORTING_TBLS, ADD_TOREPORTING_TABLS — establish and extend the temporary work structures used during a calculation run.
- Budget line maintenance: DELETE_BUDGET_LINES — clears budget line records as part of regeneration or recalculation workflows.
- Input validation: CHK_REQ_RATE_API_INPUTS — validates the inputs required before rate-based calculations are invoked.
- Rollup processing: POPULATE_ROLLUP_TMP, ROLLUP_PF_PFC_TO_RA, ROLLUP_PF_PFC_TO_BV — populate the rollup staging table and aggregate plan/forecast/commitment amounts up to resource assignments and budget versions respectively.
- Currency handling: CONVERT_RA_TXN_CURRENCY — converts resource assignment transactional amounts into the plan currency context.
- Core calculation: CALCULATE — the main driver that produces calculated plan amounts.
- Comparison and rate resolution: COMPARE_WITH_BDGTLINE_VALUES, GET_RES_RATES — compare calculated values against existing budget line values and retrieve resource rates.
- Rate precedence logic: APPLY_NON_RATE_BASE_PRECEDENCE, APPLY_RATE_BASE_PRECEDENCE — determine which rate source takes priority when multiple rate bases apply.
- Rounding and globals: UPDATE_ROUNDING_DIFF, INIT_GLOBALS — reconcile rounding differences and initialize package-level global variables.
- MRC handling: POPULATE_MRC_PLSQLTABS, INIT_MRC_PLSQLTABS — manage multi-reporting-currency PL/SQL tables for MRC-enabled environments.
- Performance and exception handling: SETGATHERTMPTBLINDXSTATS, PROCESS_SKIPPED_RECORDS — gather optimizer statistics on temporary tables and process records excluded from the main pass.
Tables Accessed
The package reads and writes a documented set of tables via APPS synonyms. Budget version and line data are held in PA_BUDGET_VERSIONS and PA_BUDGET_LINES. Resource and assignment detail reside in PA_RESOURCE_ASSIGNMENTS and the staging table PA_FP_RES_ASSIGNMENTS_TMP. Rollup results are staged in PA_FP_ROLLUP_TMP, and project context is drawn from PA_PROJECTS_ALL. Currency and rate processing rely on GL_PERIODS, PA_FIN_PLAN_TYPES_B, PA_FP_GEN_RATE_TMP, PA_FP_TXN_CURRENCIES, PA_LABOR_COST_MULTIPLIERS, and PA_IMPLEMENTATIONS_ALL. Spread calculations use PA_FP_SPREAD_CALC_TMP, PA_FP_SPREAD_CALC_TMP1, and PA_FP_SPREAD_CALC_TMP2.
Usage Notes
PA_FP_CALC_PLAN_PKG is not typically called directly from forms or concurrent programs under its own name. It is invoked through higher-level public APIs and utilities such as PA_BUDGET_PUB, PA_FIN_PLAN_PVT, PA_FIN_PLAN_UTILS2, PA_FP_CALC_PLAN_PUB, PA_FP_GEN_BUDGET_AMT_PUB, PA_FP_GEN_FCST_AMT_PUB, PA_FP_SPREAD_AMTS_PKG, PA_FP_WEBADI_PKG, and PA_PROGRESS_PUB. Custom code should generally call those public entry points rather than this internal package, whose signature and behavior are subject to change between releases and patches.