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

I_PurchasingDocHistory

DDL: I_PURCHASINGDOCHISTORY SQL: IPURGDOCHIST Type: view BASIC

Purchase Document History

I_PurchasingDocHistory is a Basic CDS View that provides data about "Purchase Document History" in SAP S/4HANA. It reads from 1 data source (ekbe) and exposes 11 fields with key fields PurchasingDocument, PurchasingDocumentItem, PurchaseOrderTransactionType, MaterialDocumentYear, MaterialDocument.

Data Sources (1)

SourceAliasJoin Type
ekbe ekbe from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IPURGDOCHIST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Purchase Document History view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor P_PurchasingDocHistory view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument ebeln Source PurchDoc
KEY PurchasingDocumentItem ebelp Item pur. doc.
KEY PurchaseOrderTransactionType vgabe Transact. Type
KEY MaterialDocumentYear gjahr Settlement Year
KEY MaterialDocument belnr SD Document
KEY MaterialDocumentItem buzei Posting View Item
ReferenceDocument lfbnr Reference Doc.
ReferenceDocumentItem lfpos Ref. Doc. Item
GoodsMovementType bwart Valuation Type
FiscalYear lfgja Year Cur.Period
Quantity menge WarrCountValue

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_PurchasingDocHistory.
-- 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: IPURGDOCHIST

CREATE VIEW I_PurchasingDocHistory AS
SELECT
  ebeln AS PurchasingDocument,
  ebelp AS PurchasingDocumentItem,
  vgabe AS PurchaseOrderTransactionType,
  gjahr AS MaterialDocumentYear,
  belnr AS MaterialDocument,
  buzei AS MaterialDocumentItem,
  lfbnr AS ReferenceDocument,
  lfpos AS ReferenceDocumentItem,
  bwart AS GoodsMovementType,
  lfgja AS FiscalYear,
  menge AS Quantity
FROM ekbe
;