Results for “pqh_templates”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PQH_TEMPLATES is a position control data security table within the Public Sector HR (PQH) product family in Oracle E-Business Suite. It resides in the HR schema and is documented as VALID in both 12.1.1 and 12.2.2. The table defines reusable templates that govern how position control transactions are processed, secured, and routed through the approval workflow. Each row represents a template configuration that drives transaction categories, role assignments, attribute inheritance, and reference template relationships.
From a Data Vault modeling perspective, the FK structure suggests PQH_TEMPLATES functions as a hub. It holds a single surrogate primary key (TEMPLATE_ID) and is referenced by multiple downstream tables — PQH_REF_TEMPLATES, PQH_ROLE_TEMPLATES, PQH_TEMPLATE_ATTRIBUTES, and PQH_TRANSACTION_TEMPLATES — each of which links back to it. This hub classification reflects the table's central role as the anchor entity for all template-related relationships. The ZD_EDITION_NAME column indicates integration with Oracle's edition-based redefinition (EBR), which is significant for 12.2.x environments where online patching is used.
Key Information Stored
The table contains 18 documented columns. The most operationally significant are:
- TEMPLATE_ID — surrogate primary key (PQH_TEMPLATES_PK, composite with ZD_EDITION_NAME).
- SHORT_NAME — business-key candidate (PQH_TEMPLATES_UK, composite with ZD_EDITION_NAME); used for human-readable identification.
- TEMPLATE_NAME — descriptive name displayed in setup and configuration forms.
- TEMPLATE_TYPE_CD — discriminator controlling template behavior and processing rules.
- TRANSACTION_CATEGORY_ID — foreign key to PQH_TRANSACTION_CATEGORIES; classifies the template by transaction type.
- ATTRIBUTE_ONLY_FLAG — indicates whether the template applies only to attribute-level processing.
- ENABLE_FLAG — controls whether the template is active and selectable.
- CREATE_FLAG — governs creation-time behavior for the template.
- UNDER_REVIEW_FLAG — flags templates pending review or approval.
- FREEZE_STATUS_CD — indicates whether the template is frozen from modification.
- LEGISLATION_CODE — localization/legislative context for the template.
- OBJECT_VERSION_NUMBER — optimistic locking column used by the Oracle framework for concurrent update control.
- LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN, CREATED_BY, CREATION_DATE — standard audit columns.
- ZD_EDITION_NAME — EBR edition discriminator, part of both unique indexes.
Both unique indexes include ZD_EDITION_NAME, meaning uniqueness is enforced per edition — a critical consideration when querying across editions in 12.2.2.
Common Use Cases and Queries
Typical scenarios include auditing active templates for a given legislation, identifying templates tied to specific transaction categories, and verifying which templates are frozen or under review. Reporting queries commonly join PQH_TEMPLATES to PQH_TRANSACTION_CATEGORIES to resolve category descriptions:
- List enabled templates:
SELECT template_id, short_name, template_name FROM pqh_templates WHERE enable_flag = 'Y' AND NVL(freeze_status_cd,'N') <> 'F' ORDER BY short_name; - Join to transaction categories:
SELECT t.short_name, c.category_name FROM pqh_templates t, pqh_transaction_categories c WHERE t.transaction_category_id = c.transaction_category_id; - Find templates with attribute-level scope:
SELECT * FROM pqh_templates WHERE attribute_only_flag = 'Y'; - Identify templates under review:
SELECT template_id, short_name FROM pqh_templates WHERE under_review_flag = 'Y';
In 12.2.2, edition-aware queries should filter on ZD_EDITION_NAME or use the EBR views to avoid returning rows across multiple editions.
Related Objects
- PQH_TRANSACTION_CATEGORIES — referenced via PQH_TEMPLATES.TRANSACTION_CATEGORY_ID; provides category context.
- PQH_REF_TEMPLATES — references PQH_TEMPLATES via PARENT_TEMPLATE_ID and BASE_TEMPLATE_ID; models template inheritance and derivation.
- PQH_ROLE_TEMPLATES — references TEMPLATE_ID; maps roles to templates for security routing.
- PQH_TEMPLATE_ATTRIBUTES — references TEMPLATE_ID; stores attribute-level configuration per template.
- PQH_TRANSACTION_TEMPLATES — references TEMPLATE_ID; links transactions to their governing template.
Together these tables form the template-centric cluster that underpins position control data security in Public Sector HR.
-
Position control data security
-
Position control data security
-
SYNONYM: APPS.PQH_TEMPLATES 12.2.2
-
SYNONYM: APPS.PQH_TEMPLATES 12.1.1
-
TABLE: HR.PQH_TEMPLATES 12.1.1
-
TABLE: HR.PQH_TEMPLATES 12.2.2
-
PACKAGE: APPS.PQH_RFT_BUS 12.2.2
-
PACKAGE: APPS.PQH_RFT_BUS 12.1.1
-
VIEW: HR.PQH_TEMPLATES# 12.2.2
-
PACKAGE: APPS.PQH_TEM_SHD 12.2.2
-
PACKAGE: APPS.PQH_TEM_SHD 12.1.1
-
TRIGGER: APPS.PQH_TEMPLATES+ 12.2.2