Search Results oks_code_hook
Overview
OKS_CODE_HOOK is a client extension package body owned by APPS within the Oracle E-Business Suite Service Contracts (OKS) module. Its business function is to expose a set of predefined hook points that allow implementers and partners to inject custom business logic into standard Service Contracts processing without modifying Oracle-supplied code. The package is classified as OTHER in the ETRM repository, reflecting its role as a customizable extension layer rather than a transactional API. Each procedure follows a conventional hook contract: it returns a status indicator through an OUT parameter (typically 1 when the hook has been used, 0 when standard behavior should prevail, and -1 when an error occurs) together with one or more output values that override the default processing result. This design allows the calling Service Contracts programs to remain upgrade-safe while accommodating customer-specific rules.
Key Procedures and Functions
The documented procedures and functions (12 total) cover several functional areas of Service Contracts:
- TAX_TRX_DATE — Determines the transaction date used for tax calculation on a contract header or line, returning a hook status and a date.
- BILLING_INTERFACE_ST_DATE — A client extension that lets users apply an alternative approach when running the Service Contracts main billing program, returning a hook status, a billing interface start date, and a parallel processing hint.
- CALC_HEADER_AMT — Provides a hook for overriding or supplementing contract header amount calculation.
- CUSTOM_FUNCTION — A generic extension point allowing customer-defined logic to be invoked from standard processing.
- DATE_ASMBLR_FN — A function used in date assembly logic, typically for constructing effective dates during contract processing.
- CUSTOM_DA_PRC — A custom procedure for date-related processing within the contracts flow.
- GET_CUSTOM_STATUS — Retrieves a customer-defined status value for use by Service Contracts logic.
- UPDATE_MERGE_ACCOUNT — Handles account updates resulting from a merge operation.
- UPDATE_PARTY_MERGE — Handles party merge processing, propagating merged party information to contracts data.
- GET_CONTRACT_SOURCE_DETAILS — Returns details about the source of a contract, such as the originating order or document.
- GET_SUBS_QTY — Retrieves the subscription quantity associated with a contract line or service.
- GET_SUBS_UOM — Retrieves the unit of measure for a subscription quantity.
Tables Accessed
The package operates against standard Service Contracts and Order Management tables accessed through APPS synonyms:
- OKC_K_HEADERS_B and OKC_K_LINES_B — Contract header and line base tables, used to resolve contract context such as header and line identifiers and start dates.
- OKC_CLASS_OPERATIONS, OKC_OPERATION_INSTANCES, and OKC_OPERATION_LINES — Contract class and operation tables, supporting status and operation-related logic used by the status and merge hooks.
- OE_ORDER_HEADERS_ALL and OE_ORDER_LINES_ALL — Order Management header and line tables, used by GET_CONTRACT_SOURCE_DETAILS to trace contract source information back to originating orders.
Usage Notes
OKS_CODE_HOOK is not invoked directly by end users. It is called by standard Service Contracts programs — most notably the billing program referenced by BILLING_INTERFACE_ST_DATE and tax calculation routines referenced by TAX_TRX_DATE — at designated hook points. Implementers customize the package body to add site-specific logic, and the value returned in the hook status parameter controls whether the custom logic replaces or supplements standard behavior. The package is referenced by eight other packages, indicating broad integration across the Service Contracts code base. Because customizations reside in this hook package, upgrades can proceed without reapplying changes to Oracle-owned objects. When searching for "get_object_details," note that no procedure of that name is documented in this package; equivalent metadata retrieval for contract objects is handled by GET_CONTRACT_SOURCE_DETAILS and related functions.
-
PACKAGE BODY: APPS.OKS_CODE_HOOK
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_CODE_HOOK, status:VALID,
-
PACKAGE: APPS.OKS_CODE_HOOK
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_CODE_HOOK, status:VALID,
-
PACKAGE BODY: APPS.OKC_OUTCOME_INIT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_OUTCOME_INIT_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_PARTY_MERGE_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_PARTY_MERGE_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKC_HZ_MERGE_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_HZ_MERGE_PUB, status:VALID,
-
PACKAGE: APPS.OKS_SUBSCRIPTION_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_SUBSCRIPTION_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKC_EXP_DATE_ASMBLR_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_EXP_DATE_ASMBLR_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKS_CHANGE_STATUS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_CHANGE_STATUS_PVT, status:VALID,
-
SYNONYM: APPS.OKC_CLASS_OPERATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CLASS_OPERATIONS, status:VALID,
-
PACKAGE BODY: APPS.OKS_TAX_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_TAX_UTIL_PVT, status:VALID,
-
SYNONYM: APPS.OKC_OPERATION_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_OPERATION_LINES, status:VALID,
-
SYNONYM: APPS.OKC_OPERATION_INSTANCES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_OPERATION_INSTANCES, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.OKS_BILLING_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_BILLING_PUB, status:VALID,
-
VIEW: APPS.OKC_OPERATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_OPERATIONS_V, object_name:OKC_OPERATIONS_V, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
VIEW: APPS.OKS_VRM_LINES_V
12.2.2
owner:APPS, object_type:VIEW, object_name:OKS_VRM_LINES_V, status:VALID,
-
PACKAGE: APPS.OKS_CODE_HOOK
12.2.2
-
VIEW: APPS.OKX_ORDER_HEADERS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_ORDER_HEADERS_V, object_name:OKX_ORDER_HEADERS_V, status:VALID,
-
VIEW: APPS.OKC_K_REL_OBJS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKC.OKC_K_REL_OBJS_V, object_name:OKC_K_REL_OBJS_V, status:VALID,
-
APPS.OKS_TAX_UTIL_PVT dependencies on OKS_CODE_HOOK
12.2.2
-
APPS.OKS_CODE_HOOK dependencies on OKS_CODE_HOOK
12.2.2
-
APPS.OKS_CHANGE_STATUS_PVT dependencies on OKS_CODE_HOOK
12.2.2
-
APPS.OKC_EXP_DATE_ASMBLR_PVT dependencies on OKS_CODE_HOOK
12.2.2
-
APPS.OKS_VRM_LINES_V dependencies on OKS_CODE_HOOK
12.2.2
-
APPS.OKC_HZ_MERGE_PUB dependencies on OKS_CODE_HOOK
12.2.2
-
APPS.OKC_PARTY_MERGE_PUB dependencies on OKS_CODE_HOOK
12.2.2
-
APPS.OKC_OUTCOME_INIT_PVT dependencies on OKS_CODE_HOOK
12.2.2
-
APPS.OKS_BILLING_PUB dependencies on OKS_CODE_HOOK
12.2.2
-
PACKAGE BODY: APPS.OKS_CODE_HOOK
12.2.2
-
SYNONYM: APPS.OKC_K_LINES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_LINES_B, status:VALID,
-
SYNONYM: APPS.OE_ORDER_HEADERS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_HEADERS_ALL, status:VALID,
-
SYNONYM: APPS.OKC_K_HEADERS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_HEADERS_B, status:VALID,
-
SYNONYM: APPS.OE_ORDER_LINES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_LINES_ALL, status:VALID,
-
VIEW: APPS.FND_LOOKUPS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_LOOKUPS, object_name:FND_LOOKUPS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2