Search Results tp_document_code




Overview

GML_GASNO_SHIPMENTS_V is a reporting view owned by the APPS schema in Oracle E-Business Suite, defined within the GML (Process Manufacturing Logistics) product family. Its documented description is simply "Shipment view," and it serves as a consolidated, denormalized access point for bill-of-lading (BOL) shipment information that must be communicated to external trading partners. The view is declared VALID and is present in both 12.1.1 and 12.2.2 environments, where the underlying GML and order-management schemas remain structurally consistent.

The view's purpose is export-oriented: it projects shipping transactions into a flat record set suitable for EDI or flat-file generation. The literal 'EC' in the COMMUNICATION_METHOD column and the '00' DOCUMENT_PURPOSE_CODE indicate that the view is designed to feed an E-commerce/EDI communication layer rather than to serve as a normalized transactional source. It joins header, detail, order, freight, port, and shipment master data to present one row per trading-partner detail record. Fields are aliased into a trading-partner (TP_) naming convention, reinforcing its role as a transport structure for partner-facing messages.

Underlying Base Objects

The view is defined over a mixture of ECE trading-partner tables, GML views, and OP/IC synonyms. Documented referenced objects include:

Each join enriches the shipment row with partner-, order-, freight-, and weight-level context without requiring the caller to navigate the underlying normalized tables.

Key Columns

The view exposes several logical groups of columns. Trading-partner identity and routing are captured by TP_HEADER_ID, TP_DETAIL_ID, TP_CODE, TP_LOCATION_CODE_EXT, TP_DESCRIPTION, and TP_REFERENCE1/2. Header and detail flexfields are surfaced as TP_HEADER_ATTRIBUTE1–15 and TP_DETAIL_ATTRIBUTE1–5, with their respective ATTRIBUTE_CATEGORY columns.

Common Use Cases and Queries

Because the view is partner-export oriented, its principal uses are EDI extraction, shipment reconciliation, and audit of trading-partner attribute data. A frequent requirement is locating shipments by the detail flexfield value that users entered on the trading-partner detail record.

  • Retrieve all shipment rows for a specific partner attribute value:
    SELECT bol_no, tp_code, tp_document_code, tp_detail_attribute1, net_wt
    FROM   apps.gml_gasno_shipments_v
    WHERE  tp_detail_attribute1 = :attribute_value;
  • Extract a full EDI-ready rowset for a given bill of lading:
    SELECT * FROM apps.gml_gasno_shipments_v WHERE bol_id = :bol_id;
  • Cross-check order-level freight and FOB terms attached to a shipment:
    SELECT bol_no, frtbill_desc, fob_name, meth_desc1
    FROM   apps.gml_gasno_shipments_v
    WHERE  orgn_code = :organization_code;

When querying, note that TP_DETAIL_ATTRIBUTE1 depends on the ATTRIBUTE_CATEGORY context assigned to the trading-partner detail; filtering without the matching category can return unrelated segments. All access should be granted through the APPS synonym, and joins to additional base tables are unnecessary because the view already resolves descriptive values.