I_USFedPurchasingHistory

DDL: I_USFEDPURCHASINGHISTORY Type: view_entity COMPOSITE

History per Purchasing Document and Item

I_USFedPurchasingHistory is a Composite CDS View that provides data about "History per Purchasing Document and Item" in SAP S/4HANA. It reads from 1 data source (I_PPS_PurchasingHistory) and exposes 11 fields.

Data Sources (1)

SourceAliasJoin Type
I_PPS_PurchasingHistory I_PPS_PurchasingHistory from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label History per Purchasing Document and Item view
Metadata.ignorePropagatedAnnotations true view
Analytics.internalName #LOCAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (11)

KeyFieldSource TableSource FieldDescription
PurchasingDocument Purchasing Document
PurchasingDocumentItem Purchasing Doc. Item
PPSPurgHistDocumentCategory PPSPurgHistDocumentCategory Transact. Type
UnitOfMeasure Unit Protected Qty
Quantity
POUnitOfMeasure PO Price Unit
PurchaseOrderQty
LocalCurrency Local Currency
AmountInLocalCurrency
DocumentCurrency Document Currency
NetValueAmountInDocCurrency

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 I_USFedPurchasingHistory.
-- 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.

CREATE VIEW I_USFedPurchasingHistory AS
SELECT
  cast( PurchasingDocument as pps_purchasing_document preserving type ) AS PurchasingDocument,
  cast( PurchasingDocumentItem as pps_purchasing_document_item preserving type ) AS PurchasingDocumentItem,
  PPSPurgHistDocumentCategory,
  cast( UnitOfMeasure as uom_qty_dele preserving type ) AS UnitOfMeasure,
  sum( Quantity ) AS Quantity,
  cast( POUnitOfMeasure as uom_qty_dele preserving type ) AS POUnitOfMeasure,
  sum( PurchaseOrderQty ) AS PurchaseOrderQty,
  cast( LocalCurrency as currency preserving type ) AS LocalCurrency,
  sum( AmountInLocalCurrency ) AS AmountInLocalCurrency,
  cast( DocumentCurrency as currency preserving type ) AS DocumentCurrency,
  sum( NetValueAmountInDocCurrency ) AS NetValueAmountInDocCurrency
FROM I_PPS_PurchasingHistory
;