Search Results translate_msg
Overview
The OKS_REPROC_PUB package is a public PL/SQL API within the Oracle E-Business Suite Service Contracts (OKS) module. Its purpose is to support the reprocessing of service contract order lines — specifically, identifying order lines that require regeneration or revalidation and reprocessing them against the base order data. In the context of Oracle EBS 12.1.1 and 12.2.2, this package belongs to the family of "reprocessing" utilities used when order or contract data has drifted out of synchronization, or when a previous processing attempt failed and must be retried. The AUTHID CURRENT_USER declaration means the package executes under the privileges of the calling user, which is significant in multi-org and security-restricted deployments.
Key Procedures and Functions
The package exposes four documented procedures, all declared in the public specification:
- SUBMIT_REQUEST — Initiates a reprocessing request and returns an OUT parameter (x_request_id) identifying the submitted request. This is the entry point that typically launches the reprocessing activity, either directly or via a concurrent program submission.
- INSERT_ORDER_LINE — Inserts an order line record into the reprocessing structure. It accepts inputs such as the order line identifier, processed/reprocess flags, header identifier, and order number, and returns OUT parameters including an ID, a ROWID, and a return status. This procedure is the mechanism by which individual lines are queued for reprocessing.
- UPDATE_ORDER_LINES — The procedure corresponding to the "update_order_lines" search term. It accepts a single input parameter (p_item) and returns a return status. Its role is to perform the actual update of order lines that have been identified for reprocessing, propagating changes derived from p_item back to the affected order lines.
- TRANSLATE_MSG — Retrieves a translated message string for a given message identifier (p_id), returning the localized text via x_msg. This supports multilingual error and status reporting during reprocessing.
Tables Accessed
The package references a single documented table via an APPS synonym: OKS_REPROCESSING. This is the staging and tracking table for reprocessing activity. INSERT_ORDER_LINE populates rows in this table to record which order lines are candidates for reprocessing, and UPDATE_ORDER_LINES and SUBMIT_REQUEST consume or modify those rows as the reprocessing cycle proceeds. The table serves as the persistent queue and audit record for the reprocessing workflow, allowing failed or deferred order lines to be revisited without re-entering them manually.
Usage Notes
In Oracle EBS 12.1.1 and 12.2.2, OKS_REPROC_PUB is typically invoked from Service Contracts forms and from concurrent programs that manage contract order line synchronization. Because the package is classified as PUB (public), Oracle treats its signature as a supported integration point, making it suitable for custom code that needs to repair or re-drive order lines. The documented signature shows that the package is referenced by zero other packages in the ETRM repository, indicating it is primarily a terminal API called by forms, concurrent managers, or bespoke extensions rather than a shared internal utility.
When using UPDATE_ORDER_LINES, callers should always inspect the returned x_return_status to detect failures, since reprocessing can be blocked by validation errors, missing data, or security constraints. The AUTHID CURRENT_USER behavior means the caller's privileges and responsibility context govern row-level access to OKS_REPROCESSING, so custom callers must ensure the executing user has the appropriate grants. As with all public OKS APIs, direct DML against OKS_REPROCESSING should be avoided in favor of the supported procedures to preserve data integrity and upgrade compatibility across 12.1.1 and 12.2.2.