P_CntrlContrPriceComponents

DDL: P_CNTRLCONTRPRICECOMPONENTS SQL: PCNTRLPRCCOMNT Type: view CONSUMPTION Package: ODATA_MM_PUR_CCTR_ANALYTICS

Price Components

P_CntrlContrPriceComponents is a Consumption CDS View that provides data about "Price Components" in SAP S/4HANA. It reads from 4 data sources (I_CntrlContrPriceComponents, I_CntrlContrPriceComponents, I_CntrlContrPriceComponents, I_CntrlPurContrWthPriceHist) and exposes 29 fields with key fields ProcmtHubContrValidityUUID, PrmtHbContrItmPriceCndnUUID, PrmtHbContrItmPriceCndnUUID, PrmtHbContrItmPriceCndnUUID. It has 2 associations to related views. Part of development package ODATA_MM_PUR_CCTR_ANALYTICS.

Data Sources (4)

SourceAliasJoin Type
I_CntrlContrPriceComponents I_CntrlContrPriceComponents from
I_CntrlContrPriceComponents I_CntrlContrPriceComponents union_all
I_CntrlContrPriceComponents PriceCondition union_all
I_CntrlPurContrWthPriceHist PriceVariance inner

Parameters (1)

NameTypeDefault
P_DisplayCurrency displaycurrency

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_PurConditionText _ConditionText $projection.ConditionType = _ConditionText.ConditionType and _ConditionText.ConditionApplication = 'M' and _ConditionText.Language = $session.system_language
[0..1] I_PurgCndnChangeReasonText _PurgCndnChangeReasonText $projection.ConditionChangeReason = _PurgCndnChangeReasonText.ConditionChangeReason

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PCNTRLPRCCOMNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY ProcmtHubContrValidityUUID ProcmtHubContrValidityUUID Validity ID
KEY PrmtHbContrItmPriceCndnUUID PrmtHbContrItmPriceCndnUUID Condition ID
ConditionType ConditionType Condition type
ConditionTextendasConditionText
ConditionChangeReason ConditionChangeReason Cndn Change Reason
ConditionChangeReasonText _PurgCndnChangeReasonText ConditionChangeReasonText Description
ProcmtHubContrCndnDocCrcyAmt ProcmtHubContrCndnRptgCrcy1Amt NET PRICE
ConditionValidityStartDate
ConditionValidityEndDate
DisplayCurrency
KEY PrmtHbContrItmPriceCndnUUID PrmtHbContrItmPriceCndnUUID Condition ID
ConditionType ConditionType Condition type
ConditionTextendasConditionText
ConditionChangeReason ConditionChangeReason Cndn Change Reason
ConditionChangeReasonText _PurgCndnChangeReasonText ConditionChangeReasonText Description
ProcmtHubContrCndnDocCrcyAmt ProcmtHubContrCndnRptgCrcy2Amt NET PRICE
ConditionValidityStartDate
ConditionValidityEndDate
DisplayCurrency
ProcmtHubContrValidityUUID Validity ID
KEY PrmtHbContrItmPriceCndnUUID PrmtHbContrItmPriceCndnUUID Condition ID
ConditionType ConditionType Condition type
ConditionTextendasConditionText
ConditionChangeReason ConditionChangeReason Cndn Change Reason
ConditionChangeReasonText _PurgCndnChangeReasonText ConditionChangeReasonText Description
ConditionValidityStartDate
ConditionValidityEndDate
DisplayCurrency
ProcmtHubContrItmCndnSortOrd ProcmtHubContrItmCndnSortOrd Sort Order

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_CntrlContrPriceComponents.
-- 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: PCNTRLPRCCOMNT
-- Parameters: P_DisplayCurrency : displaycurrency

CREATE VIEW P_CntrlContrPriceComponents AS
SELECT
  ProcmtHubContrValidityUUID,
  PrmtHbContrItmPriceCndnUUID,
  ConditionType,
  case when ConditionType = '' then ConditionText else _ConditionText.ConditionText end as ConditionText AS ConditionTextendasConditionText,
  ConditionChangeReason,
  _PurgCndnChangeReasonText.ConditionChangeReasonText AS ConditionChangeReasonText,
  ProcmtHubContrCndnRptgCrcy1Amt AS ProcmtHubContrCndnDocCrcyAmt,
  $session.system_date AS ConditionValidityStartDate,
  $session.system_date AS ConditionValidityEndDate,
  :P_DisplayCurrency AS DisplayCurrency,
  ProcmtHubContrItmCndnSortOrd
FROM I_CntrlContrPriceComponents
INNER JOIN I_CntrlPurContrWthPriceHist AS PriceVariance ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurConditionText AS _ConditionText ON ConditionType = _ConditionText.ConditionType AND _ConditionText.ConditionApplication = 'M' AND _ConditionText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurgCndnChangeReasonText AS _PurgCndnChangeReasonText ON ConditionChangeReason = _PurgCndnChangeReasonText.ConditionChangeReason  -- association [0..1]
-- UNION ALL with additional select branch(es): I_CntrlContrPriceComponents, I_CntrlContrPriceComponents
;