Search Results template_catg_code




Overview

The PRP_TEMPLATE_CATGS_B table is a core data definition table within the Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2, owned by the PRP (Proposal Center) application. It serves as the base table for storing the fundamental, language-independent attributes of template categories. These categories are used within the Proposal Center module to classify and organize various templates, which are foundational components for creating structured business documents like sales proposals, contracts, and statements of work. The table's primary role is to provide a unique, normalized reference for template category definitions, ensuring data integrity and supporting multi-language capabilities through its associated translation table.

Key Information Stored

The table's structure is designed to store administrative, identification, and extensibility data. The most critical columns are the identifiers and the category code. The TEMPLATE_CATG_ID column is the primary key, a unique numeric identifier for each category record. The TEMPLATE_CATG_CODE column is a unique, 30-character alphanumeric code that serves as a key for application logic and integration; this is the specific column referenced in the user's search. The OBJECT_VERSION_NUMBER column supports the Oracle Application Development Framework (ADF) and is used for optimistic locking to manage concurrent data access. Standard "Who" columns (CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN) provide audit trails. A set of fifteen ATTRIBUTE columns and an ATTRIBUTE_CATEGORY column enable customization through Descriptive Flexfields (DFFs), allowing implementations to extend the table with context-specific data.

Common Use Cases and Queries

This table is central to setup and reporting activities within Proposal Center. A primary use case is the administration of template categories via the EBS front-end, where the unique TEMPLATE_CATG_CODE is a mandatory entry. For reporting and data validation, common SQL queries involve joining this base table with its translation table to retrieve user-friendly names. A typical pattern is to query for all active categories or to find the base record for a specific code, which is essential for integration scripts or troubleshooting data issues.

  • Retrieve all template categories with their internal code and ID:
    SELECT template_catg_id, template_catg_code FROM prp.prp_template_catgs_b ORDER BY template_catg_code;
  • Find a specific category by its unique code:
    SELECT * FROM prp.prp_template_catgs_b WHERE template_catg_code = '<CODE_VALUE>';
  • Join with Translation table for language-specific names:
    SELECT b.template_catg_code, tl.name FROM prp.prp_template_catgs_b b, prp.prp_template_catgs_tl tl WHERE b.template_catg_id = tl.template_catg_id AND tl.language = USERENV('LANG');

Related Objects

The PRP_TEMPLATE_CATGS_B table has a direct and critical relationship with its translation table, which stores the language-specific names and descriptions. This relationship is defined by a foreign key constraint.

  • PRP_TEMPLATE_CATGS_TL: This is the primary related object. The TL (Translation) table holds the translated NAME and DESCRIPTION for each template category in multiple languages. It references the PRP_TEMPLATE_CATGS_B table via the TEMPLATE_CATG_ID foreign key column. Any valid record in the base table must have corresponding translation rows for each installed language. The relationship is foundational for the EBS multi-language support (MLS) architecture within the PRP module.