P_PriceVariance

DDL: P_PRICEVARIANCE SQL: PMMPRICEVAR Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

P_PriceVariance

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

Data Sources (2)

SourceAliasJoin Type
P_PriceVariance3 P_PriceVariance3 from
P_PriceVarianceUpdatedScore UpdatedScore left_outer

Parameters (4)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate bedat
P_EndDate bedat
P_DateFunction datefunctionid

Annotations (6)

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

Fields (10)

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

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_PriceVariance.
-- 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: PMMPRICEVAR
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : bedat, P_EndDate : bedat, P_DateFunction : datefunctionid

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