P_PurOrdItemHistCrcyCnvrsn

DDL: P_PURORDITEMHISTCRCYCNVRSN SQL: PMMPOIHISTCRCY Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Purchase Order Item History Currency Conversion

P_PurOrdItemHistCrcyCnvrsn is a Consumption CDS View that provides data about "Purchase Order Item History Currency Conversion" in SAP S/4HANA. It reads from 2 data sources (I_PurchaseOrderItem, P_PurOrdHistDelivCost) and exposes 12 fields with key fields PurchaseOrder, PurchaseOrderItem. Part of development package ODATA_MM_ANALYTICS.

Data Sources (2)

SourceAliasJoin Type
I_PurchaseOrderItem I_PurchaseOrderItem from
P_PurOrdHistDelivCost P_PurOrdHistDelivCost inner

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate bedat
P_EndDate bedat

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PMMPOIHISTCRCY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purchase Order Item History Currency Conversion view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder I_PurchaseOrderItem PurchaseOrder Purchasing Document
KEY PurchaseOrderItem I_PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
Supplier _PurchaseOrder Supplier Supplier
PurchaseOrderType _PurchaseOrder PurchaseOrderType PO Type
MaterialGroup MaterialGroup Product Group
Plant I_PurchaseOrderItem Plant Valuation Area
Material Material Vehicle Model
PurchasingGroup _PurchaseOrder PurchasingGroup Purchasing Group
PurchasingOrganization _PurchaseOrder PurchasingOrganization Purchasing Organization
Currency DocumentCurrency Document Currency
SupplierCountry
CompanyCodeCurrency

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_PurOrdItemHistCrcyCnvrsn.
-- 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: PMMPOIHISTCRCY
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : bedat, P_EndDate : bedat

CREATE VIEW P_PurOrdItemHistCrcyCnvrsn AS
SELECT
  I_PurchaseOrderItem.PurchaseOrder AS PurchaseOrder,
  I_PurchaseOrderItem.PurchaseOrderItem AS PurchaseOrderItem,
  _PurchaseOrder.Supplier AS Supplier,
  _PurchaseOrder.PurchaseOrderType AS PurchaseOrderType,
  MaterialGroup,
  I_PurchaseOrderItem.Plant AS Plant,
  Material,
  _PurchaseOrder.PurchasingGroup AS PurchasingGroup,
  _PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
  DocumentCurrency AS Currency,
  I_PurchaseOrderItem._PurchaseOrder._Supplier._StandardAddress._Country.Country AS SupplierCountry,
  _PurchaseOrder._CompanyCode.Currency AS CompanyCodeCurrency
FROM I_PurchaseOrderItem
INNER JOIN P_PurOrdHistDelivCost ON /* join condition not captured in parsed metadata */
;