C_PurgInfoRecdOrdVarcCalc

DDL: C_PURGINFORECDORDVARCCALC SQL: CPIRORDVARCALC Type: view CONSUMPTION Package: ODATA_MM_PUR_INFORECPRICH_MNTR

Consumption view for PIR PO variance

C_PurgInfoRecdOrdVarcCalc is a Consumption CDS View that provides data about "Consumption view for PIR PO variance" in SAP S/4HANA. It reads from 1 data source (P_PurInfoRecdPrHistCalc) and exposes 11 fields with key fields PurchasingInfoRecord, PurchasingOrganization, PurchasingInfoRecordCategory, Plant, PurchasingDocumentOrderDate. It is exposed through 1 OData service (ASQL_F2988). Part of development package ODATA_MM_PUR_INFORECPRICH_MNTR.

Data Sources (1)

SourceAliasJoin Type
P_PurInfoRecdPrHistCalc P_PurInfoRecdPrHistCalc from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CPIRORDVARCALC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #NONE view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Consumption view for PIR PO variance view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F2988 ASQL_F2988 C2 NOT_RELEASED

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY PurchasingInfoRecord PurchasingInfoRecord Info Record
KEY PurchasingOrganization PurchasingOrganization Purchasing Organization
KEY PurchasingInfoRecordCategory PurchasingInfoRecordCategory Infotype
KEY Plant Plant Valuation Area
KEY PurchasingDocumentOrderDate PurchasingDocumentOrderDate PO Date
KEY PurchasingDocument PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
ConditionValidityEndDate PO Date
PriceVarianceInPct Variance
ReferenceDocumentCrcy ReferenceDocumentCrcy
NetPriceAmount NetPriceAmount Net Price

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 C_PurgInfoRecdOrdVarcCalc.
-- 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: CPIRORDVARCALC

CREATE VIEW C_PurgInfoRecdOrdVarcCalc AS
SELECT
  PurchasingInfoRecord,
  PurchasingOrganization,
  PurchasingInfoRecordCategory,
  Plant,
  PurchasingDocumentOrderDate,
  PurchasingDocument,
  PurchasingDocumentItem,
  cast(PurchasingDocumentOrderDate as abap.char(8)) AS ConditionValidityEndDate,
  cast( 0 as abap.dec( 11, 2 ) ) AS PriceVarianceInPct,
  ReferenceDocumentCrcy,
  NetPriceAmount
FROM P_PurInfoRecdPrHistCalc
;