P_InfoRecordPriceVariance1

DDL: P_INFORECORDPRICEVARIANCE1 SQL: PMMIRPRCVAR1 Type: view CONSUMPTION

P_InfoRecordPriceVariance1 is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_CalendarDate, P_ChangeDocumentItem3, P_InfoRecordPriceVariance) and exposes 26 fields with key fields PurchasingInfoRecord, PurchasingInfoRecordCategory, PurchasingOrganization, Plant, ChangeDocument.

Data Sources (3)

SourceAliasJoin Type
I_CalendarDate CalendarDate left_outer
P_ChangeDocumentItem3 P_ChangeDocumentItem3 left_outer
P_InfoRecordPriceVariance P_InfoRecordPriceVariance from

Parameters (4)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_Material matnr
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PMMIRPRCVAR1 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 (26)

KeyFieldSource TableSource FieldDescription
KEY PurchasingInfoRecord InfoRecordPriceChange PurchasingInfoRecord Info Record
KEY PurchasingInfoRecordCategory PurchasingInfoRecordCategory Infotype
KEY PurchasingOrganization InfoRecordPriceChange PurchasingOrganization Purchasing Organization
KEY Plant InfoRecordPriceChange Plant Valuation Area
KEY ChangeDocument ChangeDocument Document Number
CompanyCode
PurchasingGroup InfoRecordPriceChange PurchasingGroup Purchasing Group
Supplier Supplier Supplier
Material InfoRecordPriceChange Material Vehicle Model
MaterialGroup InfoRecordPriceChange MaterialGroup Product Group
CreationDate CreationDate Time Stamp
NumberOfChanges NumberOfChanges
NumberOfPriceChanges InfoRecordPriceChange NumberOfPriceChanges
DocumentChangeDate DocumentChangeDate
BOMHasHeaderInfoRecord BOMHasHeaderInfoRecord
TotalNumberOfChanges NumberOfChanges NumberOfPriceChanges
CalendarYear CalendarYear Year
CalendarQuarter CalendarQuarter Calendar Quarter
CalendarMonth CalendarMonth Calendar Month
CalendarWeek CalendarWeek Calendar Week
YearQuarter YearQuarter Year Quarter
YearMonth YearMonth Year Month
YearWeek YearWeek Year and Calendar Week
QuantityInBaseUnit QuantityInBaseUnit Quantity
MaterialPriceUnitQty MaterialPriceUnitQty Price unit
PurchaseOrderPriceUnit PurchaseOrderPriceUnit Order Price Un.

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_InfoRecordPriceVariance1.
-- 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: PMMIRPRCVAR1
-- Parameters: P_DisplayCurrency : displaycurrency, P_Material : matnr, P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend

CREATE VIEW P_InfoRecordPriceVariance1 AS
SELECT
  InfoRecordPriceChange.PurchasingInfoRecord AS PurchasingInfoRecord,
  PurchasingInfoRecordCategory,
  InfoRecordPriceChange.PurchasingOrganization AS PurchasingOrganization,
  InfoRecordPriceChange.Plant AS Plant,
  ChangeDocument,
  cast('' as bukrs ) AS CompanyCode,
  InfoRecordPriceChange.PurchasingGroup AS PurchasingGroup,
  Supplier,
  InfoRecordPriceChange.Material AS Material,
  InfoRecordPriceChange.MaterialGroup AS MaterialGroup,
  CreationDate,
  NumberOfChanges,
  InfoRecordPriceChange.NumberOfPriceChanges AS NumberOfPriceChanges,
  DocumentChangeDate,
  BOMHasHeaderInfoRecord,
  NumberOfChanges.NumberOfPriceChanges AS TotalNumberOfChanges,
  CalendarYear,
  CalendarQuarter,
  CalendarMonth,
  CalendarWeek,
  YearQuarter,
  YearMonth,
  YearWeek,
  QuantityInBaseUnit,
  MaterialPriceUnitQty,
  PurchaseOrderPriceUnit
FROM P_InfoRecordPriceVariance
LEFT OUTER JOIN I_CalendarDate AS CalendarDate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ChangeDocumentItem3 ON /* join condition not captured in parsed metadata */
;