I_CentralPurchaseOrderHistory

DDL: I_CENTRALPURCHASEORDERHISTORY SQL: ICPURORDHIST Type: view BASIC

Central Purchase Order History

I_CentralPurchaseOrderHistory is a Basic CDS View that provides data about "Central Purchase Order History" in SAP S/4HANA. It reads from 1 data source (mmpur_ext_ekbe) and exposes 17 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentNumber, PurchaseOrderTransactionType, MaterialDocumentYear.

Data Sources (1)

SourceAliasJoin Type
mmpur_ext_ekbe EKBE from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ICPURORDHIST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Central Purchase Order History view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder ebeln Source PurchDoc
KEY PurchaseOrderItem ebelp Item pur. doc.
KEY AccountAssignmentNumber zekkn Account Assgmt No.
KEY PurchaseOrderTransactionType vgabe Transact. Type
KEY MaterialDocumentYear gjahr Settlement Year
KEY MaterialDocument belnr SD Document
KEY MaterialDocumentItem buzei Posting View Item
KEY ExtSourceSystem extsourcesystem Connected System ID
ReferenceDocument lfbnr Reference Doc.
ReferenceDocumentItem lfpos Ref. Doc. Item
GoodsMovementType bwart Valuation Type
FiscalYear lfgja Year Cur.Period
Quantity menge WarrCountValue
PurchaseOrderAmount wrbtr Gross Amount
PostingDate budat Posting Date
Currency waers Transaction Currency
DebitCreditCode shkzg Returns

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_CentralPurchaseOrderHistory.
-- 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: ICPURORDHIST

CREATE VIEW I_CentralPurchaseOrderHistory AS
SELECT
  ebeln AS PurchaseOrder,
  ebelp AS PurchaseOrderItem,
  zekkn AS AccountAssignmentNumber,
  vgabe AS PurchaseOrderTransactionType,
  gjahr AS MaterialDocumentYear,
  belnr AS MaterialDocument,
  buzei AS MaterialDocumentItem,
  ExtSourceSystem,
  lfbnr AS ReferenceDocument,
  lfpos AS ReferenceDocumentItem,
  bwart AS GoodsMovementType,
  lfgja AS FiscalYear,
  menge AS Quantity,
  wrbtr AS PurchaseOrderAmount,
  budat AS PostingDate,
  waers AS Currency,
  shkzg AS DebitCreditCode
FROM mmpur_ext_ekbe AS EKBE
;