P_PurgInfoRecdOrdPrcCalc

DDL: P_PURGINFORECDORDPRCCALC SQL: PPIRORDPRCCALC Type: view CONSUMPTION Package: ODATA_MM_PUR_INFORECPRICH_MNTR

View for PIR Order Price Conversion

P_PurgInfoRecdOrdPrcCalc is a Consumption CDS View that provides data about "View for PIR Order Price Conversion" in SAP S/4HANA. It reads from 1 data source (I_PurgInfoRecdOrdPrcHist) and exposes 13 fields with key fields PurchasingInfoRecord, PurchasingOrganization, PurchasingInfoRecordCategory, Plant, PurchasingDocumentOrderDate. It has 1 association to related views. Part of development package ODATA_MM_PUR_INFORECPRICH_MNTR.

Data Sources (1)

SourceAliasJoin Type
I_PurgInfoRecdOrdPrcHist I_PurgInfoRecdOrdPrcHist from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_PurgInfoRecordWithOrgData _InfoRecord $projection.PurchasingInfoRecord = _InfoRecord.PurchasingInfoRecord and I_PurgInfoRecdOrdPrcHist.Plant = _InfoRecord.Plant and $projection.PurchasingInfoRecordCategory = _InfoRecord.PurchasingInfoRecordCategory and $projection.PurchasingOrganization = _InfoRecord.PurchasingOrganization

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PPIRORDPRCCALC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label View for PIR Order Price Conversion view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (13)

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
char50asFormattedPurchaseOrderItem
PurgDocNetPriceAmount PurgDocNetPriceAmount Net Price
Currency Currency Valuation Crcy
PurchaseOrderPriceUnit PurchaseOrderPriceUnit Order Price Un.
OrderPriceUnit OrderPriceUnit Order Price Un.
OrderQuantity OrderQuantity Quantity

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_PurgInfoRecdOrdPrcCalc.
-- 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: PPIRORDPRCCALC

CREATE VIEW P_PurgInfoRecdOrdPrcCalc AS
SELECT
  PurchasingInfoRecord,
  PurchasingOrganization,
  PurchasingInfoRecordCategory,
  Plant,
  PurchasingDocumentOrderDate,
  PurchasingDocument,
  PurchasingDocumentItem,
  cast(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(concat(PurchasingInfoRecord, '/'), PurchasingOrganization),'/'), PurchasingInfoRecordCategory),'/'), Plant), '/'), PurchasingDocumentOrderDate),'/'), PurchasingDocument),'/'), PurchasingDocumentItem) as abap.char(50)) as FormattedPurchaseOrderItem AS char50asFormattedPurchaseOrderItem,
  PurgDocNetPriceAmount,
  Currency,
  PurchaseOrderPriceUnit,
  OrderPriceUnit,
  OrderQuantity
FROM I_PurgInfoRecdOrdPrcHist
LEFT OUTER JOIN I_PurgInfoRecordWithOrgData AS _InfoRecord ON PurchasingInfoRecord = _InfoRecord.PurchasingInfoRecord AND I_PurgInfoRecdOrdPrcHist.Plant = _InfoRecord.Plant AND PurchasingInfoRecordCategory = _InfoRecord.PurchasingInfoRecordCategory AND PurchasingOrganization = _InfoRecord.PurchasingOrganization  -- association [0..1]
;