Results for “purchase_order”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
MSC_CUST_BUCKET_V is a valid database view owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It belongs to the MSC product family — Advanced Supply Chain Planning — and serves as a specialized, pre-aggregated reporting layer that pivots supply chain planning quantities into discrete business "buckets." Rather than presenting a flat transaction table, the view applies conditional DECODE logic so that a single quantity column in the source data is routed into one of several semantically distinct forecast, commitment, or capacity columns depending on the value of PUBLISHER_ORDER_TYPE.
The view is significant because it respects the MSC multi-organization security model. It calls SYS_CONTEXT('MSC', 'COMPANY_ID') and compares that value against PUBLISHER_ID, CUSTOMER_ID, and SUPPLIER_ID. Planning quantities are therefore returned only for the organization context in which the query executes, and the chosen source column (PRIMARY_QUANTITY, TP_QUANTITY, or QUANTITY) depends on whether the publisher represents the company itself or a trading partner. This makes the view suitable for dashboards, collaborative planning extracts, and downstream integrations that require bucketed demand and supply figures without reimplementing the pivot logic in every report.
Underlying Base Objects
Per the documented 12.2.2 metadata, MSC_CUST_BUCKET_V is defined over three referenced objects:
- FND_GLOBAL (PACKAGE) — supplies session and security context used by the view's DECODE logic and DBA-layer access checks.
- MSC_SUP_DEM_ENTRIES_UI_V (VIEW) — the immediate data source supplying publisher, customer, supplier, and quantity columns that MSC_CUST_BUCKET_V pivots into named buckets.
- MSC_X_UTIL (PACKAGE) — a planning utility package referenced by the view definition.
The view text itself contains no FROM or JOIN clause in the published excerpt; the selection and DECODE expressions are applied against the columns surfaced through MSC_SUP_DEM_ENTRIES_UI_V, making that view the effective row source for the bucketing logic.
Key Columns
The view exposes one column per planning bucket, each returning either the routed quantity or zero. The DECODE chain is identical across columns, differing only by the PUBLISHER_ORDER_TYPE constant being tested:
- SALES_FORECAST — PUBLISHER_ORDER_TYPE = 1.
- ORDER_FORECAST — PUBLISHER_ORDER_TYPE = 2.
- SUPPLY_COMMIT — PUBLISHER_ORDER_TYPE = 3.
- HISTORICAL_SALES — PUBLISHER_ORDER_TYPE = 4.
- SELL_THROUGH_FORECAST — PUBLISHER_ORDER_TYPE = 5.
- NEGOTIATED_CAPACITY — PUBLISHER_ORDER_TYPE = 6.
- SAFETY_STOCK — PUBLISHER_ORDER_TYPE = 7.
- ALLOCATED_ONHAND — PUBLISHER_ORDER_TYPE = 9.
For each bucket, the routed value is determined by the nested DECODE: when COMPANY_ID equals PUBLISHER_ID, PRIMARY_QUANTITY is returned (this is the key relevance to the searched term "primary_quantity"); otherwise the value resolves through CUSTOMER_ID/SUPPLIER_ID to TP_QUANTITY, falling back to QUANTITY. All other PUBLISHER_ORDER_TYPE values yield 0 for that column.
Common Use Cases and Queries
Typical scenarios include customer collaborative planning extracts, forecast-versus-commitment reconciliation, and safety stock or allocated on-hand reporting by trading partner. A representative query follows:
SELECT sales_forecast, order_forecast, supply_commit, safety_stock, allocated_onhand FROM apps.msc_cust_bucket_v;- Filter or aggregate to isolate buckets:
SELECT SUM(supply_commit) FROM apps.msc_cust_bucket_v WHERE supply_commit <> 0;
Because PRIMARY_QUANTITY is only surfaced when the session's MSC COMPANY_ID matches PUBLISHER_ID, correct session context must be established before querying; otherwise quantity values resolve to TP_QUANTITY or QUANTITY. Reports should also account for PUBLISHER_ORDER_TYPE values of 8 and others that produce zero across all buckets.
-
View: MSC_CUST_BUCKET_V 12.2.2
APPS.MSC_CUST_BUCKET_V·↳ FND_GLOBAL·↳ MSC_SUP_DEM_ENTRIES_UI_V·↳ MSC_X_UTIL·Explore MSC module →
-
View: AR_ICR_TRX_V 12.1.1
(Release 115 Only)
APPS.AR_ICR_TRX_V·↳ AR_CONS_INV·↳ AR_PAYMENT_SCHEDULES·↳ HZ_CUSTOMER_PROFILES·Explore AR module →
-
View: AR_ICR_TRX_V 12.2.2
(Release 115 Only)
APPS.AR_ICR_TRX_V·↳ AR_CONS_INV·↳ AR_PAYMENT_SCHEDULES·↳ HZ_CUSTOMER_PROFILES·Explore AR module →
-
Table: JG_ZZ_AR_TMP_DETAIL 12.1.1
Used for calculating sub-ledger balances and holding detailed reporting data for Receivables
-
View: AR_XML_PO_INFO_V 12.2.2
APPS.AR_XML_PO_INFO_V·↳ AR_XML_VIEW_FUNCTIONS·↳ RA_CUSTOMER_TRX·Explore AR module →
-
View: AR_XML_PO_INFO_V 12.1.1
APPS.AR_XML_PO_INFO_V·↳ AR_XML_VIEW_FUNCTIONS·↳ RA_CUSTOMER_TRX·Explore AR module →
-
View: AR_ICR_LINES_TRX_V 12.2.2
(Release 115 Only)
APPS.AR_ICR_LINES_TRX_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ AR_CONS_INV·Explore AR module →
-
View: MSC_CUST_BUCKET_V 12.1.1
APPS.MSC_CUST_BUCKET_V·↳ FND_GLOBAL·↳ MSC_SUP_DEM_ENTRIES_UI_V·↳ MSC_X_UTIL·Explore MSC module →
-
View: RA_CUSTOMER_TRX_V 12.2.2
(Release 115)
APPS.RA_CUSTOMER_TRX_V·↳ ARH_ADDR_PKG·↳ ARPT_SQL_FUNC_UTIL·↳ FND_TERRITORIES_VL·Explore AR module →
-
View: AR_APP_ADJ_V 12.2.2
(Release 11.5 Only)
APPS.AR_APP_ADJ_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ AR_ADJUSTMENTS·Explore AR module →
-
APPS.RA_CUSTOMER_TRX_ALL_MRC_V·↳ RA_CUSTOMER_TRX_ALL·↳ RA_MC_CUSTOMER_TRX·Explore AR module →
-
Contains CN transactions picked up in the AR data collection process.
-
View: AR_MASS_APPLICATIONS_V 12.2.2
APPS.AR_MASS_APPLICATIONS_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ ARP_VIEW_CONSTANTS·Explore AR module →
-
Table: JG_ZZ_AR_TMP_DETAIL 12.2.2
Used for calculating sub-ledger balances and holding detailed reporting data for Receivables
-
Table: AR_SALES_TAX_REP_ITF 12.2.2
Report Exchange interface table for the US Sales Tax report
-
View: AR_BR_ASSIGNMENTS_V 12.1.1
APPS.AR_BR_ASSIGNMENTS_V·↳ AR_CONS_INV_ALL·↳ AR_LOOKUPS·↳ AR_PAYMENT_SCHEDULES·Explore AR module →
-
Table: AR_ARCHIVE_HEADER 12.2.2
Header-level archive information
-
(Release 115 Only)
APPS.RA_CUSTOMER_TRX_PARTIAL_V·↳ ARH_ADDR_PKG·↳ ARPT_SQL_FUNC_UTIL·↳ AR_LOOKUPS·Explore AR module →
-
View: RA_CUSTOMER_TRX_CM_V 12.1.1
(Release 115 Only)
APPS.RA_CUSTOMER_TRX_CM_V·↳ ARPT_SQL_FUNC_UTIL·↳ AR_LOOKUPS·↳ AR_RECEIPT_METHODS·Explore AR module →
-
(Release 115 Only)
APPS.RA_CUSTOMER_TRX_PARTIAL_V·↳ ARH_ADDR_PKG·↳ ARPT_SQL_FUNC_UTIL·↳ AR_LOOKUPS·Explore AR module →
-
APPS.RA_CUSTOMER_TRX_ALL_MRC_V·↳ RA_CUSTOMER_TRX_ALL·↳ RA_MC_CUSTOMER_TRX·Explore AR module →
-
Descriptive Flexfields for payment schedules
APPS.AR_PAYMENT_SCHEDULES_FLEX_VIEW·↳ AR_CASH_RECEIPTS·↳ AR_PAYMENT_SCHEDULES·↳ RA_CUSTOMER_TRX·Explore AR module →
-
(Release 11.5 Only)
APPS.AR_RECEIVABLE_APPLICATIONS_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ AR_CASH_RECEIPTS·Explore AR module →
-
View: AR_OPEN_TRX_V 12.2.2
(Release 115 Only)
APPS.AR_OPEN_TRX_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_VIEW_CONSTANTS·↳ AR_CONS_INV·Explore AR module →
-
View: AR_OPEN_TRX_V 12.1.1
(Release 115 Only)
APPS.AR_OPEN_TRX_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_VIEW_CONSTANTS·↳ AR_CONS_INV·Explore AR module →
-
View: AR_OPEN_ITEMS_V 12.1.1
(Release 115 Only)
APPS.AR_OPEN_ITEMS_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ AR_CASH_RECEIPTS·Explore AR module →
-
View: AR_OPEN_ITEMS_V 12.2.2
(Release 115 Only)
APPS.AR_OPEN_ITEMS_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ AR_CASH_RECEIPTS·Explore AR module →
-
View: RA_CUSTOMER_TRX_CM_V 12.2.2
(Release 115 Only)
APPS.RA_CUSTOMER_TRX_CM_V·↳ ARPT_SQL_FUNC_UTIL·↳ AR_LOOKUPS·↳ AR_RECEIPT_METHODS·Explore AR module →
-
View: AR_MASS_APPLICATIONS_V 12.1.1
APPS.AR_MASS_APPLICATIONS_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ ARP_VIEW_CONSTANTS·Explore AR module →
-
View: RA_CUSTOMER_TRX_V 12.1.1
(Release 115)
APPS.RA_CUSTOMER_TRX_V·↳ ARH_ADDR_PKG·↳ ARPT_SQL_FUNC_UTIL·↳ FND_TERRITORIES_VL·Explore AR module →
-
View: AR_ICR_LINES_TRX_V 12.1.1
(Release 115 Only)
APPS.AR_ICR_LINES_TRX_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ AR_CONS_INV·Explore AR module →
-
(Release 11.5 Only)
APPS.AR_RECEIVABLE_APPLICATIONS_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ AR_CASH_RECEIPTS·Explore AR module →
-
View: AR_BR_ASSIGNMENTS_V 12.2.2
APPS.AR_BR_ASSIGNMENTS_V·↳ AR_CONS_INV_ALL·↳ AR_LOOKUPS·↳ AR_PAYMENT_SCHEDULES·Explore AR module →
-
this view picks up all the valid exception details
APPS.MSC_EXCEPTION_DETAILS_V·↳ MSC_DEMANDS·↳ MSC_EXCEPTION_DETAILS·↳ MSC_FULL_PEGGING·Explore MSC module →
-
this view picks up all the valid exception details
APPS.MSC_EXCEPTION_DETAILS_V·↳ MSC_DEMANDS·↳ MSC_EXCEPTION_DETAILS·↳ MSC_FULL_PEGGING·Explore MSC module →
-
Contains CN transactions picked up in the AR data collection process.
-
View: AR_APP_ADJ_V 12.1.1
(Release 11.5 Only)
APPS.AR_APP_ADJ_V·↳ ARPT_SQL_FUNC_UTIL·↳ ARP_DEDUCTION·↳ AR_ADJUSTMENTS·Explore AR module →
-
View: RA_CUSTOMER_TRX_RA_V 12.2.2
APPS.RA_CUSTOMER_TRX_RA_V·↳ HZ_CUST_ACCOUNTS·↳ HZ_PARTIES·↳ RA_BATCH_SOURCES_ALL·Explore AR module →
-
View: RA_CUSTOMER_TRX_MRC_V 12.2.2
APPS.RA_CUSTOMER_TRX_MRC_V·↳ RA_CUSTOMER_TRX_ALL·↳ RA_MC_CUSTOMER_TRX·Explore AR module →
-
Table: AR_ARCHIVE_HEADER 12.1.1
Header-level archive information
-
Header-level information about invoices, debit memos, chargebacks, commitments and credit memos
-
(Release 115 Only)
APPS.RA_CUSTOMER_TRX_PART_CB_V·↳ ARH_ADDR_PKG·↳ ARPT_SQL_FUNC_UTIL·↳ AR_CONS_INV_ALL·Explore AR module →
-
Descriptive Flexfields for payment schedules
APPS.AR_PAYMENT_SCHEDULES_FLEX_VIEW·↳ AR_CASH_RECEIPTS·↳ AR_PAYMENT_SCHEDULES·↳ RA_CUSTOMER_TRX·Explore AR module →
-
View: RA_CUSTOMER_TRX_RA_V 12.1.1
APPS.RA_CUSTOMER_TRX_RA_V·↳ HZ_CUST_ACCOUNTS·↳ HZ_PARTIES·↳ RA_BATCH_SOURCES_ALL·Explore AR module →
-
View: RA_CUSTOMER_TRX_MRC_V 12.1.1
APPS.RA_CUSTOMER_TRX_MRC_V·↳ RA_CUSTOMER_TRX_ALL·↳ RA_MC_CUSTOMER_TRX·Explore AR module →