Search Results okx_orderhead
Overview
OKS_OC_INT_KTO_PVT is a private PL/SQL package in the Oracle EBS Service Contracts (OKS) module. Its name reflects its role: an integration (INT) package that supports the K-to-O ("K to Order") flow, where a contract (OKC "K" header, i.e., the Service Contract) is used to generate a sales order (OE/ASO "O"). The package provides the programmatic bridge that transforms contract header and line data into quote input records, which are then handed to Oracle Order Management's order-creation interface. In practice, this supports business scenarios where a service contract or subscription entitlement must trigger creation of an associated order — for example, service renewal or subscription-based order generation.
The package is classified as a private (PVT) API, meaning it is intended for internal use by other OKS/OC components rather than as a public integration point for customer extensions. Its source header (OKSRKTOS.pls) and the documented metadata confirm it is part of the seeded APPS schema, compiled under Oracle EBS 12.1.1 and 12.2.2.
Key Procedures and Functions
The metadata documents a single procedure:
- CREATE_ORDER_FROM_K — Creates an order from a contract by populating quote input records derived from the contract as the initial stage. It accepts a contract identifier and associated context (customer, group, operating unit, contract header/line ranges, and default date), and returns the identifier of the created order. Internally it calls ASO_ORDER_INT.CREATE_ORDER to perform the actual order creation. Output parameters report API return status, message count, and message data, consistent with the standard Oracle EBS API error-handling convention. A documented bug fix (Bug 4915691) is reflected in the inclusion of contract line ID low/high range parameters, indicating support for processing contract lines in bounded batches.
No other procedures or functions are documented in the available metadata.
Tables Accessed
The package references the following tables (via APPS synonyms), reflecting its contract-to-order transformation role:
- OKC_K_HEADERS_B, OKC_K_LINES_B, OKC_K_ITEMS, OKC_K_GRPINGS, OKC_K_PARTY_ROLES_B — Core Service Contracts structures providing contract header, line, item, grouping, and party-role data used as the source of order content.
- OKC_LINE_STYLES_B, OKC_ROLE_SOURCES, OKC_STATUSES_B — Contract configuration and status reference data needed to interpret lines, roles, and lifecycle state.
- OKS_SUBSCR_ELEMENTS — Subscription elements used in subscription-oriented contract-to-order scenarios.
- OE_ORDER_HEADERS_ALL — The Order Management order header target/validation structure for the generated order.
- HZ_LOCATIONS, JTF_OBJECTS_B — Party location and JTF object references supporting customer/site and object context.
- PLITBLM — The standard PL/SQL message table used by the API's messaging framework.
Usage Notes
Because OKS_OC_INT_KTO_PVT is a private API, it is not intended for direct invocation by external or custom code. It is referenced by one other package, indicating it sits within an internal OKS call chain. It is typically invoked indirectly — for example, from Service Contracts UI flows, concurrent/order-generation processes, or other internal packages that need to programmatically derive a sales order from a contract. Developers extending the K-to-Order process should call the supported parent API rather than this PVT package, and must respect the documented API conventions (API version, message list initialization, and return-status checking). The presence of contract header and line range parameters further suggests its use in batch or bounded processing contexts.
-
PACKAGE: APPS.OKS_OC_INT_KTO_PVT
12.2.2
-
VIEW: APPS.OKS_BILLING_HISTORY_V
12.1.1
-
PACKAGE: APPS.OKS_OC_INT_KTO_PVT
12.1.1
-
VIEW: APPS.OKS_BILLING_HISTORY_V
12.2.2
-
PACKAGE: APPS.OKS_INTEGRATION_UTIL_PUB
12.1.1
-
PACKAGE: APPS.OKS_INTEGRATION_UTIL_PUB
12.2.2
-
PACKAGE: APPS.OKC_OC_INT_KTQ_PVT
12.2.2
-
PACKAGE: APPS.OKC_OC_INT_KTO_PVT
12.2.2
-
PACKAGE: APPS.OKC_OC_INT_KTO_PVT
12.1.1
-
PACKAGE: APPS.OKC_OC_INT_KTQ_PVT
12.1.1
-
APPS.OKC_CRJ_PVT SQL Statements
12.1.1
-
APPS.OKC_CRJ_PVT SQL Statements
12.2.2
-
APPS.OKS_EXTWAR_UTIL_PVT SQL Statements
12.2.2
-
APPS.OKS_EXTWAR_UTIL_PVT SQL Statements
12.1.1
-
PACKAGE: APPS.OKC_K_REL_OBJS_PUB
12.1.1
-
PACKAGE: APPS.OKC_K_REL_OBJS_PUB
12.2.2
-
PACKAGE: APPS.OKS_EXTWARPRGM_OSO_PVT
12.2.2
-
PACKAGE: APPS.OKS_EXTWARPRGM_OSO_PVT
12.1.1
-
PACKAGE: APPS.OKS_CONTRACTS_PUB
12.2.2
-
APPS.OKI_REFRESH_PVT SQL Statements
12.1.1
-
PACKAGE: APPS.OKS_CONTRACTS_PUB
12.1.1
-
PACKAGE BODY: APPS.OKC_K_REL_OBJS_PUB
12.1.1
-
PACKAGE BODY: APPS.OKC_K_REL_OBJS_PUB
12.2.2
-
APPS.OKC_K_REL_OBJS_PUB dependencies on JTF_OBJECTS_B
12.1.1
-
APPS.OKS_EXTWAR_UTIL_PVT dependencies on OKC_K_REL_OBJS
12.2.2
-
APPS.OKC_K_REL_OBJS_PUB dependencies on JTF_OBJECTS_B
12.2.2
-
APPS.OKS_EXTWAR_UTIL_PVT dependencies on OKC_K_REL_OBJS
12.1.1
-
APPS.OKS_IBINT_PUB SQL Statements
12.1.1
-
PACKAGE: APPS.OKS_EXTWARPRGM_PVT
12.1.1
-
APPS.OKS_IBINT_PUB dependencies on OKC_K_HEADERS_V
12.1.1
-
APPS.OKS_IBINT_PUB dependencies on OKC_K_HEADERS_V
12.2.2
-
PACKAGE: APPS.OKS_EXTWARPRGM_PVT
12.2.2
-
APPS.OKS_CONTRACTS_PUB dependencies on OKC_K_REL_OBJS_PUB
12.2.2
-
APPS.OKS_CONTRACTS_PUB dependencies on OKC_K_REL_OBJS_PUB
12.1.1
-
APPS.OKS_IBINT_PUB SQL Statements
12.2.2
-
APPS.OKS_IBINT_PUB dependencies on OKC_K_REL_OBJS
12.2.2
-
APPS.OKS_IBINT_PUB dependencies on OKC_K_REL_OBJS
12.1.1
-
APPS.OKS_EXTWARPRGM_OSO_PVT dependencies on OKC_K_REL_OBJS_PUB
12.1.1
-
APPS.OKS_ENTITLEMENTS_WEB SQL Statements
12.1.1
-
APPS.OKS_EXTWARPRGM_OSO_PVT dependencies on OKC_K_REL_OBJS_PUB
12.2.2
-
APPS.OKS_ENTITLEMENTS_WEB SQL Statements
12.2.2
-
PACKAGE BODY: APPS.OKS_EXTWAR_UTIL_PVT
12.1.1
-
APPS.OKS_EXTWARPRGM_OSO_PVT dependencies on OKC_K_REL_OBJS
12.1.1
-
APPS.OKS_EXTWARPRGM_OSO_PVT dependencies on OKC_K_REL_OBJS
12.2.2
-
APPS.OKS_CONTRACTS_PUB dependencies on OKC_K_REL_OBJS
12.1.1
-
APPS.OKS_CONTRACTS_PUB dependencies on OKC_K_REL_OBJS
12.2.2
-
APPS.OKS_EXTWARPRGM_PVT dependencies on OKC_K_REL_OBJS_PUB
12.2.2
-
APPS.OKS_EXTWARPRGM_PVT dependencies on OKC_K_REL_OBJS_PUB
12.1.1
-
APPS.OKS_EXTWAR_UTIL_PVT dependencies on OKC_K_LINES_B
12.1.1
-
APPS.OKS_EXTWAR_UTIL_PVT dependencies on OKC_K_LINES_B
12.2.2