C_PPS_PurContrDocHistoryC

DDL: C_PPS_PURCONTRDOCHISTORYC Type: view_entity CONSUMPTION

Purchase Contract Doc History - Cube

C_PPS_PurContrDocHistoryC is a Consumption CDS View (Cube) that provides data about "Purchase Contract Doc History - Cube" in SAP S/4HANA. It reads from 1 data source (R_PPS_PurContrDocHistory) and exposes 22 fields with key fields PurchaseContract, PurchaseContractItem, ReleaseOrder, ReleaseOrderItem. It has 3 associations to related views. It is exposed through 1 OData service (UI_PPS_PURCHASE_CONTRACT).

Data Sources (1)

SourceAliasJoin Type
R_PPS_PurContrDocHistory R_PPS_PurContrDocHistory from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_PurchasingOrganization _PurchasingOrganization R_PPS_PurContrDocHistory.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_Plant _Plant R_PPS_PurContrDocHistory.Plant = _Plant.Plant
[1..1] I_CompanyCode _CompanyCode R_PPS_PurContrDocHistory.CompanyCode = _CompanyCode.CompanyCode

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Purchase Contract Doc History - Cube view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
Analytics.internalName #LOCAL view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view

OData Services (1)

ServiceBindingVersionContractRelease
UI_PPS_PURCHASE_CONTRACT UI_PPS_PURCHASE_CONTRACT_2 V2 C1 NOT_RELEASED

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Contract Number
KEY PurchaseContractItem PurchaseContractItem Contract Item Number
KEY ReleaseOrder ReleaseOrder Purchasing Document
KEY ReleaseOrderItem ReleaseOrderItem Item Number
ReleaseOrderItemOrderQuantity ReleaseOrderItemOrderQuantity Order Quantity
ReleaseOrderItemQuantityUnit ReleaseOrderItemQuantityUnit Order Unit
ReleaseOrderItemNetAmount ReleaseOrderItemNetAmount Net Order Value
ReleaseOrderCurrency ReleaseOrderCurrency Currency
PPSPurOrderItemStatus PPSPurOrderItemStatus Item Status
PPSPurOrderItemStatusText PPSPurOrderItemStatusText Pur. Doc. Stat. Name
PPSPurOrdItemStatusCriticality PPSPurOrdItemStatusCriticality
ReleaseOrderItemLastChgDate ReleaseOrderItemLastChgDate Changed On
CompanyCode R_PPS_PurContrDocHistory CompanyCode Receiver Company Code
CompanyCodeName _CompanyCode CompanyCodeName Company Name
Plant R_PPS_PurContrDocHistory Plant Valuation Area
PlantName _Plant PlantName Plant Name
PurchasingOrganization R_PPS_PurContrDocHistory PurchasingOrganization Purchasing Organization
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName Purch. Org. Name
ReleaseOrderDate ReleaseOrderDate PO Date
PurgConfigurableItemNumber PurgConfigurableItemNumber Item
_PurchaseOrder _PurchaseOrder
_PurchaseContract _PurchaseContract

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 C_PPS_PurContrDocHistoryC.
-- 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 C_PPS_PurContrDocHistoryC AS
SELECT
  PurchaseContract,
  PurchaseContractItem,
  ReleaseOrder,
  ReleaseOrderItem,
  ReleaseOrderItemOrderQuantity,
  ReleaseOrderItemQuantityUnit,
  ReleaseOrderItemNetAmount,
  ReleaseOrderCurrency,
  PPSPurOrderItemStatus,
  PPSPurOrderItemStatusText,
  PPSPurOrdItemStatusCriticality,
  ReleaseOrderItemLastChgDate,
  R_PPS_PurContrDocHistory.CompanyCode AS CompanyCode,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  R_PPS_PurContrDocHistory.Plant AS Plant,
  _Plant.PlantName AS PlantName,
  R_PPS_PurContrDocHistory.PurchasingOrganization AS PurchasingOrganization,
  _PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  ReleaseOrderDate,
  PurgConfigurableItemNumber
FROM R_PPS_PurContrDocHistory
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON R_PPS_PurContrDocHistory.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON R_PPS_PurContrDocHistory.Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON R_PPS_PurContrDocHistory.CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
;