Search Results cto_debug
Overview
APPS.CTO_WIP_WORKFLOW_API_PK is the Configure-to-Order (CTO) integration package that mediates between Oracle Work in Process (WIP) and the Oracle Order Management order line workflow. It is part of the Oracle Manufacturing application family and is classified under the ETRM API classification code OTHER. The package header carries the source file identifier CTOWIPAS.pls with a header revision of 120.1 dated 2005/06/02, reflecting its long-standing stability across the EBS 11i and R12 code lines, including 12.1.1 and 12.2.2.
The stated purpose of the package is to supply three APIs written for WIP support for OE-99 by the CTO group: informing the order line workflow that the first reservation has been created for a sales order line, informing the workflow that the last reservation has been deleted, and determining whether a particular sales order line is at the released phase of the workflow. In practice the package exposes a broader set of callbacks and query utilities that implement this contract, allowing WIP reservation events to drive workflow transitions on the corresponding order line.
Key Procedures and Functions
- FIRST_WO_RESERVATION_CREATED — Callback invoked to inform the order line workflow that the first reservation has been created for a sales order line. It accepts the order line identifier and returns the standard API output parameters (return status, message count, message data).
- LAST_WO_RESERVATION_DELETED — Callback that informs the order line workflow that the last reservation has been deleted for a sales order line, signaling that no further WIP supply is committed against that line.
- FLOW_CREATION — Handles the workflow-side notification associated with creation of a flow schedule for a CTO configuration.
- FLOW_DELETION — Handles the workflow-side notification associated with deletion of a flow schedule.
- QUERY_WF_ACTIVITY_STATUS — Queries the status of a workflow activity instance, providing the mechanism by which the package determines the current workflow position of an order line.
- WORKFLOW_BUILD_STATUS — Determines whether a particular sales order line is at the released phase of the workflow, as documented in the source header.
- CTO_DEBUG — Utility procedure added 12/18/2000 to emit CTO debug messages. The package maintains two package-level variables that control debug message generation. This is the object associated with the search term "cto_debug" and is the only documented diagnostic entry point within the package.
Tables Accessed
- MTL_RESERVATIONS — Read to establish whether reservations exist for a work order supporting an order line, underpinning the first-reservation and last-reservation callbacks.
- OE_ORDER_LINES_ALL — Read to resolve the sales order line context, including its workflow status and header associations.
- WF_ITEM_ACTIVITY_STATUSES — Read by QUERY_WF_ACTIVITY_STATUS to resolve the status of a specific workflow activity instance.
- WF_PROCESS_ACTIVITIES — Read to correlate activity identifiers with the workflow definition used by the order line process.
- WIP_FLOW_SCHEDULES — Read to support the flow creation and flow deletion callbacks.
- DUAL — Used for scalar evaluations and standard PL/SQL control flow.
- UTL_FILE — Used by the CTO_DEBUG utility to write debug output to a server-side file.
- V$PARAMETER2 — Read to determine database parameter settings, typically to locate the user dump or log destination used for debug output.
Usage Notes
The package is not intended for direct end-user invocation. It is called from the order line workflow through CTO callback activities when WIP reservation events occur, and it is referenced by fifteen other packages within the APPS schema, confirming its role as a shared integration point. Because the callbacks are wired into workflow definitions as function activities, changes to the package signatures must be coordinated with the seeded order line workflow in Oracle Order Management.
The CTO_DEBUG procedure is the primary diagnostic path when reservation-driven workflow transitions behave unexpectedly. It writes to the directory identified through database parameter interrogation, so DBAs should confirm file-system permissions on the database server before relying on its output in a 12.1.1 or 12.2.2 instance. Debug behavior is governed by package-level variables rather than a profile option, meaning the package state is session-scoped and is reinitialized on each connection.
-
APPS.CTO_WIP_WORKFLOW_API_PK SQL Statements
12.1.1
-
APPS.CTO_WIP_WORKFLOW_API_PK SQL Statements
12.2.2
-
PACKAGE: APPS.CTO_WIP_WORKFLOW_API_PK
12.1.1
-
PACKAGE BODY: APPS.CTO_WIP_WORKFLOW_API_PK
12.1.1
-
PACKAGE: APPS.CTO_WIP_WORKFLOW_API_PK
12.2.2
-
PACKAGE BODY: APPS.CTO_WIP_WORKFLOW_API_PK
12.2.2
-
APPS.CTO_WIP_WORKFLOW_API_PK dependencies on CTO_WORKFLOW_API_PK
12.1.1
-
APPS.CTO_WIP_WORKFLOW_API_PK dependencies on CTO_WORKFLOW_API_PK
12.2.2
-
APPS.CTO_WIP_WORKFLOW_API_PK dependencies on UTL_FILE
12.1.1
-
APPS.CTO_WIP_WORKFLOW_API_PK dependencies on UTL_FILE
12.2.2
-
APPS.CTO_WIP_WORKFLOW_API_PK dependencies on CTO_MSG_PUB
12.1.1
-
APPS.CTO_WIP_WORKFLOW_API_PK dependencies on FND_PROFILE
12.1.1
-
APPS.CTO_WIP_WORKFLOW_API_PK dependencies on CTO_MSG_PUB
12.2.2
-
APPS.CTO_WIP_WORKFLOW_API_PK dependencies on FND_PROFILE
12.2.2