Results for “pos_participant_type”

50+ results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

APPS.EGO_COMPANIES_V is a reporting and integration view in Oracle E-Business Suite 12.1.1 and 12.2.2 that exposes a consolidated, de-normalized roster of organizations that participate in the Product Information Management / Enterprise Data Management (EGO) model. The view is owned by the APPS schema and is constructed over HZ_PARTIES and its associated party-level attributes, filtering to organization parties that are active and that qualify as a trading partner of the enterprise in one of three categories: enterprise participants, active customers, or suppliers.

The object is particularly relevant in EGO/Trading Community Architecture (TCA) contexts, where company-level data must be presented without requiring callers to join multiple party and customer tables manually. A distinctive characteristic of the view is its use of the POS_PARTICIPANT_TYPE code assignment category to identify parties that carry the ENTERPRISE classification; this classification drives the derived COMPANY_TYPE column. Because the view normalizes participant, customer, and supplier status into a single COMPANY_TYPE expression, it is frequently used by reports and interfaces that need a uniform list of "companies" regardless of the underlying party role.

Underlying Base Objects

The view is defined over the following documented base objects: HZ_PARTIES, HZ_CUST_ACCOUNTS, HZ_CODE_ASSIGNMENTS, AP_SUPPLIERS, FND_LOOKUP_VALUES, and FND_TERRITORIES_TL (all referenced via public synonyms). The primary driver is HZ_PARTIES, aliased as COMPANY in the view text, restricted to PARTY_TYPE = 'ORGANIZATION', STATUS = 'A', and PARTY_NAME <> '####'.

  • HZ_PARTIES supplies identity and address attributes (PARTY_ID, PARTY_NAME, ADDRESS1–4, CITY, COUNTY, PROVINCE, STATE, POSTAL_CODE, COUNTRY).
  • HZ_CODE_ASSIGNMENTS is correlated on OWNER_TABLE_ID = PARTY_ID with CLASS_CATEGORY = 'POS_PARTICIPANT_TYPE' and CLASS_CODE = 'ENTERPRISE' to detect enterprise participation.
  • HZ_CUST_ACCOUNTS is correlated on PARTY_ID with STATUS = 'A' to detect active customer accounts.
  • AP_SUPPLIERS is correlated on PARTY_ID to detect supplier relationships.
  • FND_LOOKUP_VALUES resolves the COMPANY_TYPE meaning from the COMPANY_TYPE lookup type for codes ENTERPRISE, CUSTOMER, or VENDOR, in the user's language.
  • FND_TERRITORIES_TL resolves the COUNTRY column to a territory short name using USERENV('LANG').

Key Columns

  • COMPANY_ID — the HZ_PARTIES.PARTY_ID; the primary identifier for the company.
  • COMPANY_NAME — the party name.
  • ADDRESS1, ADDRESS2, ADDRESS3, ADDRESS4, CITY, COUNTY, PROVINCE, STATE, POSTAL_CODE — address attributes sourced directly from the party record.
  • COUNTRY — derived from FND_TERRITORIES_TL via the party's COUNTRY code and the session language.
  • COMPANY_TYPE — a CASE-derived classification returning the lookup meaning for ENTERPRISE when a POS_PARTICIPANT_TYPE assignment exists, otherwise CUSTOMER when an active HZ_CUST_ACCOUNTS row exists, otherwise VENDOR.

The COMPANY_TYPE derivation gives precedence to enterprise classification over customer and supplier status, so a party that is both an enterprise participant and a supplier will report as ENTERPRISE.

Common Use Cases and Queries

Typical uses include supplier/customer master validation, EGO company listings, and integration extracts requiring a single company reference. The view is often queried in LOV-style lookups for company selection.

List all companies with their classification:

SELECT company_id, company_name, city, state, country, company_type FROM apps.ego_companies_v ORDER BY company_name;

Retrieve only enterprise participants:

SELECT company_id, company_name FROM apps.ego_companies_v WHERE company_type = (SELECT meaning FROM fnd_lookup_values WHERE lookup_type = 'COMPANY_TYPE' AND lookup_code = 'ENTERPRISE' AND language = USERENV('LANG'));

Filter by warehouse location (for example, a specific country):

SELECT company_id, company_name, country FROM apps.ego_companies_v WHERE country = 'US';

Because the view applies EXISTS-based filters, results are limited to parties with an enterprise code assignment, an active customer account, or a supplier record, which makes it suitable as a master company reference but unsuitable for a complete HZ_PARTIES extract.