P_PriceAndQuantityVariance3

DDL: P_PRICEANDQUANTITYVARIANCE3 SQL: PMMPRCQNTYVAR3 Type: view CONSUMPTION

Price And Quantity Variance3

P_PriceAndQuantityVariance3 is a Consumption CDS View that provides data about "Price And Quantity Variance3" in SAP S/4HANA. It reads from 1 data source (P_PriceAndQuantityVariance) and exposes 23 fields with key fields PurchaseOrder, PurchaseOrderItem.

Data Sources (1)

SourceAliasJoin Type
P_PriceAndQuantityVariance P_PriceAndQuantityVariance from

Parameters (2)

NameTypeDefault
P_StartDate bedat
P_EndDate bedat

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PMMPRCQNTYVAR3 view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
VDM.private true view
EndUserText.label Price And Quantity Variance3 view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
NetAmount NetAmount Stated Amount
OrderQuantity OrderQuantity Quantity
PurchaseOrderQuantityUnit PurchaseOrderQuantityUnit Order Unit
PurchaseOrderTransactionType PurchaseOrderTransactionType
PurchasingCompletenessStatus PurchasingCompletenessStatus Incomplete
Currency Currency Valuation Crcy
PostingDate PostingDate Posting Date for GR
PurchaseOrderDate PurchaseOrderDate PO Date
Supplier Supplier Supplier
PurchaseOrderType PurchaseOrderType PO Type
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
Plant Plant Valuation Area
Material Material Vehicle Model
MaterialGroup Items MaterialGroup Product Group
CompanyCode CompanyCode Receiver Company Code
NetPriceAmount
NetPriceQuantity NetPriceQuantity Price Unit
InvoiceAmountInDocCurrency InvoiceAmountInDocCurrency
DeliveredQuantity DeliveredQuantity Qty. in OPUn

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_PriceAndQuantityVariance3.
-- 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: PMMPRCQNTYVAR3
-- Parameters: P_StartDate : bedat, P_EndDate : bedat

CREATE VIEW P_PriceAndQuantityVariance3 AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  PurchasingDocumentCategory,
  NetAmount,
  OrderQuantity,
  PurchaseOrderQuantityUnit,
  PurchaseOrderTransactionType,
  PurchasingCompletenessStatus,
  Currency,
  PostingDate,
  PurchaseOrderDate,
  Supplier,
  PurchaseOrderType,
  PurchasingOrganization,
  PurchasingGroup,
  Plant,
  Material,
  Items.MaterialGroup AS MaterialGroup,
  CompanyCode,
  division(NetPriceAmount,NetPriceQuantity, 6) AS NetPriceAmount,
  NetPriceQuantity,
  InvoiceAmountInDocCurrency,
  DeliveredQuantity
FROM P_PriceAndQuantityVariance
;