Search Results okc_api
Overview
OKC_API is the core public API package body for the Oracle Contracts (OKC) module in Oracle E-Business Suite, delivered in the APPS schema. It provides the foundational runtime services used throughout the contract authoring, servicing, and lifecycle stack, including message list initialization, exception handling, activity framing for the FND logging and message infrastructure, and resolution of contract-related message tokens. Because OKC_API is classified as an API and is referenced by 1,768 other packages, it functions as a shared utility layer rather than a business-transaction entry point. Its dependency footprint — FND_API, FND_MESSAGE, FND_MSG_PUB, FND_PROFILE, DBMS_TRANSACTION, and STANDARD — confirms its role in standardizing the Oracle Application Object Library error-handling and messaging conventions across the Contracts family of modules. The package is marked VALID in the ETRM 12.2.2 metadata set and behaves consistently across the 12.1.1 and 12.2.2 releases.
Key Procedures and Functions
The documented program units (11 total) fall into three functional groups:
- Message infrastructure: INIT_MSG_LIST initializes the message list for a calling process. SET_MESSAGE records an application or error message for eventual retrieval. RESOLVE_MESSAGE resolves a stored message token into its runtime text. These routines wrap FND_MSG_PUB and FND_MESSAGE behavior for Contracts-specific usage.
- Activity framing and exception control: START_ACTIVITY and END_ACTIVITY bracket a unit of work for consistent logging and error propagation. HANDLE_EXCEPTIONS centralizes exception inspection and message publishing so that calling APIs share a single error-handling contract. These are the routines most commonly invoked by dependent OKC packages.
- Token and contract-type resolution: RESOLVE_HDR_TOKEN and RESOLVE_DEL_TOKEN resolve header-level and detail/line-level message tokens respectively, supporting context-rich error text. GET_CONTRACT_TYPE and GET_CONTRACT_TYPE_UI_FUNC retrieve contract type and the associated user-interface function, allowing callers to determine UI navigation targets without querying base tables directly.
Parameter lists should be obtained from the live package specification on the target instance, as they are not exhaustively enumerated in the ETRM extract.
Tables Accessed
Three objects are documented as referenced through APPS synonyms:
- OKC_BUS_DOC_TYPES_B — the business document type base table, queried to resolve contract type definitions and associated UI behavior for GET_CONTRACT_TYPE and GET_CONTRACT_TYPE_UI_FUNC.
- OKC_REP_CONTRACTS_ALL — the repository of contracts accessible to the current organization, used to resolve contract header and detail tokens for message construction.
- DBMS_TRANSACTION — a PUBLIC package rather than a table; typically used to set local transaction context (for example, rollback markers) when handling exceptions, ensuring message state remains consistent with the caller's transaction boundaries.
Usage Notes
OKC_API is generally not called from Oracle Forms or concurrent programs directly. Instead, it is invoked as a shared dependency by the higher-level Contracts APIs and by any custom code that must conform to standard OKC error reporting. The typical invocation pattern is: initialize the message list, start an activity, execute work, resolve any tokens needed for user-facing messages, call the appropriate handler on exception, then end the activity.
Because the package is referenced by 1,768 other packages and references no external objects beyond the three listed above, any modification carries broad regression risk. Customizations should wrap rather than alter OKC_API. When diagnosing Contracts errors, inspecting the message list populated by SET_MESSAGE and RESOLVE_MESSAGE is the recommended first step, since virtually all OKC entry-point APIs route their error text through this package. Confirm procedure signatures against the package specification on the specific instance, as the ETRM extract does not include parameter detail.
-
PACKAGE BODY: APPS.OKC_API
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_API, status:VALID,
-
PACKAGE BODY: APPS.OKC_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_API, status:VALID,
-
PACKAGE: APPS.OKC_RENEWAL_OUTCOME_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_RENEWAL_OUTCOME_PUB, status:VALID,
-
PACKAGE: APPS.OKL_PAY_INVOICES_CONS_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_PAY_INVOICES_CONS_PUB, status:VALID,
-
PACKAGE: APPS.OKL_STREAM_BILLING_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_STREAM_BILLING_PUB, status:VALID,
-
PACKAGE: APPS.OKC_CEVT_ASMBLR_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CEVT_ASMBLR_PVT, status:VALID,
-
PACKAGE: APPS.OKS_FULFILL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_FULFILL, status:VALID,
-
PACKAGE: APPS.OKL_EVERGREEN_BILLING_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_EVERGREEN_BILLING_PUB, status:VALID,
-
PACKAGE: APPS.OKL_ARFETCH_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_ARFETCH_PUB, status:VALID,
-
PACKAGE: APPS.OKL_RV_INTERFACE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_RV_INTERFACE_PVT, status:VALID,
-
PACKAGE: APPS.OKC_PO_QA_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_PO_QA_PVT, status:VALID,
-
PACKAGE: APPS.OKL_PAY_INVOICES_CONS_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_PAY_INVOICES_CONS_PUB, status:VALID,
-
PACKAGE: APPS.OKL_LTE_CHRG_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_LTE_CHRG_PUB, status:VALID,
-
PACKAGE: APPS.OKL_AM_PROCESS_ASSET_TRX_WRAP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_AM_PROCESS_ASSET_TRX_WRAP, status:VALID,
-
PACKAGE: APPS.OKL_INVESTOR_INVOICE_DISB_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_INVESTOR_INVOICE_DISB_PUB, status:VALID,
-
PACKAGE: APPS.OKC_SCHR_AD_ASMBLR_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_SCHR_AD_ASMBLR_PVT, status:VALID,
-
PACKAGE: APPS.OKS_CCMIGRATE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_CCMIGRATE_PVT, status:VALID,
-
PACKAGE: APPS.OKS_BILL_MIGRATION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_BILL_MIGRATION, status:VALID,
-
PACKAGE: APPS.OKS_QA_DATA_INTEGRITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_QA_DATA_INTEGRITY, status:VALID,
-
PACKAGE: APPS.OKS_CCMIGRATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_CCMIGRATE_PVT, status:VALID,
-
PACKAGE: APPS.OKC_QA_GENERAL_CHECKLISTS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_QA_GENERAL_CHECKLISTS, status:VALID,
-
PACKAGE: APPS.OKC_CREATE_PO_FROM_K_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CREATE_PO_FROM_K_PUB, status:VALID,
-
PACKAGE: APPS.OKC_QA_DATA_INTEGRITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_QA_DATA_INTEGRITY, status:VALID,
-
PACKAGE: APPS.OKL_AM_PROCESS_RV_TRX_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_AM_PROCESS_RV_TRX_PUB, status:VALID,
-
PACKAGE: APPS.OKL_AM_PROCESS_ASSET_TRX_WRAP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_AM_PROCESS_ASSET_TRX_WRAP, status:VALID,
-
PACKAGE: APPS.OKL_RV_INTERFACE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_RV_INTERFACE_PVT, status:VALID,
-
PACKAGE: APPS.OKL_ARTICLE_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_ARTICLE_PUB, status:VALID,
-
PACKAGE: APPS.OKL_PAY_INVOICES_DISB_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_PAY_INVOICES_DISB_PUB, status:VALID,
-
PACKAGE: APPS.IEX_CO_REPORT_CB_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:IEX_CO_REPORT_CB_PVT, status:VALID,
-
PACKAGE: APPS.OKC_QA_GENERAL_CHECKLISTS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_QA_GENERAL_CHECKLISTS, status:VALID,
-
PACKAGE: APPS.OKL_BILLING_RECON_RPT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_BILLING_RECON_RPT_PVT, status:VALID,
-
PACKAGE: APPS.OKC_QA_DATA_INTEGRITY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_QA_DATA_INTEGRITY, status:VALID,
-
PACKAGE: APPS.OKL_AM_PROCESS_RV_TRX_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_AM_PROCESS_RV_TRX_PUB, status:VALID,
-
PACKAGE: APPS.OKS_EVTREN_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_EVTREN_PUB, status:VALID,
-
PACKAGE: APPS.OKC_CRQUOTE_ASMBLR_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_CRQUOTE_ASMBLR_PVT, status:VALID,
-
PACKAGE: APPS.OKL_FORMULAFUNCTION_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_FORMULAFUNCTION_PVT, status:VALID,
-
PACKAGE: APPS.OKC_KL_EXTD_ASMBLR_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_KL_EXTD_ASMBLR_PVT, status:VALID,
-
PACKAGE: APPS.OKC_SCHR_PD_ASMBLR_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_SCHR_PD_ASMBLR_PVT, status:VALID,
-
PACKAGE: APPS.OKL_FORMULAVALIDATE_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_FORMULAVALIDATE_PUB, status:VALID,
-
PACKAGE: APPS.OKL_AM_CONTRACT_PRTFL_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_AM_CONTRACT_PRTFL_PUB, status:VALID,
-
PACKAGE: APPS.OKS_RENCON_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_RENCON_PVT, status:VALID,
-
PACKAGE: APPS.OKC_CHANGE_CONTRACT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_CHANGE_CONTRACT_PUB, status:VALID,
-
PACKAGE: APPS.OKL_AM_REMARKET_ASSET_WF
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_AM_REMARKET_ASSET_WF, status:VALID,
-
PACKAGE: APPS.OKL_CPA_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_CPA_PVT, status:VALID,
-
PACKAGE: APPS.OKL_ASSET_DETAILS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_ASSET_DETAILS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_CHG_REJ_ASMBLR_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CHG_REJ_ASMBLR_PVT, status:VALID,
-
PACKAGE: APPS.OKL_PAY_INVOICES_TRANS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_PAY_INVOICES_TRANS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_CHANGE_CONTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CHANGE_CONTRACT_PVT, status:VALID,
-
PACKAGE: APPS.OKC_AR_INT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_AR_INT_PUB, status:VALID,
-
PACKAGE: APPS.OKC_TASK_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TASK_PVT, status:VALID,