Deprecated PUBLIC_LOCAL_API
This CDS view is deprecated in S/4HANA. Use I_PurchaseOrderHistory instead. View all deprecated CDS views →

I_PurDocHistory

DDL: I_PURDOCHISTORY SQL: IPDHSTRY Type: view BASIC

Purchasing Document History

I_PurDocHistory is a Basic CDS View that provides data about "Purchasing Document History" in SAP S/4HANA. It reads from 1 data source (ekbe) and exposes 8 fields with key fields PurchasingDocument, PurchasingDocumentItem, PurchaseOrderCategory, MaterialDocument, MaterialDocumentItem.

Data Sources (1)

SourceAliasJoin Type
ekbe ekbe from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IPDHSTRY view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Purchasing Document History view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.lifecycle.successor I_PurchaseOrderHistory view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument ebeln Source PurchDoc
KEY PurchasingDocumentItem ebelp Item pur. doc.
KEY PurchaseOrderCategory vgabe Transact. Type
KEY MaterialDocument belnr SD Document
KEY MaterialDocumentItem buzei Posting View Item
KEY MaterialDocumentYear gjahr Settlement Year
DocumentDate bldat Journal Entry Date
DeliveryIndicator elikz Delivery Completion

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_PurDocHistory.
-- 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: IPDHSTRY

CREATE VIEW I_PurDocHistory AS
SELECT
  ebeln AS PurchasingDocument,
  ebelp AS PurchasingDocumentItem,
  vgabe AS PurchaseOrderCategory,
  belnr AS MaterialDocument,
  buzei AS MaterialDocumentItem,
  gjahr AS MaterialDocumentYear,
  bldat AS DocumentDate,
  elikz AS DeliveryIndicator
FROM ekbe
;