Search Results get_order_line_id
Overview
OKS_INTEGRATION_UTIL_PUB is a public PL/SQL utility package in the Oracle E-Business Suite Service Contracts (OKS) module. Its principal business function is to support the integration of service contract data with order management data, specifically by loading service line information into the service contracts order details table and by performing bulk, parallel processing of header-level data. The package supplies low-level helper routines used by other Service Contracts integration packages to reconcile order lines, manage date conversion, distribute work across parallel jobs, and control diagnostic logging.
The package body declares global constants and variables that govern its parallel processing behavior, including MAX_JOBS (set to 20, the maximum number of permitted sub-requests or parallel workers), a range record type capturing low and high header IDs together with a job number, a VARRAY of up to fifty such range records, and a cached instance identifier used to distinguish concurrent workers. These globals indicate the package is designed for high-volume, multi-worker data maintenance rather than single-row transactional processing.
Key Procedures and Functions
- CREATE_K_ORDER_DETAILS — Populates the order details table with all service lines sourced from the OKX_ORDER_LINES_V view, scoped to a supplied header identifier. It returns the standard concurrent-style out parameters for return status, message count, and message data.
- GET_DATES — Retrieves date values required during integration processing, supporting date-driven logic applied to contract rules and order data.
- CONVERT_DATES — Converts date values between representations, bridging the format differences encountered when moving data between order management and service contracts structures.
- DEBUG_LOG — Writes diagnostic messages for troubleshooting integration runs, enabling traceability of processing steps and errors.
- UPGRADE_RULE_DATES — Applies date corrections or migrations to rule records, used when contract rules require date normalization or upgrade.
- GENERATE_RANGES — Divides the set of header IDs into contiguous ranges and assigns each range to a parallel worker, using the global range array and the MAX_JOBS limit to cap concurrency.
In addition to the documented procedures, the package body includes a private helper function, GET_ORDER_LINE_ID, which checks whether a service line already exists in OKS_K_ORDER_DETAILS. It accepts an order line ID, queries the order details table for a matching character-converted value, and returns the matching ID or NULL when no record is found. This function directly addresses the common search for detecting duplicate or pre-existing service order lines.
Tables Accessed
- OKS_K_ORDER_DETAILS — The central integration staging table. It is read by GET_ORDER_LINE_ID to test for existing service lines and written by CREATE_K_ORDER_DETAILS to load service data.
- OKC_RULES_B and OKC_RULE_GROUPS_B — Contract rule and rule group base tables, read and updated to support rule date handling performed by GET_DATES, CONVERT_DATES, and UPGRADE_RULE_DATES.
- USER_JOBS and DBMS_JOB — Used to submit and track the parallel worker jobs created by GENERATE_RANGES; DBMS_LOCK provides the locking primitive that coordinates concurrent workers.
- V$INSTANCE and V$PARAMETER — Queried to obtain the instance number and related database parameters, supporting the cached instance identifier and environment-aware processing.
- UTL_FILE and PLITBLM — Used for file-based logging during DEBUG_LOG execution.
Usage Notes
OKS_INTEGRATION_UTIL_PUB is a public API invoked programmatically rather than from a standard entry form. It is referenced by two other packages, which call CREATE_K_ORDER_DETAILS to seed order details or GENERATE_RANGES to fan out parallel processing across header ID ranges. Typical invocation occurs during Service Contracts integration and migration routines and from concurrent programs that perform bulk data loading, where the out parameters of CREATE_K_ORDER_DETAILS are consumed by the calling program to determine success or failure. In Oracle EBS 12.1.1 and 12.2.2, the package remains a supporting utility whose routines should be called in the documented sequence—range generation, parallel order detail creation, and date rule maintenance—with DEBUG_LOG enabled when diagnosing integration failures.
-
PACKAGE BODY: APPS.OKS_INTEGRATION_UTIL_PUB
12.2.2
-
PACKAGE BODY: APPS.OKS_INTEGRATION_UTIL_PUB
12.1.1
-
PACKAGE BODY: APPS.JAI_OM_WSH_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_OM_WSH_PKG
12.2.2
-
APPS.JAI_OM_WSH_PKG dependencies on WSH_DELIVERY_DETAILS
12.2.2
-
APPS.JAI_OM_WSH_PKG dependencies on WSH_DELIVERY_DETAILS
12.1.1
-
APPS.JAI_OM_WSH_PKG dependencies on WSH_NEW_DELIVERIES
12.2.2
-
APPS.JAI_OM_WSH_PKG dependencies on WSH_NEW_DELIVERIES
12.1.1