Search Results fii_time_ent_qtr_from




Overview

APPS.PJI_PORTAL_DFLT_PARAMS is a PL/SQL package body that belongs to the Oracle EBS Projects Intelligence (PJI) product family, the reporting and analytics layer associated with Oracle Project Management and Oracle Project Portfolio Management. Its principal business function is to supply default parameter strings to the Oracle Daily Business Intelligence (DBI) reporting engine for project-related dashboards and portal regions. These parameter strings drive the runtime context — organization, time comparison behaviour, and enterprise quarter boundaries — that DBI uses when executing its underlying reports.

The package is a thin wrapper. It does not hold business logic of its own; instead it delegates derivation of the current organization identifier and the enterprise quarter identifier to PJI_PMV_DFLT_PARAMS_PVT, the private utility package that resolves these values from session and profile context. PJI_PORTAL_DFLT_PARAMS then formats those values into the concatenated, ampersand-delimited parameter strings expected by the DBI reporting framework. The header comment records a last source revision of 2005, indicating the package has been stable across the 12.1.1 and 12.2.2 releases.

Key Procedures and Functions

The ETRM metadata lists no separately documented procedures or functions, but the package body source exposes two public functions:

  • get_dbi_params — Returns a formatted VARCHAR2 parameter string for DBI report execution. It accepts a report-type argument defaulting to 'FM'. For the 'FM' (financial management) report type it appends an additional dimension parameter, PJI_REP_DIM_27=FII_GLOBAL1; for all other report types it returns the common parameter set only. Both branches always emit YEARLY=TIME_COMPARISON_TYPE+YEARLY, PJI_REP_DIM_2 set to the derived organization ID, and TIME+FII_TIME_ENT_QTR_FROM set to the derived enterprise quarter ID value.
  • get_dbi_organization — Returns only the derived organization ID as a VARCHAR2 value, for callers that need the organization context without the full DBI parameter string.

Both functions contain a WHEN OTHERS THEN RAISE handler, so exceptions from the derivation package propagate unchanged to the caller rather than being masked.

Tables Accessed

The ETRM metadata documents no table references, either direct or through APPS synonyms. This is consistent with the source: neither function issues SQL. All database access required to derive the organization ID and enterprise quarter value is encapsulated inside PJI_PMV_DFLT_PARAMS_PVT, which resolves those values from the caller's session context and Projects profile options. The package is therefore a pure formatting and delegation layer with no direct data dependencies of its own.

Usage Notes

The package is invoked at runtime by the DBI/portal reporting infrastructure when a project dashboard or portal region is rendered, to construct the parameter set passed to the underlying report. It may also be called from custom code that needs to replicate DBI default parameter behaviour; in that case get_dbi_organization is the more convenient entry point when only the organization context is required.

Note that the package body includes an initialization section that calls PJI_PMV_DFLT_PARAMS_PVT.InitEnvironment when the package is first loaded into the session, establishing the environment required by the derivation routines. Because the body was last revised in 2005 and remains at version 120.1, its behaviour is identical in 12.1.1 and 12.2.2; customers searching for get_dbi_params should treat it as a supported but essentially frozen integration point rather than a customization target. Any environment-specific override should be implemented by wrapping the call, not by modifying the package body, as the file carries the Oracle proprietary and confidential designation.