Search Results label_class_code




Overview

The GR_LABEL_CLASSES_TL table is a core data object within the Oracle E-Business Suite (EBS) Process Manufacturing Regulatory Management (GR) module. It functions as a translation table, storing multilingual descriptions for Label Classes. Its primary role is to support global deployments by enabling the user interface and reports to display Label Class descriptions in the language of the user's session. The table is intrinsically linked to its base table, GR_LABEL_CLASSES_B, which holds the language-independent transactional data. This TL (Translation) table architecture is a standard Oracle EBS design pattern for enabling multilingual capabilities.

Key Information Stored

The table stores translated text for each Label Class across installed languages. Its structure is defined by a composite primary key and several critical descriptive columns. The key columns are LABEL_CLASS_CODE, which links to the base table, and LANGUAGE, which identifies the translation language (e.g., 'US', 'FR'). The SOURCE_LANG column records the original language in which the data was entered, which is crucial for seed data and synchronization. The most significant data column is DESCRIPTION, which holds the translated text for the Label Class. Additional standard Oracle columns like CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, and LAST_UPDATED_BY track row history.

Common Use Cases and Queries

The primary use case is retrieving a user-friendly Label Class description for display in forms, reports, and self-service pages based on the current application language. It is also critical for data migration and translation efforts when deploying the GR module in new regions. A common query pattern joins this table to its base table to fetch a complete, language-specific record.

  • Fetching Translated Descriptions for a Session:
    SELECT b.LABEL_CLASS_CODE, tl.DESCRIPTION
    FROM GR_LABEL_CLASSES_B b, GR_LABEL_CLASSES_TL tl
    WHERE b.LABEL_CLASS_CODE = tl.LABEL_CLASS_CODE
    AND tl.LANGUAGE = USERENV('LANG');
  • Identifying All Translations for a Specific Label Class:
    SELECT LANGUAGE, DESCRIPTION, SOURCE_LANG
    FROM GR_LABEL_CLASSES_TL
    WHERE LABEL_CLASS_CODE = '<CODE>'
    ORDER BY LANGUAGE;

Related Objects

GR_LABEL_CLASSES_TL has defined foreign key relationships with several key EBS tables, establishing its place in the data model.

  • GR_LABEL_CLASSES_B: This is the primary base table. The foreign key on GR_LABEL_CLASSES_TL.LABEL_CLASS_CODE references GR_LABEL_CLASSES_B, ensuring every translation corresponds to a valid base record.
  • FND_LANGUAGES (via LANGUAGE column): The foreign key on the LANGUAGE column validates that the translation language is an active, installed language within the EBS instance.
  • FND_LANGUAGES (via SOURCE_LANG column): A second foreign key on the SOURCE_LANG column also references FND_LANGUAGES, validating the language code of the original source data.