C_CntrlPurContrItemPriceHist

DDL: C_CNTRLPURCONTRITEMPRICEHIST SQL: CCNTRLCITMPRCHST Type: view CONSUMPTION

Central Purchase Contract Item Price History

C_CntrlPurContrItemPriceHist is a Consumption CDS View that provides data about "Central Purchase Contract Item Price History" in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, P_CntrlContractPriceHistory) and exposes 1 field. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_CalendarDate CalendarDate inner
P_CntrlContractPriceHistory P_CntrlContractPriceHistory from

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Associations (2)

CardinalityTargetAliasCondition
[1..1] E_PurchasingDocument _CntrlPurContrExtension $projection.ActivePurchasingDocument = _CntrlPurContrExtension.PurchasingDocument
[1..1] E_PurchasingDocumentItem _CntrlPurContrItemExtension $projection.ActivePurchasingDocument = _CntrlPurContrItemExtension.PurchasingDocument and $projection.CentralPurchaseContractItem = _CntrlPurContrItemExtension.PurchasingDocumentItem

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CCNTRLCITMPRCHST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
UI.headerInfo.typeName Price History view
UI.headerInfo.typeNamePlural Price History view
UI.headerInfo.title.value ProcmtHubContrBasePrDocCrcyAmt view
UI.headerInfo.description.value ProcmtHubContrBasePrDocCrcyAmt view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Central Purchase Contract Item Price History view
AbapCatalog.preserveKey true view

Fields (1)

KeyFieldSource TableSource FieldDescription
CalendarWeek Condition Change Valid From

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_CntrlPurContrItemPriceHist.
-- 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: CCNTRLCITMPRCHST
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend

CREATE VIEW C_CntrlPurContrItemPriceHist AS
SELECT
  entity: { name:'I_Currency', element:'Currency' AS CalendarWeek
FROM P_CntrlContractPriceHistory
INNER JOIN I_CalendarDate AS CalendarDate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN E_PurchasingDocument AS _CntrlPurContrExtension ON ActivePurchasingDocument = _CntrlPurContrExtension.PurchasingDocument  -- association [1..1]
LEFT OUTER JOIN E_PurchasingDocumentItem AS _CntrlPurContrItemExtension ON ActivePurchasingDocument = _CntrlPurContrItemExtension.PurchasingDocument AND CentralPurchaseContractItem = _CntrlPurContrItemExtension.PurchasingDocumentItem  -- association [1..1]
;