Search Results ecx_document
Overview
ECX_DOCUMENT is the core outbound document generation API within the Oracle E-Business Suite e-Commerce Exchange (ECX) module. Its principal business function is to accept a logical business transaction, resolve the trading partner and communication configuration associated with that transaction, and dispatch the outbound document through the appropriate delivery mechanism. The package has been a stable component of the XML Gateway architecture since the 11i era, as evidenced by its header revision (120.3, dated 2005), and remains present in both EBS 12.1.1 and 12.2.2. In ETRM terms it is classified under the OTHER API category, indicating that it is an internal, infrastructure-oriented package rather than a user-facing transactional API.
The package is the runtime engine behind outbound XML messages. Callers supply a transaction type and subtype (which map to a defined XML Gateway transaction), party and party site identifiers, and a document identifier. The package then determines whether delivery is required, resolves the hub, mapping, and trading partner details, creates a transaction log record, and enqueues an event on the Workflow Business Event System for asynchronous delivery. The trigger_id returned by SEND corresponds to the ECX trigger identifier maintained through the ECX_TRIGGER_ID_S sequence.
Key Procedures and Functions
The documented interface exposes nine procedures and functions:
- SEND — The primary asynchronous API. It initiates outbound document generation and returns a trigger identifier plus standard retcode/errmsg outputs. It accepts up to five optional user parameters, enabling callers to pass contextual values into the XML mapping.
- SENDDIRECT — A synchronous variant of SEND, provided specifically to avoid race conditions that can arise when asynchronous processing is interleaved with subsequent operations. It returns an internal message identifier rather than a trigger identifier.
- ISDELIVERYREQUIRED — A validation routine that determines whether a given transaction type/subtype and party combination actually requires outbound delivery, preventing unnecessary document generation.
- GETEXTPARTYINFO — Retrieves external trading partner information associated with the supplied transaction context.
- GET_DELIVERY_ATTRIBS — Returns delivery attributes (such as protocol, destination, and addressing details) for the resolved trading partner.
- RESEND — Re-drives a previously generated outbound document, typically after a delivery failure.
- GETCONFIRMATIONSTATUS — Returns the confirmation or acknowledgement status for an outbound transaction.
- TRIGGER_OUTBOUND — Invokes outbound processing for a trigger; this procedure relates directly to the "outbound_trigger" terminology and is the entry point used when processing is driven from a trigger record rather than a direct SEND call.
The package also declares three named exceptions — ecx_transaction_not_defined, ecx_no_party_setup, and ecx_delivery_setup_error — which signal missing transaction definitions, absent trading partner setup, and delivery configuration faults respectively.
Tables Accessed
The package operates across the ECX configuration and logging schema, all referenced through APPS synonyms:
- ECX_TRANSACTIONS and ECX_DOCLOGS — transaction and document log records created for each outbound attempt.
- ECX_TP_HEADERS and ECX_TP_DETAILS — trading partner header and detail definitions.
- ECX_HUBS and ECX_HUB_USERS — hub definitions and hub user assignments.
- ECX_MAPPINGS and ECX_STANDARDS — XML mapping and standard (message format) definitions.
- ECX_EXT_PROCESSES — external process/partner process configuration.
- ECX_TRIGGER_ID_S — the sequence used to generate trigger identifiers.
- WF_AGENT_T, WF_EVENT_T, WF_PARAMETER_LIST_T, WF_PARAMETER_T, WF_SYSTEMS — Workflow Business Event System structures used to raise and parameterize the outbound event.
Usage Notes
ECX_DOCUMENT is invoked from Oracle XML Gateway–enabled application flows, workflow business events, and custom PL/SQL. Standard EBS modules such as Order Management and Purchasing call it indirectly when outbound XML messages are configured. Custom integrations typically call ECX_DOCUMENT.SEND directly, capturing the returned trigger_id for later status or resend operations, or use SENDDIRECT when synchronous confirmation of enqueue is required. The package is referenced by fourteen other packages, reflecting its role as a shared outbound service. Debug output can be enabled through the debug_mode parameter, and the named exceptions should be handled explicitly by calling code to distinguish setup errors from missing transaction definitions.
-
PACKAGE: APPS.ECX_DOCUMENT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ECX_DOCUMENT, status:VALID,
-
PACKAGE: APPS.ECX_DOCUMENT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ECX_DOCUMENT, status:VALID,
-
PACKAGE BODY: APPS.ECX_DOCUMENT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_DOCUMENT, status:VALID,
-
PACKAGE BODY: APPS.ECX_DOCUMENT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_DOCUMENT, status:VALID,
-
PACKAGE: APPS.ECX_OUT_WF_QH
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ECX_OUT_WF_QH, status:VALID,
-
SYNONYM: APPS.ECX_HUBS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECX_HUBS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.ECX_HUB_USERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECX_HUB_USERS, status:VALID,
-
SYNONYM: APPS.ECX_MAPPINGS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_MAPPINGS, status:VALID,
-
PACKAGE BODY: APPS.CLN_SYNCCTLG_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SYNCCTLG_PKG, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.ECX_HUB_USERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_HUB_USERS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.ECX_HUBS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_HUBS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.ECX_TRIGGER_ID_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECX_TRIGGER_ID_S, status:VALID,
-
PACKAGE: APPS.ECX_OUT_WF_QH
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ECX_OUT_WF_QH, status:VALID,
-
PACKAGE: APPS.ECX_OUTBOUND
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ECX_OUTBOUND, status:VALID,
-
PACKAGE BODY: APPS.CLN_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_UTILS, status:VALID,
-
PACKAGE BODY: APPS.CLN_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_UTILS, status:VALID,
-
PACKAGE BODY: APPS.CLN_RESEND
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_RESEND, status:VALID,
-
PACKAGE BODY: APPS.CLN_RESEND
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_RESEND, status:VALID,
-
PACKAGE: APPS.ECX_OUTBOUND
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ECX_OUTBOUND, status:VALID,
-
SYNONYM: APPS.ECX_TRIGGER_ID_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_TRIGGER_ID_S, status:VALID,
-
SYNONYM: APPS.ECX_MAPPINGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECX_MAPPINGS, status:VALID,
-
PACKAGE BODY: APPS.CLN_UPDTDLVY_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_UPDTDLVY_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_UPDTDLVY_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_UPDTDLVY_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_SHOWSHIP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SHOWSHIP_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_SYNCCTLG_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SYNCCTLG_PKG, status:VALID,
-
PACKAGE BODY: APPS.CLN_SHOWSHIP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SHOWSHIP_PKG, status:VALID,
-
SYNONYM: APPS.ECX_EXT_PROCESSES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_EXT_PROCESSES, status:VALID,
-
PACKAGE BODY: APPS.CLN_SYNCITEM_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SYNCITEM_PKG, status:VALID,
-
PACKAGE BODY: APPS.PO_VENDOR_SITES_SV
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_VENDOR_SITES_SV, status:VALID,
-
PACKAGE: APPS.ECX_ERRORLOG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ECX_ERRORLOG, status:VALID,
-
PACKAGE BODY: APPS.GR_WF_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GR_WF_UTIL_PVT, status:VALID,
-
PACKAGE BODY: APPS.ECX_STANDARD
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECX_STANDARD, status:VALID,
-
PACKAGE BODY: APPS.GR_WF_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GR_WF_UTIL_PVT, status:VALID,
-
PACKAGE: APPS.ECX_ERRORLOG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ECX_ERRORLOG, status:VALID,
-
PACKAGE: APPS.ECX_DOCUMENT
12.1.1
-
SYNONYM: APPS.ECX_STANDARDS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_STANDARDS, status:VALID,
-
SYNONYM: APPS.ECX_STANDARDS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECX_STANDARDS, status:VALID,
-
PACKAGE BODY: APPS.PO_VENDOR_SITES_SV
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_VENDOR_SITES_SV, status:VALID,
-
PACKAGE BODY: APPS.CLN_SYNCITEM_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CLN_SYNCITEM_PKG, status:VALID,
-
PACKAGE BODY: APPS.PO_XML_DELIVERY
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_XML_DELIVERY, status:VALID,
-
SYNONYM: APPS.ECX_DOCLOGS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_DOCLOGS, status:VALID,
-
SYNONYM: APPS.ECX_DOCLOGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECX_DOCLOGS, status:VALID,
-
SYNONYM: APPS.ECX_TRANSACTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ECX_TRANSACTIONS, status:VALID,
-
TYPE: SYSTEM.ECX_OUTENGOBJ
12.1.1
owner:SYSTEM, object_type:TYPE, object_name:ECX_OUTENGOBJ, status:VALID,
-
PACKAGE BODY: APPS.PO_XML_DELIVERY
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_XML_DELIVERY, status:VALID,
-
SYNONYM: APPS.ECX_TRANSACTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ECX_TRANSACTIONS, status:VALID,