Results for “contract_status_code”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKS_ENT_K_STATUS_V is a view owned by the APPS schema within the OKS – Service Contracts module of Oracle E-Business Suite (12.1.1 and 12.2.2). Its documented description is concise: it lists all statuses of the contract. The view is a lightweight, denormalized representation of contract header status information, joining the contract header record to the FND_LOOKUPS view so that a user-friendly status meaning is returned alongside the internal status code.
Its primary role is reporting and integration. Rather than requiring callers to join OKC_K_HEADERS_ALL_B to FND_LOOKUPS manually, the view encapsulates the lookup join (LOOKUP_TYPE = 'OKC_STATUS_TYPE') and exposes a flattened result set. This makes it convenient for BI Publisher reports, OAF/ADF customizations, inbound/outbound interfaces, and ad hoc SQL where a contract's current status code and description are required. Because the status code is exposed under the column name CONTRACT_STATUS_CODE, the view is a common target when users or developers search for "contract_status_code" in an ETRM or service contracts context.
Underlying Base Objects
The view text is defined over two objects:
- OKC_K_HEADERS_B (referenced as the synonym OKC_K_HEADERS_ALL_B / APPS.OKC_K_HEADERS_B HDR) — the contract header base table that supplies AUTHORING_ORG_ID, ID, CONTRACT_NUMBER and STS_CODE.
- FND_LOOKUPS (FND) — the standard Oracle lookups view, filtered on LOOKUP_TYPE = 'OKC_STATUS_TYPE', which supplies the MEANING column.
The documented metadata also lists FND_GLOBAL (PACKAGE) among the referenced base objects, consistent with standard EBS multi-org views that rely on FND_GLOBAL for operating unit or org context. The join condition aliases FND.MEANING as CONTRACT_STATUS_NAME, and the header's STS_CODE as CONTRACT_STATUS_CODE. No status history, versioning, or child-line status is included; the view reports only the current header-level status.
Key Columns
- ORG_ID — sourced from HDR.AUTHORING_ORG_ID; the authoring/operating unit organization identifier for the contract.
- CONTRACT_ID — sourced from HDR.ID; the unique contract header identifier (surrogate key) used to join to other OKC/OKS objects.
- CONTRACT_NUMBER — sourced from HDR.CONTRACT_NUMBER; the user-visible contract number.
- CONTRACT_STATUS_CODE — sourced from HDR.STS_CODE; the internal status code value validated against lookup type OKC_STATUS_TYPE (for example the code behind statuses such as Entered, Active, Expired, Terminated, Cancelled).
- CONTRACT_STATUS_NAME — sourced from FND.MEANING; the translated display meaning of the status code, suitable for reporting without additional lookup resolution.
Common Use Cases and Queries
The view is typically used to produce contract status listings and to drive status-dependent logic. A basic status report by organization and contract number follows:
SELECT org_id, contract_number, contract_status_code, contract_status_name FROM apps.oks_ent_k_status_v;SELECT contract_id, contract_number, contract_status_name FROM apps.oks_ent_k_status_v WHERE contract_status_code = :p_status_code;SELECT contract_status_code, contract_status_name, COUNT(*) FROM apps.oks_ent_k_status_v GROUP BY contract_status_code, contract_status_name;SELECT s.contract_number FROM apps.oks_ent_k_status_v s WHERE s.org_id = :p_org_id AND s.contract_status_name = 'Active';
Typical scenarios include: filtering contracts by status for a Service Contracts dashboard; feeding a status code into a workflow or interface that expects the OKC_STATUS_TYPE lookup code; and validating that a given contract number resolves to the expected status name. Because ORG_ID derives from the authoring organization, multi-org aware queries should filter or restrict on ORG_ID where operating unit security applies. For historical status changes, users must query the underlying status history tables (such as OKC_K_HEADERS_B combined with status history objects); this view exposes only the current header status.
-
View: OKS_ENT_K_STATUS_V 12.2.2
Lists all Statuses of the Contract
APPS.OKS_ENT_K_STATUS_V·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ OKC_K_HEADERS_ALL_B·Explore OKS module →
-
View: OKS_ENT_HDR_SUMMARY_V 12.2.2
This holds all the service contracts summary and party information.
APPS.OKS_ENT_HDR_SUMMARY_V·↳ OKC_K_HEADERS_ALL_B·↳ OKC_K_PARTY_ROLES_B·↳ OKC_SUBCLASSES_B·Explore OKS module →
-
View: OKS_ENT_HEADERS_V 12.2.2
View of all contracts
APPS.OKS_ENT_HEADERS_V·↳ OKC_K_HEADERS_ALL_B·↳ OKC_K_HEADERS_TL·↳ OKC_K_PARTY_ROLES_B·Explore OKS module →
-
Container for enrollment requests submitted for membership into programs.
-
View for Expired COntracts
APPS.OKS_EXPIRED_CONTRACTS_V·↳ CSICUMPI_PUB·↳ CS_CUSTOMER_PRODUCTS_ALL·↳ HZ_PARTIES·Explore OKS module →
-
APPS.AHL_WARRANTY_CONTRACTS_VL·↳ AHL_WARRANTY_CONTRACTS_B·↳ AHL_WARRANTY_CONTRACTS_TL·Explore AHL module →
-
View: OKL_TRX_EXTENSION_V 12.1.1
Transaction header extension view
APPS.OKL_TRX_EXTENSION_V·↳ OKL_TRX_EXTENSION_B·↳ OKL_TRX_EXTENSION_TL·Explore OKL module →
-
View: OKS_ENT_K_STATUS_V 12.1.1
Lists all Statuses of the Contract
APPS.OKS_ENT_K_STATUS_V·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ OKC_K_HEADERS_ALL_B·Explore OKS module →
-
View: OKS_ENT_HDR_SUMMARY_V 12.1.1
This holds all the service contracts summary and party information.
APPS.OKS_ENT_HDR_SUMMARY_V·↳ OKC_K_HEADERS_ALL_B·↳ OKC_K_PARTY_ROLES_B·↳ OKC_SUBCLASSES_B·Explore OKS module →
-
View: OKL_TRX_EXTENSION_V 12.2.2
Transaction header extension view
APPS.OKL_TRX_EXTENSION_V·↳ OKL_TRX_EXTENSION_B·↳ OKL_TRX_EXTENSION_TL·Explore OKL module →
-
APPS.OKL_EXT_FA_HEADER_SOURCES_V·↳ OKL_EXT_FA_HEADER_SOURCES_B·↳ OKL_EXT_FA_HEADER_SOURCES_TL·Explore OKL module →
-
Table to store Contract records
-
View for Expired COntracts
APPS.OKS_EXPIRED_CONTRACTS_V·↳ CSICUMPI_PUB·↳ CS_CUSTOMER_PRODUCTS_ALL·↳ HZ_PARTIES·Explore OKS module →
-
Lease transactions header extension table
-
This is the main Contracts table. This table stores the latest version of all Repository-authored contracts.
-
View: OKS_ENT_HEADERS_V 12.1.1
View of all contracts
APPS.OKS_ENT_HEADERS_V·↳ OKC_K_HEADERS_ALL_B·↳ OKC_K_HEADERS_TL·↳ OKC_K_PARTY_ROLES_B·Explore OKS module →
-
Container for enrollment requests submitted for membership into programs.
-
Fixed Assets transactions header extension table
-
Payables transactions header extension table
-
APPS.OKL_EXT_FA_HEADER_SOURCES_V·↳ OKL_EXT_FA_HEADER_SOURCES_B·↳ OKL_EXT_FA_HEADER_SOURCES_TL·Explore OKL module →
-
View: OKL_AM_QUOTES_UV 12.1.1
APPS.OKL_AM_QUOTES_UV·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ HZ_PARTIES·Explore OKL module →
-
APPS.OKL_EXT_AR_HEADER_SOURCES_V·↳ OKL_EXT_AR_HEADER_SOURCES_B·↳ OKL_EXT_AR_HEADER_SOURCES_TL·Explore OKL module →
-
APPS.OKL_EXT_AP_HEADER_SOURCES_V·↳ OKL_EXT_AP_HEADER_SOURCES_B·↳ OKL_EXT_AP_HEADER_SOURCES_TL·Explore OKL module →
-
Lease transactions header extension table
-
This is a temporary table for storing imported contract header attributes. It is used for validating contract attributes, preparing contract header data for importing into Contracts Repository schema and generating error output file for inv
-
Table: OKC_REP_CONTRACT_VERS 12.1.1
Stores all previous versions of a contract.
-
This table stores previous versions of a contract.
-
Payables transactions header extension table
-
Receivables transactions header extension table
-
View: OKL_AM_ASSET_QUOTES_UV 12.2.2
APPS.OKL_AM_ASSET_QUOTES_UV·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ OKC_K_HEADERS_B·Explore OKL module →
-
APPS.OKL_EXT_AP_HEADER_SOURCES_V·↳ OKL_EXT_AP_HEADER_SOURCES_B·↳ OKL_EXT_AP_HEADER_SOURCES_TL·Explore OKL module →
-
APPS.OKL_EXT_AR_HEADER_SOURCES_V·↳ OKL_EXT_AR_HEADER_SOURCES_B·↳ OKL_EXT_AR_HEADER_SOURCES_TL·Explore OKL module →
-
View: OKL_AM_ASSET_QUOTES_UV 12.1.1
APPS.OKL_AM_ASSET_QUOTES_UV·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ OKC_K_HEADERS_B·Explore OKL module →
-
View: OKL_AM_QUOTES_UV 12.2.2
APPS.OKL_AM_QUOTES_UV·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ HZ_PARTIES·Explore OKL module →
-
This table is the main Contracts table. This table stores the latest version of all contracts authored in Contract Repository.
-
Fixed Assets transactions header extension table
-
Receivables transactions header extension table