C_PlanCostRate

DDL: C_PLANCOSTRATE SQL: CFIPLANCOSTRATE Type: view CONSUMPTION

Plan Cost Rate

C_PlanCostRate is a Consumption CDS View that provides data about "Plan Cost Rate" in SAP S/4HANA. It reads from 1 data source (I_PlanCostRate) and exposes 38 fields with key field AccountingCostRateUUID. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PlanCostRate I_PlanCostRate from

Associations (5)

CardinalityTargetAliasCondition
[0..*] I_CostCenterVH _CostCenterVH $projection.ControllingArea = _CostCenterVH.ControllingArea and $projection.CostCenter = _CostCenterVH.CostCenter
[0..*] I_CostCenterActivityTypeVH _ActivityTypeVH $projection.ControllingArea = _ActivityTypeVH.ControllingArea and $projection.ActivityType = _ActivityTypeVH.CostCtrActivityType and $projection.CostCtrActivityTypeQtyUnit = _ActivityTypeVH.CostCtrActivityTypeQtyUnit
[0..1] I_LedgerText _LedgerText $projection.Ledger = _LedgerText.Ledger and _LedgerText.Language = $session.system_language
[0..*] C_HierRuntimeRprstnDplLeafNode _CostCenterHierarchyLeafNode $projection.CostCenter = _CostCenterHierarchyLeafNode.UnivHierarchyBusinessEntity and $projection.ControllingArea = _CostCenterHierarchyLeafNode.HierarchyNodeClass and _CostCenterHierarchyLeafNode.ValidityStartDate <= $session.system_date and _CostCenterHierarchyLeafNode.ValidityEndDate >= $session.system_date and _CostCenterHierarchyLeafNode.HierarchyType = '0101'
[0..*] C_PlnCostRateCompBreakdown _CompBreakdown $projection.AccountingCostRateUUID = _CompBreakdown.AccountingCostRateUUID

Annotations (21)

NameValueLevelField
AbapCatalog.sqlViewName CFIPLANCOSTRATE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
EndUserText.label Plan Cost Rate view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Search.searchable true view
UI.headerInfo.typeName Cost Rate view
UI.headerInfo.typeNamePlural Cost Rates view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value CostObject view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value AccountingCostRateDesc view
UI.textArrangement #TEXT_LAST view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY AccountingCostRateUUID AccountingCostRateUUID
ValidityDate Validity Start Date
CostCenter CostCenter Cost Center
CostCenterHierarchy Cost Center Hierarchy
CostCenterHierarchyNode
ActivityType ActivityType Activity Type
Ledger Ledger Ledger
Currency Currency Valuation Crcy
ValidityStartFiscalYear ValidityStartFiscalYear
ValidityStartFiscalPeriod ValidityStartFiscalPeriod
CostRateFixedAmount CostRateFixedAmount
CostRateTotalAmount CostRateTotalAmount
CostRateVarblAmount CostRateVarblAmount
CostRateScaleFactor CostRateScaleFactor
CostCtrActivityTypeQtyUnit CostCtrActivityTypeQtyUnit
CompanyCode CompanyCode Receiver Company Code
ControllingArea ControllingArea Controlling Area
ValidityEndFiscalYear ValidityEndFiscalYear
ValidityEndFiscalPeriod ValidityEndFiscalPeriod
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
PlanningCategory PlanningCategory Plan Category
ControllingObject ControllingObject Object number
CostObject CostObject Cost Object
AccountingCostRateDesc AccountingCostRateDesc
RowIndex
CostRateIsOverwriteMode
CompanyCodeName
CostCenterName
CostCtrActivityTypeName
LedgerName _LedgerText LedgerName Ledger Name
_Currency _Currency
_UnitOfMeasure _UnitOfMeasure
_ActivityTypeVH _ActivityTypeVH
_CostCenterVH _CostCenterVH
_LedgerText _LedgerText
_CostCenterHierarchyLeafNode _CostCenterHierarchyLeafNode
_CompBreakdown _CompBreakdown

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_PlanCostRate.
-- 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: CFIPLANCOSTRATE

CREATE VIEW C_PlanCostRate AS
SELECT
  AccountingCostRateUUID,
  cast(ValidityStartDate as fco_valid_on) AS ValidityDate,
  CostCenter,
  cast('' as fis_cctr_hryid_42) AS CostCenterHierarchy,
  cast('' as fis_cctr_hrynid_50) AS CostCenterHierarchyNode,
  ActivityType,
  Ledger,
  Currency,
  ValidityStartFiscalYear,
  ValidityStartFiscalPeriod,
  CostRateFixedAmount,
  CostRateTotalAmount,
  CostRateVarblAmount,
  CostRateScaleFactor,
  CostCtrActivityTypeQtyUnit,
  CompanyCode,
  ControllingArea,
  ValidityEndFiscalYear,
  ValidityEndFiscalPeriod,
  ValidityStartDate,
  ValidityEndDate,
  PlanningCategory,
  ControllingObject,
  CostObject,
  AccountingCostRateDesc,
  cast( 0 as int4) AS RowIndex,
  cast( '' as fco_overwrite) AS CostRateIsOverwriteMode,
  cast( _CompanyCode.CompanyCodeName as fis_butxt preserving type ) AS CompanyCodeName,
  cast( _CurrentCostCenter._Text[1: Language = $session.system_language].CostCenterName as fis_kostl_name preserving type) AS CostCenterName,
  cast( _CurrentCostCtrActyType._Text[1: Language = $session.system_language].CostCtrActivityTypeName as fco_activity_type_name preserving type) AS CostCtrActivityTypeName,
  _LedgerText.LedgerName AS LedgerName
FROM I_PlanCostRate
LEFT OUTER JOIN I_CostCenterVH AS _CostCenterVH ON ControllingArea = _CostCenterVH.ControllingArea AND CostCenter = _CostCenterVH.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_CostCenterActivityTypeVH AS _ActivityTypeVH ON ControllingArea = _ActivityTypeVH.ControllingArea AND ActivityType = _ActivityTypeVH.CostCtrActivityType AND CostCtrActivityTypeQtyUnit = _ActivityTypeVH.CostCtrActivityTypeQtyUnit  -- association [0..*]
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger AND _LedgerText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_HierRuntimeRprstnDplLeafNode AS _CostCenterHierarchyLeafNode ON CostCenter = _CostCenterHierarchyLeafNode.UnivHierarchyBusinessEntity AND ControllingArea = _CostCenterHierarchyLeafNode.HierarchyNodeClass AND _CostCenterHierarchyLeafNode.ValidityStartDate <= $session.system_date AND _CostCenterHierarchyLeafNode.ValidityEndDate >= $session.system_date AND _CostCenterHierarchyLeafNode.HierarchyType = '0101'  -- association [0..*]
LEFT OUTER JOIN C_PlnCostRateCompBreakdown AS _CompBreakdown ON AccountingCostRateUUID = _CompBreakdown.AccountingCostRateUUID  -- association [0..*]
;