Results for “reference_legislation_code”
2 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PQH_REF_TEMPLATES_V is an APPS-owned database view within the Oracle E-Business Suite Public Sector HR (PQH) module. It is documented in the ETRM 12.2.2 metadata repository with a status of VALID and is described simply as a "Reference Template View." The view exposes reference template definitions configured in the Public Sector HR application, joining template master data to lookup meanings so that consumers see human-readable reference type descriptions rather than raw lookup codes. In Oracle EBS 12.1.1 and 12.2.2, this view serves reporting and integration purposes: it provides a denormalized, read-only projection of reference template hierarchy and classification data that can be queried by custom reports, concurrent programs, and interface routines without requiring direct joins across the underlying template and lookup tables. Because it is a view and not a table, no DML is permitted against it directly.
Underlying Base Objects
The documented base objects referenced by this view are HR_API (PACKAGE), HR_LOOKUPS (VIEW), PQH_REF_TEMPLATES (SYNONYM), PQH_TEMPLATES_VL (VIEW), and by extension the PQH_TEMPLATES base table through the VL view. The view text joins three sources: PQH_REF_TEMPLATES (aliased RFT), which supplies the reference template identifier, parent template identifier, base template identifier, reference type code, and standard WHO columns; PQH_TEMPLATES_VL (aliased TEM), which supplies the template name and legislation code; and HR_LOOKUPS (aliased LP), which supplies the decoded reference type meaning. The join conditions are RFT.BASE_TEMPLATE_ID = TEM.TEMPLATE_ID and RFT.REFERENCE_TYPE_CD = LP.LOOKUP_CODE with the constraint LP.LOOKUP_TYPE = 'PQH_REFERENCE_TYPE'. The HR_API package is referenced as a dependent object, reflecting the view's place within the HR API security and access layer.
Key Columns
- REF_TEMPLATE_ID — Primary identifier of the reference template record.
- PARENT_TEMPLATE_ID — Identifier of the parent template, supporting hierarchical template structures.
- BASE_TEMPLATE_ID — Foreign key to the underlying template in PQH_TEMPLATES, used to resolve TEMPLATE_NAME.
- TEMPLATE_NAME — Descriptive name of the base template, sourced from PQH_TEMPLATES_VL.
- REFERENCE_TYPE_CD — The lookup code classifying the reference type; this is the column most frequently searched when users query the view for "reference_type_cd."
- REFERENCE_TYPE — The decoded meaning of REFERENCE_TYPE_CD from HR_LOOKUPS, providing the user-facing description.
- REFERENCE_LEGISLATION_CODE — The legislation code associated with the template, sourced from the template VL view.
- WHO columns — LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN, CREATED_BY, CREATION_DATE, and OBJECT_VERSION_NUMBER, supporting auditing and optimistic locking conventions.
Common Use Cases and Queries
Typical usage includes validating reference template configuration, reporting on templates by reference type, and feeding downstream interfaces with decoded template data. A common query filtering by the searched column is:
SELECT ref_template_id, template_name, reference_type_cd, reference_type
FROM apps.pqh_ref_templates_v
WHERE reference_type_cd = :p_reference_type_cd;
To list all reference types currently in use with their decoded meanings:
SELECT DISTINCT reference_type_cd, reference_type
FROM apps.pqh_ref_templates_v
ORDER BY reference_type;
To examine template hierarchies for a given legislation:
SELECT ref_template_id, parent_template_id, base_template_id,
template_name, reference_legislation_code
FROM apps.pqh_ref_templates_v
WHERE reference_legislation_code = :p_legislation_code;
Queries should be executed against the APPS schema or through a synonym with appropriate grants, and results reflect only templates whose reference type codes exist in the PQH_REFERENCE_TYPE lookup, since the join to HR_LOOKUPS is inner.
-
View: PQH_REF_TEMPLATES_V 12.2.2
Reference Template View
APPS.PQH_REF_TEMPLATES_V·↳ HR_API·↳ HR_LOOKUPS·↳ PQH_REF_TEMPLATES·Explore PQH module →
-
View: PQH_REF_TEMPLATES_V 12.1.1
Reference Template View
APPS.PQH_REF_TEMPLATES_V·↳ FND_GLOBAL·↳ HR_API·↳ HR_LOOKUPS·Explore PQH module →