Search Results close_period_name
Overview
OKI_SALES_K_HDRS is a core table within the Oracle E-Business Suite Contracts Intelligence (OKI) module, a component of the ETRM (Enterprise Trade and Revenue Management) product family. It stores information about contracts of the sell intent — that is, the header-level records representing sales-side contracts tracked and analyzed by Contracts Intelligence. In Oracle EBS 12.1.1 and 12.2.2, this table serves as the primary repository for the contract header attributes that drive downstream reporting, forecasting, approval, renewal, and revenue analysis.
The table resides in the OKI schema and is documented as VALID with 92 columns in the ETRM 12.1.1 physical schema. Its primary key is OKI_SALES_K_HDRS_PK, defined on the CHR_ID column. Two unique indexes provide business-key candidates: OKI_SALES_K_HDRS_U1 on CHR_ID and OKI_SALES_K_HDRS_U2 on the combination of CONTRACT_NUMBER and CONTRACT_NUMBER_MODIFIER, which together form the human-readable contract identifier.
The heuristic Data Vault classification mined from the foreign key structure is standalone. This suggests that, from a modeling perspective, OKI_SALES_K_HDRS behaves as an independent entity rather than as a link or satellite attached to a parent hub within a Data Vault construct. Its foreign keys point outward to reference and setup tables (FND_SECURITY_GROUPS, MTL_INV_PICKING_RULES, and PN_PAYMENT_TERMS_ALL) rather than to upstream transactional hubs.
Key Information Stored
The table captures the full commercial, financial, temporal, and organizational profile of each sales contract. Among the most significant columns are:
- CHR_ID — the surrogate primary key uniquely identifying each contract header record.
- CONTRACT_NUMBER and CONTRACT_NUMBER_MODIFIER — the business-key components that, combined as OKI_SALES_K_HDRS_U2, produce the user-facing contract identifier. COMPLETE_CONTRACT_NUMBER presents the concatenated form.
- CUSTOMER_PARTY_ID and CUSTOMER_NAME — identify the counterparty to the sales contract.
- CONTRACT_AMOUNT and CURRENCY_CODE — the headline value and currency of the agreement, with BASE_CONTRACT_AMOUNT and BASE_CURRENCY_CODE providing the functional-currency equivalent.
- START_DATE, END_DATE, CLOSE_DATE, DATE_APPROVED, DATE_SIGNED, and DATE_TERMINATED — the lifecycle milestone dates.
- START_PERIOD_NAME, START_QUARTER, START_YEAR, CLOSE_PERIOD_NAME, CLOSE_QUARTER, and CLOSE_YEAR — pre-derived period attributes supporting analytics without date arithmetic.
- IS_NEW_YN and IS_LATEST_YN — flags distinguishing newly created and most-recent versions.
- MAJOR_VERSION and MINOR_VERSION — version tracking for contract amendments.
- AUTHORING_ORG_ID and ORGANIZATION_NAME — the owning organization.
- CONTRACT_TYPE and AGREEMENT_ID — classification and linkage to sourcing agreements.
- SECURITY_GROUP_ID, CREATION_DATE, and LAST_UPDATE_DATE — standard audit and access-control columns.
Common Use Cases and Queries
Typical reporting scenarios include active contract listings, revenue forecasting, renewal pipelines, and contract value by customer or organization. A representative query might be:
- Listing current, active sell-side contracts with their base amounts: SELECT contract_number, customer_name, base_contract_amount, base_currency_code FROM oki_sales_k_hdrs WHERE is_latest_yn = 'Y' AND end_date >= SYSDATE;
- Aggregating contract value by organization and currency for financial dashboards, grouping on AUTHORING_ORG_ID and BASE_CURRENCY_CODE.
- Identifying contracts approaching expiry for renewal preparation, filtering on END_DATE within a forward window and RENEWAL_TYPE_USED.
- Version analysis, comparing MAJOR_VERSION and MINOR_VERSION across records sharing CONTRACT_NUMBER and CONTRACT_NUMBER_MODIFIER where IS_LATEST_YN is not 'Y'.
- Forecast reporting using FORECAST_AMOUNT, BASE_FORECAST_AMOUNT, and WIN_PERCENT for weighted pipeline estimates.
Because the table exposes pre-derived START_QUARTER, START_YEAR, CLOSE_QUARTER, and CLOSE_YEAR columns, period-based rollups can be written without complex date functions, improving query performance in large datasets.
Related Objects
The documented foreign keys establish these significant relationships:
- FND_SECURITY_GROUPS — joined via SECURITY_GROUP_ID, governing row-level access control.
- MTL_INV_PICKING_RULES — joined via INV_RULE_ID, defining inventory picking rules for the contract.
- PN_PAYMENT_TERMS_ALL — joined via PAYMENT_TERM_ID, supplying payment term definitions.
In addition, related OKI tables and views (such as line-level or detail tables sharing CHR_ID as a foreign key) depend on this header, and standard EBS APIs for contract creation and maintenance operate against it. The AGREEMENT_ID column links to sourcing agreement structures, while AUTHORING_ORG_ID ties to HR and inventory organization definitions.
-
Table: OKI_SALES_K_HDRS
12.1.1
owner:OKI, object_type:TABLE, fnd_design_data:OKI.OKI_SALES_K_HDRS, object_name:OKI_SALES_K_HDRS, status:VALID, product: OKI - Contracts Intelligence , description: Information about contracts of the sell intent. , implementation_dba_data: OKI.OKI_SALES_K_HDRS ,
-
View: OKI_SALES_K_NEW_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKI.OKI_SALES_K_NEW_V, object_name:OKI_SALES_K_NEW_V, status:VALID, product: OKI - Contracts Intelligence , description: Information about new contracts, those that are not renewals of previous contracts. , implementation_dba_data: APPS.OKI_SALES_K_NEW_V ,
-
View: OKI_SALES_K_HEADERS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKI.OKI_SALES_K_HEADERS_V, object_name:OKI_SALES_K_HEADERS_V, status:VALID, product: OKI - Contracts Intelligence , description: Information about contracts with the sell intent. , implementation_dba_data: APPS.OKI_SALES_K_HEADERS_V ,
-
View: OKI_SALES_K_RENEW_V
12.2.2
product: OKI - Contracts Intelligence (Obsolete) , description: Information about renewal contracts. , implementation_dba_data: Not implemented in this database ,
-
View: OKI_SALES_K_NEW_V
12.2.2
product: OKI - Contracts Intelligence (Obsolete) , description: Information about new contracts, those that are not renewals of previous contracts. , implementation_dba_data: Not implemented in this database ,
-
View: OKI_SALES_K_HEADERS_V
12.2.2
product: OKI - Contracts Intelligence (Obsolete) , description: Information about contracts with the sell intent. , implementation_dba_data: Not implemented in this database ,
-
View: OKI_SALES_K_RENEW_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKI.OKI_SALES_K_RENEW_V, object_name:OKI_SALES_K_RENEW_V, status:VALID, product: OKI - Contracts Intelligence , description: Information about renewal contracts. , implementation_dba_data: APPS.OKI_SALES_K_RENEW_V ,
-
VIEW: APPS.OKI_SALES_K_NEW_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKI.OKI_SALES_K_NEW_V, object_name:OKI_SALES_K_NEW_V, status:VALID,
-
VIEW: APPS.OKI_SALES_K_RENEW_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKI.OKI_SALES_K_RENEW_V, object_name:OKI_SALES_K_RENEW_V, status:VALID,
-
VIEW: APPS.OKI_SALES_K_HEADERS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKI.OKI_SALES_K_HEADERS_V, object_name:OKI_SALES_K_HEADERS_V, status:VALID,
-
TABLE: OKI.OKI_SALES_K_HDRS
12.1.1
owner:OKI, object_type:TABLE, fnd_design_data:OKI.OKI_SALES_K_HDRS, object_name:OKI_SALES_K_HDRS, status:VALID,
-
APPS.OKI_REFRESH_PVT SQL Statements
12.1.1
-
eTRM - OKI Tables and Views
12.1.1
description: Holds information about the value of renewed contracts on a historical basis. ,
-
PACKAGE BODY: APPS.OKI_REFRESH_PVT
12.1.1
-
APPS.OKI_REFRESH_PVT dependencies on OKI_SALES_K_HDRS
12.1.1