P_PurchaseContractHistory

DDL: P_PURCHASECONTRACTHISTORY SQL: PMMCONTRHIST Type: view CONSUMPTION Package: ODATA_MM_PUR_CTRITEM_MNTR

Purchase Contract History

P_PurchaseContractHistory is a Consumption CDS View that provides data about "Purchase Contract History" in SAP S/4HANA. It reads from 1 data source (I_PurchaseContractHistory) and exposes 3 fields with key fields PurchaseContract, PurchaseContractItem. Part of development package ODATA_MM_PUR_CTRITEM_MNTR.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseContractHistory ContractHistory from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PMMCONTRHIST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Purchase Contract History view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
KEY PurchaseContractItem PurchaseContractItem Item
ReleaseOrderDate

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_PurchaseContractHistory.
-- 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: PMMCONTRHIST

CREATE VIEW P_PurchaseContractHistory AS
SELECT
  PurchaseContract,
  PurchaseContractItem,
  cast( max( ReleaseOrderDate ) as mm_a_latest_release_date ) AS ReleaseOrderDate
FROM I_PurchaseContractHistory AS ContractHistory
;