Search Results process_jcg_request




Overview

APPS.AHL_PRD_PRINT_PVT is a private PL/SQL package within the Oracle E-Business Suite (EBS) Application Object Library used by the Oracle Complex Maintenance, Repair, and Overhaul (CMRO) or Enterprise Asset Management (EAM) modules. Its primary business function is to generate and manage print and XML output for production workcards, work orders, and job cards used in maintenance and repair operations. The package acts as a critical bridge between the core AHL (Advanced Maintenance) production data model and external printing or job card generation engines, including the Enigma JCG (Job Card Generation) system. It handles the transformation of work order data into XML format, manages requests to external systems, processes responses, and controls the printing of workcards. As a private (PVT) package, it is not exposed as a public API and is intended for internal use by other Oracle EBS components, views, and concurrent programs. It is listed as a VALID object in the APPS schema and is referenced by numerous AHL views and other packages, indicating its central role in the work order printing and job card lifecycle.

Key Procedures and Functions

The package exposes 18 documented procedures and functions, each serving a specific purpose in the print and job card generation workflow:

  • GEN_WO_XML — Generates XML representation of a work order for printing or external processing.
  • GEN_WORKCARD_XML — Produces XML output specifically for workcard printing, likely including operation and resource details.
  • PROCESS_JCG_REQUEST — Processes an inbound or outbound job card generation request within the integration flow.
  • GENERATE_JCG_XML — Creates the XML payload required by the Enigma JCG system.
  • GENERATED_JOBCARD_EXISTS — Checks whether a job card has already been generated, preventing duplication.
  • GET_JC_FILE_LOCATION — Retrieves the file system or repository location for a generated job card.
  • GET_LATEST_JCG_STATUS — Returns the most recent status of a job card generation request.
  • GET_JCG_ERROR_MSG — Fetches the error message associated with a failed JCG request.
  • GET_TZ_OFFSET — Determines the time zone offset, ensuring correct timestamping of print and job card data.
  • HANDLE_ENIGMAJCG_RESP — Handles a successful response from the Enigma JCG system.
  • HANDLE_ENIGMAJCG_FAULTS — Processes fault or error responses from the Enigma JCG system.
  • HANDLE_JCG_RESPONSE — Manages general responses from the job card generation process.
  • HANDLE_JCG_ERRORS — Centralizes error handling for JCG-related operations.
  • GENERATE_JCG_REQUEST — Initiates a new job card generation request to the external system.
  • PRINT_WORKCARD — Directly triggers the printing of a workcard, likely using a predefined report or template.
  • APPLY_TRANSFORMATION — Applies an XSL transformation to XML data, converting it into a printable or displayable format.
  • GET_XSL_CLOB — Retrieves the XSL stylesheet stored as a CLOB, used for transformation.

Tables Accessed

The package references several AHL base tables and views via APPS synonyms. These tables supply the master data required for workcard and job card generation:

These tables are read to assemble the XML payload, validate job card existence, and store request/response details.

Usage Notes

APPS.AHL_PRD_PRINT_PVT is typically invoked from Oracle EBS forms related to work order and workcard management, from concurrent programs that batch-generate job cards for the Enigma system, or from other AHL packages and views. The package is referenced by several views including AHL_MR_INSTANCES_V, AHL_WORKORDERS_V, and AHL_PP_EMPLOYEE_ASSIGN_V, meaning its logic is embedded in query operations. It is also referenced by AHL_PRD_PRINT_PVT_W, a wrapper package that likely exposes callable entry points. Custom code should not call this private package directly; instead, use supported public APIs or concurrent programs. When invoked, the package relies on FND_API for error handling and standard Oracle Application Object Library utilities. The presence of XSL transformation functions indicates that printed output can be formatted using customizable stylesheets, offering flexibility in workcard presentation. Administrators should ensure that Enigma JCG configuration and file locations are properly set up to avoid errors in the GET_JC_FILE_LOCATION and HANDLE_JCG_ERRORS routines.