Search Results tp_uom_code
Overview
APPS.MSC_SUP_DEM_HZ_UI_V is a reporting and integration view within the Oracle E-Business Suite Advanced Supply Chain Planning (ASCP) schema, owned by the APPS account. It is layered on top of MSC_SUP_DEM_ENTRIES_UI_V and serves as a presentation-layer abstraction over the supplier demand and supply entries maintained by the MSC (Supply Chain Planning) product. The view resolves the identity of trading partners — the planning company, its customers, and its suppliers — while dynamically swapping the displayed UOM and quantity fields based on whether the currently connected company acts as the publisher, the customer, or the supplier of a given demand or supply record.
Because the view depends on SYS_CONTEXT('MSC','COMPANY_ID') to determine the perspective of the query, it is intended to be executed within the context of an ASCP or ETRM session. This makes it particularly suitable for embedded use in ETRM (Enterprise Tax, Trade, and Regulatory) style analytics, supplier-demand collaboration reports, and any integration that must expose the correct quantity and unit of measure from the point of view of the logged-in operating unit. The column supplier_name, referenced in user searches, is one of the primary partner-identification columns surfaced by this view.
Underlying Base Objects
The view is documented as being defined over the following objects:
- MSC_SUP_DEM_ENTRIES_UI_V (VIEW) — the immediate parent view from which all columns are projected. It supplies the raw planning, partner, item, and quantity data.
- FND_GLOBAL (PACKAGE) / SYS_CONTEXT — used to resolve the application context, specifically the MSC COMPANY_ID value, which drives the DECODE logic.
- MSC_X_UTIL (PACKAGE) — a utility package within the MSC schema referenced by the dependency chain.
The view does not join to additional base tables directly; instead it applies DECODE expressions to columns already exposed by MSC_SUP_DEM_ENTRIES_UI_V, transforming them at query time into a company-relative perspective.
Key Columns
- PLAN_ID — identifier of the ASCP plan to which the demand/supply entry belongs.
- PUBLISHER_NAME / PUBLISHER_SITE_NAME — the publishing organization and site for the entry.
- SUPPLIER_ID / SUPPLIER_NAME / SUPPLIER_SITE_ID / SUPPLIER_SITE_NAME — the supplier trading partner identifiers and descriptive names, central to supplier-facing reporting.
- CUSTOMER_ID / CUSTOMER_NAME / CUSTOMER_SITE_ID / CUSTOMER_SITE_NAME — the corresponding customer trading partner identifiers.
- UOM / QUANTITY — resolved via DECODE on SYS_CONTEXT('MSC','COMPANY_ID'); returns PRIMARY_UOM/PRIMARY_QUANTITY when the company is the publisher, TP_UOM_CODE/TP_QUANTITY when it is the customer or supplier, and UOM_CODE/QUANTITY otherwise.
- KEY_DATE — the effective date of the entry, useful for time-phased analysis.
- INVENTORY_ITEM_ID / ITEM_NAME — the inventory item and its display name; ITEM_NAME is aliased as ITEM_DESCRIPTION.
- OWNER_ITEM_NAME, CUSTOMER_ITEM_NAME, SUPPLIER_ITEM_NAME — partner-specific item naming conventions.
- MYCO / MYSITE / TPCO / TPSITE / TP — derived columns that label "my company," "my site," the trading partner company, the trading partner site, and a flag (TP=1) indicating a trading-partner relationship.
Common Use Cases and Queries
Typical uses include supplier collaboration dashboards, trading-partner demand and supply inquiries, and ETRM reporting that must reflect the perspective of the connected company. The most frequent lookup pattern involves retrieving entries by supplier_name.
Sample query listing demand/supply entries for a specific supplier:
SELECT plan_id, supplier_name, supplier_site_name, item_name, key_date, quantity, uom FROM apps.msc_sup_dem_hz_ui_v WHERE supplier_name = :p_supplier_name ORDER BY key_date;SELECT myco, tpco, item_name, quantity, uom FROM apps.msc_sup_dem_hz_ui_v WHERE tp = 1 AND plan_id = :p_plan_id;SELECT supplier_name, customer_name, item_name, quantity FROM apps.msc_sup_dem_hz_ui_v WHERE customer_name = :p_customer AND key_date BETWEEN :start_date AND :end_date;
Because COMPANY_ID context affects UOM and QUANTITY resolution, these queries return different values when executed under different ASCP company sessions. Reports should therefore always be run within the intended MSC session context.
-
VIEW: APPS.MSC_SUP_DEM_HZ_UI_V
12.2.2
-
VIEW: APPS.MSC_SUP_DEM_HZ_UI_V
12.1.1
-
View: MSC_SUP_DEM_HZ_UI_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_HZ_UI_V, object_name:MSC_SUP_DEM_HZ_UI_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_SUP_DEM_HZ_UI_V ,
-
View: MSC_SUP_DEM_HZ_UI_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_HZ_UI_V, object_name:MSC_SUP_DEM_HZ_UI_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_SUP_DEM_HZ_UI_V ,
-
VIEW: MSC.MSC_SUP_DEM_ENTRIES#
12.2.2
-
View: MSC_SUP_DEM_ENTRIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES_V, object_name:MSC_SUP_DEM_ENTRIES_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_SUP_DEM_ENTRIES_V ,
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_V
12.1.1
-
View: MSC_SUP_DEM_ENTRIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES_V, object_name:MSC_SUP_DEM_ENTRIES_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_SUP_DEM_ENTRIES_V ,
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_V
12.2.2
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_VERT_V
12.2.2
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_VERT_V
12.1.1
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES_V, object_name:MSC_SUP_DEM_ENTRIES_V, status:VALID,
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES_V, object_name:MSC_SUP_DEM_ENTRIES_V, status:VALID,
-
APPS.MSC_SCE_PUBLISH_PKG SQL Statements
12.2.2
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_UI_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES_UI_V, object_name:MSC_SUP_DEM_ENTRIES_UI_V, status:VALID,
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_UI_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES_UI_V, object_name:MSC_SUP_DEM_ENTRIES_UI_V, status:VALID,
-
VIEW: MSC.MSC_SUP_DEM_ENTRIES#
12.2.2
owner:MSC, object_type:VIEW, object_name:MSC_SUP_DEM_ENTRIES#, status:VALID,
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_VERT_V
12.1.1
owner:APPS, object_type:VIEW, object_name:MSC_SUP_DEM_ENTRIES_VERT_V, status:VALID,
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_VERT_V
12.2.2
owner:APPS, object_type:VIEW, object_name:MSC_SUP_DEM_ENTRIES_VERT_V, status:VALID,
-
APPS.MSC_SCE_PUBLISH_PKG SQL Statements
12.1.1
-
APPS.MSC_PUBLISH_SAFETY_STOCK_PKG SQL Statements
12.1.1
-
APPS.MSC_PUBLISH_SAFETY_STOCK_PKG SQL Statements
12.2.2
-
View: MSC_SUP_DEM_ENT_CUSTOM_EX_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENT_CUSTOM_EX_V, object_name:MSC_SUP_DEM_ENT_CUSTOM_EX_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_SUP_DEM_ENT_CUSTOM_EX_V ,
-
View: MSC_SUP_DEM_ENT_CUSTOM_EX_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENT_CUSTOM_EX_V, object_name:MSC_SUP_DEM_ENT_CUSTOM_EX_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_SUP_DEM_ENT_CUSTOM_EX_V ,
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_UI_V
12.1.1
-
VIEW: APPS.MSC_SUP_DEM_ENTRIES_UI_V
12.2.2
-
TABLE: MSC.MSC_SUP_DEM_ENTRIES
12.1.1
owner:MSC, object_type:TABLE, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES, object_name:MSC_SUP_DEM_ENTRIES, status:VALID,
-
View: MSC_SUP_DEM_ENTRIES_UI_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES_UI_V, object_name:MSC_SUP_DEM_ENTRIES_UI_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_SUP_DEM_ENTRIES_UI_V ,
-
View: MSC_SUP_DEM_ENTRIES_UI_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES_UI_V, object_name:MSC_SUP_DEM_ENTRIES_UI_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_SUP_DEM_ENTRIES_UI_V ,
-
TABLE: MSC.MSC_SUP_DEM_ENTRIES
12.2.2
owner:MSC, object_type:TABLE, fnd_design_data:MSC.MSC_SUP_DEM_ENTRIES, object_name:MSC_SUP_DEM_ENTRIES, status:VALID,
-
PACKAGE BODY: APPS.MSC_SCE_PUBLISH_PKG
12.2.2
-
PACKAGE BODY: APPS.MSC_SCE_PUBLISH_PKG
12.1.1
-
APPS.MSC_X_CVMI_REPLENISH SQL Statements
12.1.1
-
APPS.MSC_X_CVMI_REPLENISH SQL Statements
12.2.2
-
APPS.MSC_X_REPLENISH SQL Statements
12.1.1
-
APPS.MSC_X_REPLENISH SQL Statements
12.2.2
-
APPS.MSC_CL_PUBLISH SQL Statements
12.1.1
-
APPS.MSC_CL_PUBLISH SQL Statements
12.2.2
-
PACKAGE BODY: APPS.MSC_PUBLISH_SAFETY_STOCK_PKG
12.1.1
-
PACKAGE BODY: APPS.MSC_PUBLISH_SAFETY_STOCK_PKG
12.2.2
-
APPS.MSC_X_HZ_UPDATE SQL Statements
12.2.2
-
APPS.MSD_SCE_PUBLISH_FORECAST_PKG SQL Statements
12.1.1
-
APPS.MSC_X_HZ_UPDATE SQL Statements
12.1.1
-
APPS.MSD_SCE_PUBLISH_FORECAST_PKG SQL Statements
12.2.2
-
APPS.MSC_CL_SUPPLIER_RESP SQL Statements
12.1.1
-
APPS.MSC_CL_SUPPLIER_RESP SQL Statements
12.2.2
-
PACKAGE BODY: APPS.MSC_CL_PUBLISH
12.2.2
-
PACKAGE BODY: APPS.MSC_CL_PUBLISH
12.1.1
-
APPS.MSC_SCE_PUB_SUPPLY_COMMIT_PKG SQL Statements
12.1.1
-
APPS.MSC_SCE_PUB_SUPPLY_COMMIT_PKG SQL Statements
12.2.2