P_QuantityVariance

DDL: P_QUANTITYVARIANCE SQL: PMMQUANTVAR Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

P_QuantityVariance

P_QuantityVariance is a Consumption CDS View that provides data about "P_QuantityVariance" in SAP S/4HANA. It reads from 2 data sources (P_SupplierEvalByQuantity, P_QuantityVarianceUpdatedScore) and exposes 10 fields with key fields PurchaseOrder, PurchaseOrderItem. Part of development package ODATA_MM_ANALYTICS.

Data Sources (2)

SourceAliasJoin Type
P_SupplierEvalByQuantity P_SupplierEvalByQuantity from
P_QuantityVarianceUpdatedScore UpdatedScore left_outer

Parameters (4)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate bedat
P_EndDate bedat
P_DateFunction datefunctionid

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PMMQUANTVAR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder QuantityVariance PurchaseOrder Purchasing Document
KEY PurchaseOrderItem QuantityVariance PurchaseOrderItem Purchasing Document Item
PurchaseOrderDate PurchaseOrderDate PO Date
PurchasingOrganization QuantityVariance PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
CompanyCode CompanyCode Receiver Company Code
Supplier Supplier Supplier
Material Material Vehicle Model
MaterialGroup QuantityVariance MaterialGroup Product Group
Plant Plant Valuation Area

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_QuantityVariance.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PMMQUANTVAR
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : bedat, P_EndDate : bedat, P_DateFunction : datefunctionid

CREATE VIEW P_QuantityVariance AS
SELECT
  QuantityVariance.PurchaseOrder AS PurchaseOrder,
  QuantityVariance.PurchaseOrderItem AS PurchaseOrderItem,
  PurchaseOrderDate,
  QuantityVariance.PurchasingOrganization AS PurchasingOrganization,
  PurchasingGroup,
  CompanyCode,
  Supplier,
  Material,
  QuantityVariance.MaterialGroup AS MaterialGroup,
  Plant
FROM P_SupplierEvalByQuantity
LEFT OUTER JOIN P_QuantityVarianceUpdatedScore AS UpdatedScore ON /* join condition not captured in parsed metadata */
;