Results for “create_update_txns_history”
42 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
WSH_TRANSACTIONS_HISTORY_PKG is an Oracle E-Business Suite shipping execution package owned by the APPS schema. It manages the transaction history audit trail for the Oracle Shipping (WSH) module. In EBS 12.1.1 and 12.2.2, every meaningful event in the outbound shipping lifecycle — delivery creation, pick confirmation, ship confirmation, manifesting, and interface processing — can be recorded as a transaction history row. This package encapsulates the logic that creates, updates, and retrieves those rows, allowing callers to maintain the audit trail of shipping-trading-partner transactions without writing directly against the underlying tables.
The package is declared AUTHID CURRENT_USER, meaning its SQL executes with the privileges of the invoking session rather than the definer's, so it must be granted and referenced from contexts where the APPS synonyms are visible. It defines a strongly typed record structure, Txns_History_Record_Type, mirroring the columns of WSH_TRANSACTIONS_HISTORY, including the standard descriptive flexfield columns (attribute_category and attributes 1 through 15). Two debug constants map to the standard WSH_DEBUG_SV severity levels, enabling tracing through the shipping debug framework. The header revision dates to an early 11i-era build, and the package is classified as OTHER rather than as a public API, indicating it is primarily intended for internal use by shipping components.
Key Procedures and Functions
The ETRM metadata documents three entry points:
- CREATE_TXNS_HISTORY — Inserts a new transaction history record into WSH_TRANSACTIONS_HISTORY. This is the routine most frequently searched for under the alias "create_txns_history," and it is the primary mechanism by which shipping events are stamped into the history table.
- CREATE_UPDATE_TXNS_HISTORY — Performs an insert-or-update operation, upserting a history record so that an existing transaction entry can be modified rather than duplicated. This supports status transitions such as a transaction moving from pending to completed or from shipped to confirmed.
- GET_TXNS_HISTORY — Retrieves transaction history records, typically by transaction, document, or entity key, populating the documented record type for the caller. It is the read-side counterpart used by inquiry and reporting logic.
No parameter lists are published in the reference metadata; signature details should be confirmed against the package specification in the target instance.
Tables Accessed
- WSH_TRANSACTIONS_HISTORY — The principal table, holding one row per tracked shipping transaction event. All three procedures read from or write to it.
- WSH_NEW_DELIVERIES — Read to obtain delivery-level context such as document number, direction, and trading partner for the history row.
- WSH_NEW_DEL_INTERFACE — Consulted when history is generated in the delivery interface context, linking interface records to their resulting transactions.
- WSH_TRANSACTION_S — The transaction sequence, used to generate or validate unique transaction identifiers.
- DUAL — Used for scalar evaluations and date/timestamp derivation.
Usage Notes
Because the package is not classified as a public API, direct custom invocation should be treated cautiously. In standard EBS shipping flows it is called internally by shipping execution logic during ship confirmation, delivery interface processing, and related events. Nine other packages reference it, confirming its role as a shared internal utility. Forms-based inquiry and shipping diagnostic screens can reach GET_TXNS_HISTORY through these dependent packages. Custom extensions that need to record or query a shipping transaction history entry should generally call the documented procedures with the supplied record type rather than issuing DML against WSH_TRANSACTIONS_HISTORY directly, thereby preserving the integrity of the audit trail. Debug output can be enabled through the standard WSH_DEBUG_SV facility to trace execution. Where exact behavior is critical, the package body in the target 12.1.1 or 12.2.2 instance should be reviewed, since the documented metadata provides procedure names and table dependencies but not full signatures.