Search Results small_business_flag
Overview
OKX_PARTIES_WITH_ACCTS_V is a read-only view owned by the APPS schema within the OKX - Contracts Integration product family in Oracle E-Business Suite 12.1.1 and 12.2.2. The view presents a consolidated list of "parties" that have at least one associated customer account, exposing a denormalized, reporting-friendly projection of Oracle Receivables and Oracle Trading Community Architecture (TCA) party data. Its role is to supply downstream contracts integration and external reporting processes with a stable, queryable interface that pre-joins party records to their customer account context without requiring callers to navigate the TCA data model directly.
The object is documented as ETRM status VALID and is classified as a VIEW. Because it is a view rather than a table, it stores no data of its own; every query is resolved against the base tables at runtime, meaning the returned rows always reflect the current state of the underlying party and customer-account records. The view is frequently targeted by contract-generation, customer-master, and party-reporting inquiries across both the 12.1.1 and 12.2.2 releases.
Underlying Base Objects
The documented base objects referenced by the view are HZ_CUST_ACCOUNTS and HZ_PARTIES, both accessed through APPS synonyms. HZ_PARTIES (aliased P in the view text) is the TCA registry of people and organizations, and it contributes the primary identity, numbering, naming, type, and status attributes. HZ_CUST_ACCOUNTS (aliased CA) is the customer-account table that links a party to one or more bill-to or ship-to accounts.
The two tables are joined by PARTY_ID. The defining filter is an EXISTS subquery against HZ_CUST_ACCOUNTS, which restricts the result set to parties that have at least one customer account. A second predicate constrains PARTY_TYPE to the values 'PERSON' or 'ORGANIZATION'. The combined effect is a party-level roster limited to entities that are both registered parties of a recognized type and active in a customer-account context. The view therefore sits logically between pure TCA party master data and the customer-account detail layer, functioning as a lightweight bridge for integration consumers that need party attributes but only for account-bearing entities.
Key Columns
The view exposes the following columns:
- DESCRIPTION and PARTY_NUMBER — both map to HZ_PARTIES.PARTY_NUMBER, providing the human-readable party identifier.
- CUSTOMER_PROSPECT_CODE — derived with a DECODE on TOTAL_NUM_OF_ORDERS: a count of 0 yields 'PROSPECT', a count of 1 or greater yields 'CUSTOMER'.
- NAME — the party name (HZ_PARTIES.PARTY_NAME).
- PARTY_TYPE — 'PERSON' or 'ORGANIZATION'.
- B_STATUS and STATUS — the raw party status and its normalized form; the DECODE maps 'A' to 'A', while 'I', 'D', and any other value map to 'I'.
- START_DATE_ACTIVE — set to SYSDATE; END_DATE_ACTIVE — set to SYSDATE for statuses 'I' or 'D', otherwise NULL.
- WOMEN_OWNED_FLAG, SMALL_BUSINESS_FLAG, and MINORITY_GROUP_LOOKUP_CODE — all defined as literal NULL placeholders in the view text.
Common Use Cases and Queries
The view is typically used for customer/prospect classification reports, contracts integration extracts, and party lookups restricted to account-bearing entities. A representative query follows:
SELECT party_number, name, customer_prospect_code, party_type, status FROM okx_parties_with_accts_v WHERE status = 'A' ORDER BY name;SELECT customer_prospect_code, COUNT(*) FROM okx_parties_with_accts_v GROUP BY customer_prospect_code;SELECT * FROM okx_parties_with_accts_v WHERE party_type = 'ORGANIZATION' AND party_number = :p_number;
Note on small_business_flag: the column exists in the view definition but is hard-coded as NULL and carries no data from HZ_PARTIES. Queries filtering on small_business_flag IS NOT NULL will return no rows, and any logic depending on this attribute must source it elsewhere. The same limitation applies to WOMEN_OWNED_FLAG and MINORITY_GROUP_LOOKUP_CODE.
-
View: OKX_PARTIES_WITH_ACCTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PARTIES_WITH_ACCTS_V, object_name:OKX_PARTIES_WITH_ACCTS_V, status:VALID, product: OKX - Contracts Integration , description: Parties , implementation_dba_data: APPS.OKX_PARTIES_WITH_ACCTS_V ,
-
View: OKX_PARTIES_WITH_ACCTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PARTIES_WITH_ACCTS_V, object_name:OKX_PARTIES_WITH_ACCTS_V, status:VALID, product: OKX - Contracts Integration , description: Parties , implementation_dba_data: APPS.OKX_PARTIES_WITH_ACCTS_V ,
-
View: OKX_PARTIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PARTIES_V, object_name:OKX_PARTIES_V, status:VALID, product: OKX - Contracts Integration , description: Parties , implementation_dba_data: APPS.OKX_PARTIES_V ,
-
View: OKX_ORG_PARTIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ORG_PARTIES_V, object_name:OKX_ORG_PARTIES_V, status:VALID, product: OKX - Contracts Integration , description: Parties , implementation_dba_data: APPS.OKX_ORG_PARTIES_V ,
-
View: OKX_PARTIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PARTIES_V, object_name:OKX_PARTIES_V, status:VALID, product: OKX - Contracts Integration , description: Parties , implementation_dba_data: APPS.OKX_PARTIES_V ,
-
View: OKX_BUYERS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_BUYERS_V, object_name:OKX_BUYERS_V, status:VALID, product: OKX - Contracts Integration , description: Buyers , implementation_dba_data: APPS.OKX_BUYERS_V ,
-
View: OKX_EMPLOYEES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_EMPLOYEES_V, object_name:OKX_EMPLOYEES_V, status:VALID, product: OKX - Contracts Integration , implementation_dba_data: APPS.OKX_EMPLOYEES_V ,
-
View: OKX_ORG_PARTIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ORG_PARTIES_V, object_name:OKX_ORG_PARTIES_V, status:VALID, product: OKX - Contracts Integration , description: Parties , implementation_dba_data: APPS.OKX_ORG_PARTIES_V ,
-
View: OKX_VENDORS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_VENDORS_V, object_name:OKX_VENDORS_V, status:VALID, product: OKX - Contracts Integration , description: Suppliers , implementation_dba_data: APPS.OKX_VENDORS_V ,
-
View: OKX_BUYERS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_BUYERS_V, object_name:OKX_BUYERS_V, status:VALID, product: OKX - Contracts Integration , description: Buyers , implementation_dba_data: APPS.OKX_BUYERS_V ,
-
View: OKX_VENDORS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_VENDORS_V, object_name:OKX_VENDORS_V, status:VALID, product: OKX - Contracts Integration , description: Suppliers , implementation_dba_data: APPS.OKX_VENDORS_V ,
-
View: OKX_EMPLOYEES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_EMPLOYEES_V, object_name:OKX_EMPLOYEES_V, status:VALID, product: OKX - Contracts Integration , implementation_dba_data: APPS.OKX_EMPLOYEES_V ,
-
View: OKX_EMPLOYEE_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_EMPLOYEE_DETAILS_V, object_name:OKX_EMPLOYEE_DETAILS_V, status:VALID, product: OKX - Contracts Integration , implementation_dba_data: APPS.OKX_EMPLOYEE_DETAILS_V ,
-
View: OKX_ORGANIZATION_DEFS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ORGANIZATION_DEFS_V, object_name:OKX_ORGANIZATION_DEFS_V, status:VALID, product: OKX - Contracts Integration , description: Organization unit definitions , implementation_dba_data: APPS.OKX_ORGANIZATION_DEFS_V ,
-
View: OKX_ORGANIZATION_DEFS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ORGANIZATION_DEFS_V, object_name:OKX_ORGANIZATION_DEFS_V, status:VALID, product: OKX - Contracts Integration , description: Organization unit definitions , implementation_dba_data: APPS.OKX_ORGANIZATION_DEFS_V ,
-
View: OKX_EMPLOYEE_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_EMPLOYEE_DETAILS_V, object_name:OKX_EMPLOYEE_DETAILS_V, status:VALID, product: OKX - Contracts Integration , implementation_dba_data: APPS.OKX_EMPLOYEE_DETAILS_V ,