Search Results gr_phrases_b_v




Overview

The view APPS.GR_PHRASES_B_V is a language-aware reporting object within the Oracle E-Business Suite Process Manufacturing Regulatory Management (GR) module. It exposes phrase code records together with their translated main heading and sub-heading descriptions, resolving the language-dependent text at query time through the USERENV('LANG') session context. Its central role is to present regulatory phrase data in a form suitable for direct reporting and integration, sparing developers from manually joining the underlying phrase base table to the heading translation tables. The view is documented as VALID in the APPS schema and is available in both EBS 12.1.1 and 12.2.2.

Underlying Base Objects

The view is defined over three documented base objects. GR_PHRASES_B is the primary table supplying the phrase code and descriptive attribute columns. GR_MAIN_HEADINGS_TL provides the translated main heading description, joined on MAIN_HEADING_CODE with an inner join and filtered by M.LANGUAGE = USERENV('LANG'). GR_SUB_HEADINGS_TL supplies the translated sub-heading description, joined on SUB_HEADING_CODE with an outer join (indicated by the (+) syntax) and likewise filtered by S.LANGUAGE (+) = USERENV('LANG'). This structure means phrase rows always require a matching main heading in the current language, while the sub-heading is optional and will return null when no translation exists.

Key Columns

Common Use Cases and Queries

This view is typically used to build regulatory phrase listings, cross-reference reports, or integration extracts in which localized heading text is required. Because the join to the translation tables is resolved automatically, callers receive descriptions appropriate to the language set in their session. A representative query follows.

  • SELECT PHRASE_CODE, MAIN_HEADING_CODE, MAIN_DESCRIPTION, SUB_HEADING_CODE, SUB_DESCRIPTION FROM APPS.GR_PHRASES_B_V WHERE MAIN_HEADING_CODE = :heading_code;
  • SELECT PHRASE_CODE, MAIN_DESCRIPTION FROM APPS.GR_PHRASES_B_V ORDER BY MAIN_HEADING_CODE, PHRASE_CODE;

Note that the language filter is bound to USERENV('LANG'), so the returned descriptions depend on the invoking session's language environment. All access should be performed through the APPS schema, consistent with standard EBS view conventions.