Search Results prp_style_ctntver_tokens_pk




Overview

The PRP_STYLE_CTNTVER_TOKENS table is a core data object within the Oracle E-Business Suite Proposals (PRP) module, specifically in versions 12.1.1 and 12.2.2. It functions as a repository for tokens identified within component style documents. These tokens are placeholders for dynamic content that can be replaced with actual data during the proposal generation process. The table is automatically populated by the system's parsing engine when a component style document file is uploaded, establishing a critical link between the document's structure and the data elements it can reference. Its primary role is to manage and track the metadata of these tokens, enabling the Proposals module to accurately process and render personalized document content.

Key Information Stored

The table stores metadata that maps tokens to specific document versions. The key columns, as defined by its constraints, are:

  • STYLE_CTNTVER_TOKEN_ID: The primary key column, uniquely identifying each token instance within the table.
  • COMP_STYLE_CTNTVER_ID: A foreign key column linking the token to a specific version of a component style document stored in the PRP_COMP_STYLE_CTNTVERS table. This defines the context of where the token is used.
  • TOKEN_ID: A foreign key column that references the token definition, likely in a master token table (the provided metadata indicates a self-reference or a reference to a table not fully named in the excerpt). This column holds the identifier for the token itself (e.g., &CUSTOMER_NAME&).

Common Use Cases and Queries

This table is central to operations involving the validation and reporting of tokens used in proposal templates. A common use case is auditing all tokens referenced within a specific component style document version to ensure data sources are available. For instance, a system administrator might run a query to list tokens for a document before a major data migration. Another critical scenario is troubleshooting document generation failures, where identifying unresolved or invalid tokens is necessary. A typical SQL pattern involves joining with the component style versions table to get document context:

SELECT t.token_id, v.document_name
FROM prp_style_ctntver_tokens t,
prp_comp_style_ctntvers v
WHERE t.comp_style_ctntver_id = v.comp_style_ctntver_id
AND v.comp_style_ctntver_id = :p_doc_version_id;

This table is primarily accessed by the Proposals module's internal document processing engine and is less frequently queried directly for business reporting, though it is essential for technical diagnostics and template management.

Related Objects

The PRP_STYLE_CTNTVER_TOKENS table maintains defined relationships with other key objects in the PRP schema, as per the provided metadata:

  • PRP_COMP_STYLE_CTNTVERS: This is the primary parent table. A foreign key constraint exists where PRP_STYLE_CTNTVER_TOKENS.COMP_STYLE_CTNTVER_ID references PRP_COMP_STYLE_CTNTVERS. This relationship ties each token record to a specific uploaded version of a component style document.
  • Self-Reference or Token Master Table: The metadata indicates a foreign key where PRP_STYLE_CTNTVER_TOKENS.TOKEN_ID references a column, potentially within the same table or more likely a separate token definition table (implied by the "%" in the documentation). This links the instance of a token in a document to its master definition.

The table's primary key constraint is PRP_STYLE_CTNTVER_TOKENS_PK on STYLE_CTNTVER_TOKEN_ID, and a unique key PRP_STYLE_CTNTVER_TOKENS_UK1 exists on the combination of COMP_STYLE_CTNTVER_ID and TOKEN_ID, preventing duplicate token entries for the same document version.

  • Table: PRP_STYLE_CTNTVER_TOKENS 12.2.2

    owner:PRP,  object_type:TABLE,  fnd_design_data:PRP.PRP_STYLE_CTNTVER_TOKENS,  object_name:PRP_STYLE_CTNTVER_TOKENS,  status:VALID,  product: PRP - Proposalsdescription: This table contains the tokens that are referenced by a component style document. This table is populated when the component document file is uploaded and parsed for tokens. ,  implementation_dba_data: PRP.PRP_STYLE_CTNTVER_TOKENS

  • Table: PRP_STYLE_CTNTVER_TOKENS 12.1.1

    owner:PRP,  object_type:TABLE,  fnd_design_data:PRP.PRP_STYLE_CTNTVER_TOKENS,  object_name:PRP_STYLE_CTNTVER_TOKENS,  status:VALID,  product: PRP - Proposalsdescription: This table contains the tokens that are referenced by a component style document. This table is populated when the component document file is uploaded and parsed for tokens. ,  implementation_dba_data: PRP.PRP_STYLE_CTNTVER_TOKENS